LsaNode

This class realizes a node with LSA concentration.

Constructors

Link copied to clipboard
constructor(environment: Environment<List<ILsaMolecule>, out Any>)
Builds a new LsaNode.

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

Functions

Link copied to clipboard
open fun addLsa(instance: ILsaMolecule)
Adds an instance of ILsaMolecule in the node's LsaSpace.
Link copied to clipboard
fun addProperty(capability: Capability<T>)
Link copied to clipboard
fun addReaction(reaction: Reaction<T>)
Link copied to clipboard
open fun <C : Capability<T>?> asProperty(superType: KClass<C>): C
Link copied to clipboard
open fun <C : Capability<T>?> asPropertyOrNull(superType: Class<in C>): C
Link copied to clipboard
open fun cloneNode(): Node<T>
Link copied to clipboard
fun compareTo(other: Node<T>): Int
Link copied to clipboard
@NotNull
open fun concentrationOf(@NotNull molecule: Molecule): Observable<Option<List<ILsaMolecule>>>
Link copied to clipboard
open fun contains(molecule: Molecule): Boolean
Link copied to clipboard
@NotNull
open fun containsMolecule(@NotNull molecule: Molecule): Observable<Boolean>
Link copied to clipboard
open fun dispose()
Link copied to clipboard
fun equals(other: Any): Boolean
Link copied to clipboard
open fun get(molecule: Molecule): Option<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the LSA molecules in this node.
Link copied to clipboard
@NotNull
open fun getMoleculeCount(): Observable<Integer>
Link copied to clipboard
fun hashCode(): Int
Link copied to clipboard
open fun matching(template: ILsaMolecule): List<ILsaMolecule>
Finds the LSA instances in this node that [template] matches.
Link copied to clipboard
@NotNull
open fun observeCandidates(@NotNull template: ILsaMolecule): Observable<List<ILsaMolecule>>
Observes the instances that [template] may match: those sharing its first argument when it is a constant or a number, every instance otherwise.
Link copied to clipboard
Observes the LSA space of this node.
Link copied to clipboard
open fun remove($this$remove: Reaction<T>)
Link copied to clipboard
open fun removeAllConcentrationOf(@Nonnull moleculeToRemove: Molecule)
Removes every copy of [moleculeToRemove] from this node.
Link copied to clipboard
open fun removeOneMatchedLsa(matchedInstance: ILsaMolecule): Boolean
Deletes an ILsaMolecule from the Node LsaSpace Warning: the method removes only the first matched ILsaMolecule.
Link copied to clipboard
fun removeReaction(reaction: Reaction<T>)
Link copied to clipboard
open fun set(@Nonnull molecule: Molecule, c: List<ILsaMolecule>)
Link copied to clipboard
open fun toString(): String