SAPEREMoveLSAToAgent

This agent matches a template, removes a single instance of it from the current node and moves the LSA to another node (specified at creation time). Please note that, since the destination could be anywhere in the system, this action has a GLOBAL Context, and thus may trigger a large number of updates, slowing down the whole simulation. Handle with care.

Constructors

Link copied to clipboard
constructor(environment: Environment<out Any, out Any>, node: ILsaNode, destinationId: Int, template: ILsaMolecule)
This is the constructor that should be called from DSL.
constructor(node: ILsaNode, destination: ILsaNode, template: ILsaMolecule)

Functions

Link copied to clipboard
abstract fun cloneAction(p: Node<T>, p1: Reaction<T>): Action<T>
Link copied to clipboard
open fun execute()
Link copied to clipboard
open 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