Package it. unibo. alchemist. model. implementations. movestrategies. speed
Types
Link copied to clipboard
This strategy makes the node move every time of a fixed amount of space.
Link copied to clipboard
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.
Link copied to clipboard
class GloballyConstantSpeed<T, P : Position<P>>(reaction: Reaction<*>, maxSpeed: Double) : SpeedSelectionStrategy<T, P>
Content copied to clipboard
Similar to ConstantSpeed but takes in consideration the time distribution's rate instead of the reaction's rate.
Link copied to clipboard
class InteractWithOthers<T, P : Position<out P>?> : SpeedSelectionStrategy<T, P>
Content copied to clipboard
This strategy slows down nodes depending on how many "interacting" nodes are found in the surroundings.
Link copied to clipboard
class RoutingTraceDependantSpeed<T, O : RoutingServiceOptions<O>?, S : RoutingService<GeoPosition, O>?> : TraceDependantSpeed<T, O, S>
Content copied to clipboard
This TraceDependantSpeed strategy computes the remaining distance by relying on maps data for the selected RoutingServiceOptions.
Link copied to clipboard
class StraightLineTraceDependantSpeed<T, O : RoutingServiceOptions<O>?, S : RoutingService<GeoPosition, O>?> : TraceDependantSpeed<T, O, S>
Content copied to clipboard
This TraceDependantSpeed uses the distance between coordinates for estimating the distance.
Link copied to clipboard
abstract class TraceDependantSpeed<T, O : RoutingServiceOptions<O>?, S : RoutingService<GeoPosition, O>?> : AbstractStrategyWithGPS, SpeedSelectionStrategy<T, GeoPosition>
Content copied to clipboard
This strategy dynamically tries to move the node adjusting its speed to synchronize the reaction rate and the traces data.