Class OffsetGraphStreamLinkingRule
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.LinkingRule
,java.io.Serializable
public final class OffsetGraphStreamLinkingRule<T extends Object, P extends Position<P>> implements LinkingRule<T, P>
A LinkingRule that statically connects nodes as they were configured by GraphStream. An offset is used to determine the id of the environment's nodes when compared to the one of the provided graph.
-
-
Constructor Summary
Constructors Constructor Description OffsetGraphStreamLinkingRule(Integer offset, Graph graph)
-
Method Summary
Modifier and Type Method Description final Integer
getOffset()
final Graph
getGraph()
Neighborhood<T>
computeNeighborhood(Node<T> center, Environment<T, P> environment)
Boolean
isLocallyConsistent()
-
-
Constructor Detail
-
OffsetGraphStreamLinkingRule
OffsetGraphStreamLinkingRule(Integer offset, Graph graph)
-
-
Method Detail
-
getGraph
final Graph getGraph()
-
computeNeighborhood
Neighborhood<T> computeNeighborhood(Node<T> center, Environment<T, P> environment)
-
isLocallyConsistent
Boolean isLocallyConsistent()
-
-
-
-