-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Action,it.unibo.alchemist.model.interfaces.Action,it.unibo.alchemist.model.interfaces.ILsaAction,java.io.Serializable
public class LsaStandardAction extends LsaAbstractAction
This action add LsaMolecule in a single node.
-
-
Constructor Summary
Constructors Constructor Description LsaStandardAction(ILsaMolecule m, ILsaNode n)Builds a new local action, withouth any RandomGenerator. LsaStandardAction(ILsaMolecule m, ILsaNode n, RandomGenerator random)Builds a new local action.
-
Method Summary
Modifier and Type Method Description LsaStandardActioncloneAction(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> reaction)voidexecute()ContextgetContext()ILsaMoleculegetMolecule()StringtoString()-
Methods inherited from class it.unibo.alchemist.model.implementations.actions.LsaAbstractAction
getNode, setExecutionContext -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractAction
getOutboundDependencies, toString -
Methods inherited from class it.unibo.alchemist.model.interfaces.Action
cloneAction -
Methods inherited from class it.unibo.alchemist.model.interfaces.ILsaAction
cloneAction, getOutboundDependencies, setExecutionContext -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LsaStandardAction
LsaStandardAction(ILsaMolecule m, ILsaNode n)
Builds a new local action, withouth any RandomGenerator.- Parameters:
m- The ILsaMolecule instance you want to add to the node lsa space.n- The source node
-
LsaStandardAction
LsaStandardAction(ILsaMolecule m, ILsaNode n, RandomGenerator random)
Builds a new local action.- Parameters:
m- The ILsaMolecule instance you want to add to the node lsa space.n- The source noderandom- The Random generator to use
-
-
Method Detail
-
cloneAction
LsaStandardAction cloneAction(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> reaction)
-
execute
void execute()
-
getContext
Context getContext()
-
getMolecule
ILsaMolecule getMolecule()
-
-
-
-