-
- 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 LsaRandomNeighborAction extends LsaStandardAction
-
-
Constructor Summary
Constructors Constructor Description LsaRandomNeighborAction(ILsaNode node, ILsaMolecule molecule, Environment<List<ILsaMolecule>, out Object> environment, RandomGenerator randomGenerator)Builds a new action in a neighborhood.
-
Method Summary
Modifier and Type Method Description LsaRandomNeighborActioncloneAction(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> reaction)voidexecute()final ContextgetContext()StringtoString()-
Methods inherited from class it.unibo.alchemist.model.implementations.actions.LsaStandardAction
getMolecule -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.LsaAbstractAction
cloneAction, 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, execute, getContext -
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
-
LsaRandomNeighborAction
LsaRandomNeighborAction(ILsaNode node, ILsaMolecule molecule, Environment<List<ILsaMolecule>, out Object> environment, RandomGenerator randomGenerator)
Builds a new action in a neighborhood.- Parameters:
node- The source nodemolecule- The IlsaMolecule instance you want to add to neighbor lsa space.environment- The environment to userandomGenerator- the random engine
-
-
Method Detail
-
cloneAction
LsaRandomNeighborAction cloneAction(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> reaction)
-
execute
void execute()
-
getContext
final Context getContext()
-
-
-
-