NeighborhoodPresent

class NeighborhoodPresent<T> : 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.

Parameters

<T>

The concentration type.

Constructors

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

Functions

Link copied to clipboard
open fun cloneCondition(node: Node<T>, reaction: Reaction<T>): Condition<T>
open fun cloneCondition(node: Node<T>, r: Reaction<T>): NeighborhoodPresent<T>
Link copied to clipboard
fun getContext(): Context
abstract fun getContext(): Context
Link copied to clipboard
fun getInboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
open fun getNode(): Node<T>
Link copied to clipboard
open fun getPropensityContribution(): Double
Override if desired behavior differs.
abstract fun getPropensityContribution(): Double
Link copied to clipboard
fun getValidNeighbors(): Map<Node<T>, Double>
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