Abstract Neighbor Condition
Represents a condition on a neighbor. Formally, this condition is satisfied if at least one neighbor satisfies the condition.
Parameters
<T>
the concentration type.
Inheritors
Functions
Link copied to clipboard
abstract fun cloneCondition(newNode: Node<T>, newReaction: Reaction<T>): AbstractNeighborCondition<T>
This method allows cloning this action on a new node.
Link copied to clipboard
Link copied to clipboard
How to override: if you intend your condition to be potentially changed by any change in the context, return null.
Link copied to clipboard
Override if the desired behavior differs.
Link copied to clipboard
Searches in the given neighborhood which nodes satisfy the condition and returns a list of valid neighbors.
Link copied to clipboard
This method is called by the Simulation once the Reaction whose this Condition belongs to is the next one to be executed, and all its conditions passed (namely, the next operation will be the reaction execution).