Generic Node
open class GenericNode<T> @JvmOverloads constructor(val incarnation: Incarnation<T, *>, val environment: Environment<T, *>, val id: Int = idFromEnv(environment), val reactions: MutableList<Reaction<T>> = ArrayList(), val molecules: MutableMap<Molecule, T> = LinkedHashMap(), val properties: MutableList<NodeProperty<T>> = ArrayList()) : Node<T>
This class realizes an abstract node. You may extend it to realize your own nodes.
Parameters
Constructors
Link copied to clipboard
constructor(incarnation: Incarnation<T, *>, environment: Environment<T, *>, id: Int = idFromEnv(environment), reactions: MutableList<Reaction<T>> = ArrayList(), molecules: MutableMap<Molecule, T> = LinkedHashMap(), properties: MutableList<NodeProperty<T>> = ArrayList())
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
returns a NodeProperty of the provided type C.
Link copied to clipboard
Link copied to clipboard
returns a NodeProperty of the provided type C or null if the node does not have a compatible property.
Link copied to clipboard
Link copied to clipboard
Returns a random element of the Iterable using the provided randomGenerator.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the reactions.
Link copied to clipboard
Converts a Node to a NodeSurrogate.