Class ConditionalClosestN

  • All Implemented Interfaces:
    it.unibo.alchemist.model.LinkingRule , java.io.Serializable

    
    public final class ConditionalClosestN<T, P extends Position<P>>
    extends ClosestN<T, P>
                        

    A ClosestN rule that also checks that a Molecule has a specific concentration before allowing the connection.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class it.unibo.alchemist.model.linkingrules.ClosestN

        computeNeighborhood, isLocallyConsistent
      • Methods inherited from class it.unibo.alchemist.model.LinkingRule

        computeNeighborhood, isLocallyConsistent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConditionalClosestN

        ConditionalClosestN(int n, int expectedNodes, Molecule mol, T value)
        Parameters:
        n - number of neighbors
        expectedNodes - expected number of nodes (used for optimization purposes)
        mol - the molecule whose concentration will be used to identify active nodes
        value - the value that identifies an active node
      • ConditionalClosestN

        ConditionalClosestN(int n, Molecule mol, T value)
        Parameters:
        n - number of neighbors
        mol - the molecule whose concentration will be used to identify active nodes
        value - the value that identifies an active node
    • Method Detail