-
- 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 final class SAPEREWalker extends MoveOnMap<List<ILsaMolecule>, GraphHopperOptions, GraphHopperRoutingService> implements ILsaAction
-
-
Field Summary
Fields Modifier and Type Field Description public final static ILsaMoleculeDEFAULT_INTERACTING_TAG
-
Constructor Summary
Constructors Constructor Description SAPEREWalker(MapEnvironment<List<ILsaMolecule>, GraphHopperOptions, GraphHopperRoutingService> environment, ILsaNode node, Reaction<List<ILsaMolecule>> reaction, double speed, double interaction, double range)SAPEREWalker(MapEnvironment<List<ILsaMolecule>, GraphHopperOptions, GraphHopperRoutingService> environment, ILsaNode node, Reaction<List<ILsaMolecule>> reaction, ILsaMolecule tag, double speed, double interaction, double range)
-
Method Summary
Modifier and Type Method Description SAPEREWalkercloneAction(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> reaction)ILsaNodegetNode()voidsetExecutionContext(Map<HashString, ITreeNode<out Object>> matches, List<ILsaNode> nodes)Sets the context in which this action will execute. -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.MoveOnMap
getEnvironment -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractConfigurableMoveNode
getNextPosition -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractMoveNode
execute, getContext -
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
getOutboundDependencies -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SAPEREWalker
SAPEREWalker(MapEnvironment<List<ILsaMolecule>, GraphHopperOptions, GraphHopperRoutingService> environment, ILsaNode node, Reaction<List<ILsaMolecule>> reaction, double speed, double interaction, double range)
- Parameters:
environment- the environmentnode- the nodereaction- the reaction (used to compute the movement length)speed- the average speed of the nodeinteraction- the interaction factorrange- the interaction range
-
SAPEREWalker
SAPEREWalker(MapEnvironment<List<ILsaMolecule>, GraphHopperOptions, GraphHopperRoutingService> environment, ILsaNode node, Reaction<List<ILsaMolecule>> reaction, ILsaMolecule tag, double speed, double interaction, double range)
- Parameters:
environment- the environmentnode- the nodereaction- the reaction (used to compute the movement length)tag- the molecule which identifies the interacting nodesspeed- the average speed of the nodeinteraction- the interaction factorrange- the interaction range
-
-
Method Detail
-
cloneAction
SAPEREWalker cloneAction(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> reaction)
-
-
-
-