LsaNode

This class realizes a node with LSA concentration.

Constructors

Link copied to clipboard
constructor(environment: Environment<List<ILsaMolecule>, out Any>)

Properties

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
Link copied to clipboard
Link copied to clipboard
open fun <C : NodeProperty<T>?> asProperty(p: 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(p: 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(p: Time): Node<T>
Link copied to clipboard
fun compareTo(p: Node<T>): Int
Link copied to clipboard
open fun contains(@Nonnull molecule: Molecule): Boolean
Link copied to clipboard
fun equals(p: Any): Boolean
Link copied to clipboard
fun forEach(p: Consumer<in Reaction<T>>)
Link copied to clipboard
open fun getConcentration(@Nonnull m: Molecule): List<ILsaMolecule>
Link copied to clipboard
@Nonnull
open fun getContents(): Map<Molecule, List<ILsaMolecule>>
Link copied to clipboard
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

open fun removeConcentration(matchedInstance: ILsaMolecule): Boolean
Deletes an ILsaMolecule from the Node LsaSpace Warning: the method removes only the first matched ILsaMolecule.
Link copied to clipboard
Link copied to clipboard
Adds an instance of ILsaMolecule in the node's LsaSpace.
open fun setConcentration(@Nonnull molecule: Molecule, c: List<ILsaMolecule>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Nonnull
open fun toString(): String