Class RandomTargetInPolygonOnMap
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,java.io.Serializable
public final class RandomTargetInPolygonOnMap<T extends Object, O extends RoutingServiceOptions<O>, S extends RoutingService<GeoPosition, O>> extends 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
)
-
-
Field Summary
Fields Modifier and Type Field Description private final Polygon<GeoPosition>
positionGenerator
-
Constructor Summary
Constructors Constructor Description RandomTargetInPolygonOnMap(RandomGenerator randomGenerator, MapEnvironment<T, O, S> environment, Node<T> node, Reaction<T> reaction, Double speed, List<List<Number>> polygonCoordinates)
RandomTargetInPolygonOnMap(MapEnvironment<T, O, S> environment, Node<T> node, Reaction<T> reaction, Double speed, Polygon<GeoPosition> positionGenerator)
-
Method Summary
Modifier and Type Method Description final Polygon<GeoPosition>
getPositionGenerator()
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractAction
getOutboundDependencies, toString
-
Methods inherited from class it.unibo.alchemist.model.maps.actions.MoveOnMap
cloneAction, getEnvironment
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractMoveNode
execute, getContext
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractConfigurableMoveNode
getNextPosition
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getPositionGenerator
final Polygon<GeoPosition> getPositionGenerator()
-
-
-
-