-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.LinkingRule,java.io.Serializable
public class ConnectWithinDistance<T, P extends Position<P>> extends AbstractLocallyConsistentLinkingRule<T, P>
LinkingRule which connects nodes whose euclidean distance is shorter than a given radius.
-
-
Constructor Summary
Constructors Constructor Description ConnectWithinDistance(double radius)
-
Method Summary
Modifier and Type Method Description Neighborhood<T>computeNeighborhood(Node<T> center, Environment<T, P> environment)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
isLocallyConsistent -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
computeNeighborhood
Neighborhood<T> computeNeighborhood(Node<T> center, Environment<T, P> environment)
Subclasses may change the way a neighborhood is computed.
-
-
-
-