ILsaNode

interface ILsaNode : Node<T>

Interface for an LSA Node. Avoids the crappy casts.

Inheritors

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun addProperty(p: NodeProperty<T>)
Link copied to clipboard
abstract fun addReaction(p: 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
abstract fun cloneNode(p: Time): Node<T>
Link copied to clipboard
abstract fun compareTo(p: T): Int
Link copied to clipboard
abstract fun contains(p: Molecule): Boolean
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard
Link copied to clipboard
abstract fun getContents(): Map<Molecule, T>
Link copied to clipboard
abstract fun getId(): Int
Link copied to clipboard
abstract fun getLsaSpace(): List<ILsaMolecule>
Link copied to clipboard
abstract fun getMoleculeCount(): Int
Link copied to clipboard
abstract fun getProperties(): List<NodeProperty<T>>
Link copied to clipboard
abstract fun getReactions(): List<Reaction<T>>
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun iterator(): Iterator<T>
Link copied to clipboard
abstract fun removeConcentration(p: Molecule)

abstract 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
abstract fun removeReaction(p: Reaction<T>)
Link copied to clipboard
abstract fun setConcentration(p: Molecule, p1: T)

abstract fun setConcentration(inst: ILsaMolecule)
Adds an instance of ILsaMolecule in the node's LsaSpace.
Link copied to clipboard
Link copied to clipboard