RoutingStrategy

fun interface RoutingStrategy<T, P : Position<P>>

Strategy describing how routing between two points happens.

Type Parameters

T

concentration type

P

position type

Inheritors

Functions

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

Returns a copy for destination and reaction when this strategy is stateful, or this object otherwise.

Link copied to clipboard
abstract fun computeRoute(currentPos: P, finalPos: P): Route<P>

Computes a route from currentPos to finalPos.