LinkingRule

interface LinkingRule<T, P : Position<out P>?> : Serializable

An interface that represent an auto-linking logic for nodes within an environment.

Parameters

<T>

The type which describes the concentration of a molecule

<P>

The position type

Inheritors

Functions

Link copied to clipboard
abstract 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<*, *>)