GoTo

data class GoTo<T, P : Position<P>>(destination: P) : TargetSelectionStrategy<T, P> (source)

TargetSelectionStrategy that has the objective to go towards a fixed destination in the Environment.

Parameters

position type

Constructors

Link copied to clipboard
constructor(environment: Environment<T, P>, vararg destination: Number)
constructor(destination: P)

Functions

Link copied to clipboard
open fun cloneIfNeeded(destination: Node<T>, reaction: Reaction<T>): TargetSelectionStrategy<T, P>
Link copied to clipboard
open override fun getTarget(): P
Link copied to clipboard
open override fun toString(): String