Class LsaAllNeighborsAction
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,it.unibo.alchemist.model.sapere.ILsaAction
,java.io.Serializable
public final class LsaAllNeighborsAction extends LsaRandomNeighborAction
The execution involves all neighbours. The molecule can be different from a neighbor to the other, because some special Variable (#D) are specific for each node. This is why N molecules are instanced if there are N neighbours.
-
-
Constructor Summary
Constructors Constructor Description LsaAllNeighborsAction(ILsaNode node, ILsaMolecule molecule, Environment<List<ILsaMolecule>, out Object> environment)
LsaAllNeighborsAction(ILsaNode node, ILsaMolecule molecule, Environment<List<ILsaMolecule>, out Object> environment, RandomGenerator randomGenerator)
-
Method Summary
-
Methods inherited from class it.unibo.alchemist.model.sapere.actions.LsaRandomNeighborAction
cloneAction, getContext
-
Methods inherited from class it.unibo.alchemist.model.sapere.actions.LsaStandardAction
cloneAction, 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
-
LsaAllNeighborsAction
LsaAllNeighborsAction(ILsaNode node, ILsaMolecule molecule, Environment<List<ILsaMolecule>, out Object> environment)
- Parameters:
node
- the node in which the reaction is programmedmolecule
- the lsa which is involvedenvironment
- the current environment
-
LsaAllNeighborsAction
LsaAllNeighborsAction(ILsaNode node, ILsaMolecule molecule, Environment<List<ILsaMolecule>, out Object> environment, RandomGenerator randomGenerator)
- Parameters:
node
- the node in which the reaction is programmedmolecule
- the lsa which is involvedenvironment
- the current environmentrandomGenerator
- unused.
-
-
-
-