Package 

Class OffsetGraphStreamLinkingRule

  • All Implemented Interfaces:
    it.unibo.alchemist.model.interfaces.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 comparted to the one of the provided graph.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Integer offset
      private final Graph graph
    • Method Summary

      Modifier and Type Method Description
      Neighborhood<T> computeNeighborhood(Node<T> center, Environment<T, P> environment)
      Boolean isLocallyConsistent()
      final Integer getOffset()
      final Graph getGraph()
      • Methods inherited from class java.io.Serializable

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait