-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.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.implementations.actions.AbstractMoveNode
declareDependencyTo, getConcentration, getNode, getOutboundDependencies, nodeContains, removeConcentration, setConcentration, toString -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.RandomTargetInPolygonOnMap
cloneAction, getEnvironment, interpolatePositions -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractConfigurableMoveNode
execute, getContext, getCurrentPosition, getNodePosition, isAbsolute -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.MoveOnMap
getCurrentRoute, getNextPosition, getRoutingStrategy, getSpeedSelectionStrategy, getTargetPoint, getTargetSelectionStrategy, resetRoute, setTargetPoint -
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()
-
-
-
-