-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.LinkingRule,java.io.Serializable
public final class ObstaclesBreakConnection<T, P extends Position<P>, Vector<P>> extends ConnectWithinDistance<T, P>
Similar to ConnectWithinDistance, but if the environment has obstacles, the links are removed.
-
-
Constructor Summary
Constructors Constructor Description ObstaclesBreakConnection(Double radius)
-
Method Summary
Modifier and Type Method Description Neighborhood<T>computeNeighborhood(Node<T> center, Environment<T, P> env)Subclasses may change the way a neighborhood is computed. -
Methods inherited from class it.unibo.alchemist.model.implementations.linkingrules.AbstractLocallyConsistentLinkingRule
isLocallyConsistent, toString -
Methods inherited from class it.unibo.alchemist.model.interfaces.LinkingRule
computeNeighborhood, isLocallyConsistent -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ObstaclesBreakConnection
ObstaclesBreakConnection(Double radius)
- Parameters:
radius- connection range
-
-
Method Detail
-
computeNeighborhood
Neighborhood<T> computeNeighborhood(Node<T> center, Environment<T, P> env)
Subclasses may change the way a neighborhood is computed.
-
-
-
-