ConstantSpeed

class ConstantSpeed<T, P : Position<P>?> : SpeedSelectionStrategy<T, P>

This strategy makes the node move at an average constant speed, which is influenced by the it.unibo.alchemist.model.interfaces.TimeDistribution of the Reaction hosting this it.unibo.alchemist.model.interfaces.Action. This action tries to normalize on the Reaction rate, but if the it.unibo.alchemist.model.interfaces.TimeDistribution has a high variance, the movements on the map will inherit this tract.

Parameters

<T>

Concentration type

<P>

Position type

Constructors

Link copied to clipboard
open fun ConstantSpeed(reaction: Reaction<out Any>, speed: Double)

Functions

Link copied to clipboard
open fun cloneIfNeeded(destination: Node<T>, reaction: Reaction<T>): ConstantSpeed<T, P>
Link copied to clipboard
open fun getNodeMovementLength(target: P): Double