LsaCountNeighborsAction

Constructors

Link copied to clipboard
constructor(environment: Environment<List<ILsaMolecule>, out Any>, node: ILsaNode, molToCount: ILsaMolecule, countVar: HashString, rand: RandomGenerator)
Builds a new action that counts neighbors which contain in their lsaSpace an lsaMolecule matching mol.
constructor(environment: Environment<List<ILsaMolecule>, out Any>, node: ILsaNode, molToCount: ILsaMolecule, countVar: String, rand: RandomGenerator)
Builds a new action that counts neighbors which contain in their lsaSpace an lsaMolecule matching mol.

Functions

Link copied to clipboard
Link copied to clipboard
open fun execute()
Link copied to clipboard
abstract fun getContext(): Context
Link copied to clipboard
@Nonnull
fun getNode(): ILsaNode
Link copied to clipboard
@Nonnull
abstract fun getOutboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
abstract fun setExecutionContext(matches: Map<HashString, ITreeNode<out Any>>, nodes: List<ILsaNode>)
open fun setExecutionContext(m: Map<HashString, ITreeNode<out Any>>, n: List<ILsaNode>)
Sets the context in which this action will execute.
Link copied to clipboard
open fun toString(): String
open fun toString(): String