ConditionalClosestN

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

Parameters

<T>

Concentration type

<P>

Constructors

Link copied to clipboard
constructor(n: Int, expectedNodes: Int, mol: Molecule, value: T)
constructor(n: Int, mol: Molecule, value: T)

Functions

Link copied to clipboard
abstract fun computeNeighborhood(center: Node<T>, environment: Environment<T, P>): Neighborhood<T>
fun computeNeighborhood(center: Node<T>, environment: Environment<T, P>): Neighborhood<T>
Produces a new neighborhood for specified node considering its position.
Link copied to clipboard
Some rules may require to be evaluated against multiple nodes until the situations gets consistent.
Link copied to clipboard
infix fun LinkingRule<*, *>.shouldEqual(other: LinkingRule<*, *>)