EnvironmentNodeImpl

A node with non-negative concentration.

Constructors

Link copied to clipboard
constructor(incarnation: Incarnation<Double, out Any>, environment: Environment<Double, out Any>)
Create a new environment node.
constructor(environment: Environment<Double, out Any>)
Create a new environment node.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addProperty(nodeProperty: NodeProperty<T>)
Link copied to clipboard
fun addReaction(reactionToAdd: Reaction<T>)
Link copied to clipboard
open fun <C : NodeProperty<T>?> asProperty(superType: KClass<C>): C
Link copied to clipboard
inline fun <T, C : NodeProperty<T>> Node<T>.asProperty(): C

returns a NodeProperty of the provided type C.

Link copied to clipboard
open fun <C : NodeProperty<T>?> asPropertyOrNull(superType: Class<in C>): C
Link copied to clipboard
inline fun <T, C : NodeProperty<T>> Node<T>.asPropertyOrNull(): C?

returns a NodeProperty of the provided type C or null if the node does not have a compatible property.

Link copied to clipboard
open fun cloneNode(currentTime: Time): Node<T>
Link copied to clipboard
fun compareTo(other: Node<T>): Int
Link copied to clipboard
open fun contains(molecule: Molecule): Boolean
Link copied to clipboard
fun equals(other: Any): Boolean
Link copied to clipboard
fun forEach(action: Consumer<in Reaction<T>>)
Link copied to clipboard
open fun getConcentration(molecule: Molecule): T
Link copied to clipboard
open fun getMoleculeCount(): Int
Link copied to clipboard
fun hashCode(): Int
Link copied to clipboard
abstract fun iterator(): Iterator<T>
Link copied to clipboard
fun removeConcentration(moleculeToRemove: Molecule)
Link copied to clipboard
fun removeReaction(reactionToRemove: Reaction<T>)
Link copied to clipboard
open fun setConcentration(@Nonnull molecule: Molecule, @Nonnull concentration: Double)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun toString(): String