-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.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)PgetNextPosition()-
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
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()
-
-
-
-