CellMove

An action moving cells (Nodes with a CellProperty) in the environment.

Constructors

Link copied to clipboard
constructor(environment: Environment<Double, Euclidean2DPosition>, node: Node<Double>, inPercent: Boolean, delta: Double)
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.

Functions

Link copied to clipboard
open fun cloneAction(node: Node<Double>, reaction: Reaction<Double>): CellMove
This method allows to clone this action on a new node.
Link copied to clipboard
open fun execute()
Detects if the move is in absolute or relative coordinates, then calls the correct method on the Environment.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getOutboundDependencies(): ListSet<? extends Dependency>
How to override: if you intend your action to influence any reaction with compatible context, return null.
Link copied to clipboard
open fun toString(): String