FollowTrace

A strategy that follows a it.unibo.alchemist.model.Route.

Type Parameters

T

the concentration type handled by nodes using this strategy

Constructors

Link copied to clipboard
constructor(reaction: NodeReaction<*>)

Properties

Link copied to clipboard
open override val target: GPSPoint

The next target where the Node is directed.

Link copied to clipboard
protected open var trace: GPSTrace?

Functions

Link copied to clipboard
open override fun cloneIfNeeded(destination: Node<T>, reaction: NodeReaction<T>): FollowTrace<T>

Clones this strategy, if needed, for the destination node and its reaction. Returns a copy of the strategy if the strategy is stateful, and this object otherwise: the default implementation assumes a stateless strategy.