NeighborhoodPresent

A condition is valid if the node has a neighborhood, formally if the node has at least one node connected by a linking rule.

Parameters

<T>

The concentration type.

Constructors

Link copied to clipboard
constructor(environment: Environment<T, out Any>, node: Node<T>)
Create the condition.

Properties

Link copied to clipboard
val node: Node<T>

Functions

Link copied to clipboard
open fun cloneCondition(node: Node<T>, reaction: Reaction<T>): Condition<T>
Link copied to clipboard
abstract fun getContext(): Context
Link copied to clipboard
Link copied to clipboard

Override if 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
open fun isValid(): Boolean
Link copied to clipboard
open fun reactionReady()
Link copied to clipboard
open fun toString(): String