Class NeighborhoodPresent
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Condition
,java.io.Serializable
public final class NeighborhoodPresent<T> extends AbstractNeighborCondition<T>
A condition is valid if the node has a neighborhood, formally if the node has at least one node connected by a linking rule.
-
-
Constructor Summary
Constructors Constructor Description NeighborhoodPresent(Environment<T, out Object> environment, Node<T> node)
Create the condition.
-
Method Summary
Modifier and Type Method Description NeighborhoodPresent<T>
cloneCondition(Node<T> node, Reaction<T> r)
boolean
isValid()
String
toString()
-
Methods inherited from class it.unibo.alchemist.model.conditions.AbstractCondition
cloneCondition, getInboundDependencies, getNode
-
Methods inherited from class it.unibo.alchemist.model.biochemistry.conditions.AbstractNeighborCondition
getContext, getPropensityContribution, getValidNeighbors
-
Methods inherited from class it.unibo.alchemist.model.Condition
getContext, getPropensityContribution, reactionReady
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
NeighborhoodPresent
NeighborhoodPresent(Environment<T, out Object> environment, Node<T> node)
Create the condition.- Parameters:
environment
- the current environment.node
- the node
-
-
Method Detail
-
cloneCondition
NeighborhoodPresent<T> cloneCondition(Node<T> node, Reaction<T> r)
-
isValid
boolean isValid()
-
-
-
-