Class SAPEREWalker
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,it.unibo.alchemist.model.sapere.ILsaAction
,java.io.Serializable
public final class SAPEREWalker extends MoveOnMap<T, O, S> implements ILsaAction
-
-
Field Summary
Fields Modifier and Type Field Description public final static ILsaMolecule
DEFAULT_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 SAPEREWalker
cloneAction(Node<List<ILsaMolecule>> node, Reaction<List<ILsaMolecule>> reaction)
ILsaNode
getNode()
void
setExecutionContext(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.maps.actions.MoveOnMap
getEnvironment
-
Methods inherited from class it.unibo.alchemist.model.sapere.ILsaAction
getOutboundDependencies
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractConfigurableMoveNode
getNextPosition
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractMoveNode
execute, getContext
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractAction
getOutboundDependencies, toString
-
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
-
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)
-
-
-
-