FollowAtDistance

class FollowAtDistance<T>(node: Node<T>, reaction: Reaction<T>, environment: Environment<T, Euclidean2DPosition>, target: Molecule, distance: Double, speed: Double) : AbstractAction<T>

Makes the Node follow a target defined in a Molecule with some speed, but keeping a distance from it.

Parameters

concentration type
environment

the environment containing the nodes

node

the follower

reaction

the reaction hosting this action

target

molecule from which to read the destination to follow in the form of coordinates or a tuple

distance

the distance to keep from the destination

speed

the maximum speed

Constructors

Link copied to clipboard
constructor(node: Node<T>, reaction: Reaction<T>, environment: Environment<T, Euclidean2DPosition>, target: Molecule, distance: Double, speed: Double)

Functions

Link copied to clipboard
open override fun cloneAction(node: Node<T>, reaction: Reaction<T>): FollowAtDistance<T>
Link copied to clipboard
open override fun execute()
Link copied to clipboard
open override fun getContext(): Context
Link copied to clipboard
@Nonnull
override fun getOutboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
open override fun toString(): String