TargetMapWalker
Walks on the streets of the map towards the target stored in a molecule of the node.
The target is read from trackMolecule whenever a new target is needed. A GeoPosition is used as-is; for an Iterable, its first two values, as numbers or numeric strings, become the coordinates; any other value is converted to a string and parsed for numbers. The rate of the owning reaction determines the distance walked at each step. If interaction is positive and interactingMolecule is not null, nodes within range that contain interactingMolecule slow this node down, the more the higher interaction is.
Type Parameters
Constructors
Builds the walker from molecule names; a null interactingMolecule disables interactions.
Builds a walker without interactions from the name of the tracked molecule.
Properties
the environment where the node moves
The NodeReaction owning this action, hosted by targetNode.
Functions
Creates an equivalent action owned by newReaction, such as a reaction cloned onto a new node. An action targeting the host of its reaction targets the host of newReaction, which must then be a Node; an action targeting any other node keeps its target.
Moves the node according to getNextPosition, in absolute or relative coordinates depending on isAbsolute.
The next position to reach, in absolute or relative coordinates depending on isAbsolute.