LsaCountNeighborsAction

class LsaCountNeighborsAction : SAPERELocalAgent

Constructors

Link copied to clipboard
open fun LsaCountNeighborsAction(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.
Link copied to clipboard
open fun LsaCountNeighborsAction(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
abstract fun cloneAction(node: Node<List<ILsaMolecule>>, reaction: Reaction<List<ILsaMolecule>>): LsaAbstractAction
open fun cloneAction(node: Node<List<ILsaMolecule>>, reaction: Reaction<List<ILsaMolecule>>): LsaCountNeighborsAction
abstract fun cloneAction(p: Node<T>, p1: Reaction<T>): Action<T>
abstract fun cloneAction(node: Node<List<ILsaMolecule>>, reaction: Reaction<List<ILsaMolecule>>): ILsaAction
Link copied to clipboard
open fun execute()
Link copied to clipboard
fun getContext(): Context
abstract fun getContext(): Context
Link copied to clipboard
fun getNode(): ILsaNode
Link copied to clipboard
fun getOutboundDependencies(): ListSet<out Dependency>
abstract fun getOutboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
open fun setExecutionContext(m: Map<HashString, ITreeNode<out Any>>, n: List<ILsaNode>)
abstract fun setExecutionContext(matches: Map<HashString, ITreeNode<out Any>>, nodes: List<ILsaNode>)
Sets the context in which this action will execute.
Link copied to clipboard
open fun toString(): String
open fun toString(): String