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