RandomTargetInPolygonOnMap

class RandomTargetInPolygonOnMap<T, O : RoutingServiceOptions<O>, S : RoutingService<GeoPosition, O>>(environment: MapEnvironment<T, O, S>, node: Node<T>, reaction: Reaction<T>, speed: Double, val positionGenerator: Polygon<GeoPosition>) : MoveOnMap<T, O, S>

This actions generates random waypoints inside a Polygon. The polygon can be provided either through as a deployment (positionGenerator), or as List<List<Number>> (polygonCoordinates)

Constructors

Link copied to clipboard
constructor(environment: MapEnvironment<T, O, S>, node: Node<T>, reaction: Reaction<T>, speed: Double, positionGenerator: Polygon<GeoPosition>)
constructor(randomGenerator: ERROR CLASS: Symbol not found for RandomGenerator, environment: MapEnvironment<T, O, S>, node: Node<T>, reaction: Reaction<T>, speed: Double, polygonCoordinates: List<List<Number>>)

Properties

Link copied to clipboard
override val context: Context?
Link copied to clipboard
override val environment: MapEnvironment<T?, O?, S?>?
Link copied to clipboard
override val nextPosition: GeoPosition?
Link copied to clipboard
override val outboundDependencies: @EnhancedNullability org/danilopianini/util/ListSet<out it/unibo/alchemist/model/Dependency!>
Link copied to clipboard

Functions

Link copied to clipboard
open fun cloneAction(node: Node<T?>?, reaction: Reaction<T?>?): MoveOnMap<T?, O?, S?>?
Link copied to clipboard
open fun execute()

Detects if the move is in absolute or relative coordinates, then calls the correct method on the Environment.

Link copied to clipboard
Link copied to clipboard