Package it.unibo.alchemist.model.actions
Class BrownianMove
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,java.io.Serializable
public final class BrownianMove<T, P extends Position<P>> extends AbstractMoveNode<T, P>
Moves the node randomly.
-
-
Constructor Summary
Constructors Constructor Description BrownianMove(Environment<T, P> environment, Node<T> node, RandomGenerator randomGenerator, double range)
-
Method Summary
Modifier and Type Method Description Action<T>
cloneAction(Node<T> node, Reaction<T> reaction)
P
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
execute, getContext, getOutboundDependencies
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BrownianMove
BrownianMove(Environment<T, P> environment, Node<T> node, RandomGenerator randomGenerator, double range)
- Parameters:
environment
- the environmentnode
- the noderandomGenerator
- the simulation RandomGenerator.range
- the maximum distance the node may walk in a single step for each dimension
-
-
Method Detail
-
getNextPosition
P getNextPosition()
- Returns:
The next position where to move, in absolute or relative coordinates depending on the value of isAbsolute.
-
-
-
-