Package it.unibo.alchemist.model.actions
Class GenericRandomWalker
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,java.io.Serializable
public class GenericRandomWalker<T extends Object> extends EuclideanConfigurableMoveNode<T, Euclidean2DPosition>
Chooses random targets in a direction extracted from randomGenerator at a distance extracted from distanceDistribution. Moves the node towards the targets at the given constant speed. Changes target on collision.
-
-
Constructor Summary
Constructors Constructor Description GenericRandomWalker(Node<T> node, Reaction<T> reaction, Environment<T, Euclidean2DPosition> environment, RandomGenerator randomGenerator, Double speed, RealDistribution distanceDistribution)
-
Method Summary
Modifier and Type Method Description GenericRandomWalker<T>
cloneAction(Node<T> node, Reaction<T> reaction)
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractAction
getOutboundDependencies, toString
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractMoveNode
execute, getContext
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractConfigurableMoveNode
getNextPosition
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
GenericRandomWalker
GenericRandomWalker(Node<T> node, Reaction<T> reaction, Environment<T, Euclidean2DPosition> environment, RandomGenerator randomGenerator, Double speed, RealDistribution distanceDistribution)
-
-
Method Detail
-
cloneAction
GenericRandomWalker<T> cloneAction(Node<T> node, Reaction<T> reaction)
-
-
-
-