Class LsaStandardAction
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,it.unibo.alchemist.model.sapere.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 LsaStandardAction
cloneAction(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> reaction)
void
execute()
Context
getContext()
ILsaMolecule
getMolecule()
String
toString()
-
Methods inherited from class it.unibo.alchemist.model.sapere.actions.LsaAbstractAction
getNode, setExecutionContext
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractAction
getOutboundDependencies, toString
-
Methods inherited from class it.unibo.alchemist.model.sapere.ILsaAction
cloneAction, getOutboundDependencies, setExecutionContext
-
Methods inherited from class it.unibo.alchemist.model.Action
cloneAction
-
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()
- Returns:
the modified molecule
-
-
-
-