-
-
Method Summary
Modifier and Type Method Description CellMove<P>cloneAction(Node<Double> node, Reaction<Double> reaction)PgetNextPosition()voidexecute()CellNode<P>getNode()-
Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractMoveNode
getContext -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractAction
getOutboundDependencies, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CellMove
CellMove(Environment<Double, P> environment, Node<Double> node, boolean inPercent, double delta)
Initialize an Action that move the cell of a given space delta, which can be expressed in percent of the cell's diameter or in absolute.- Parameters:
environment- the Environmentnode- the Node in which the it.unibo.alchemist.model.interfaces.Action is contained.inPercent- a boolean parameter which set the way of expressing delta: if is true the cell movement will be (delta * cellDiameter), otherwise will be simply delta.delta- the distance at which the cell will be moved.
-
-
-
-