Class MoveOnMapWithGPS
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,java.io.Serializable
public class MoveOnMapWithGPS<T, O extends RoutingServiceOptions<O>, S extends RoutingService<GeoPosition, O>> extends MoveOnMap<T, O, S>
basic action that follow a GPSTrace.
-
-
Constructor Summary
Constructors Constructor Description MoveOnMapWithGPS(MapEnvironment<T, O, S> environment, Node<T> node, RoutingStrategy<T, GeoPosition> routingStrategy, SpeedSelectionStrategy<T, GeoPosition> speedSelectionStrategy, TargetSelectionStrategy<T, GeoPosition> targetSelectionStrategy, String path, boolean cycle, String normalizer, Array<Object> normalizerArgs)
MoveOnMapWithGPS(MapEnvironment<T, O, S> environment, Node<T> node, RoutingStrategy<T, GeoPosition> routingStrategy, SpeedSelectionStrategy<T, GeoPosition> speedSelectionStrategy, TargetSelectionStrategy<T, GeoPosition> targetSelectionStrategy, GPSTrace trace)
-
Method Summary
Modifier and Type Method Description static GPSTrace
traceFor(MapEnvironment<out Object, out Object, out Object> environment, String path, boolean cycle, String normalizer, Array<Object> normalizerArgs)
-
Methods inherited from class it.unibo.alchemist.model.maps.actions.MoveOnMap
cloneAction, getEnvironment
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractConfigurableMoveNode
getNextPosition
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractMoveNode
execute, getContext
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractAction
getOutboundDependencies, toString
-
Methods inherited from class it.unibo.alchemist.model.Action
cloneAction
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MoveOnMapWithGPS
MoveOnMapWithGPS(MapEnvironment<T, O, S> environment, Node<T> node, RoutingStrategy<T, GeoPosition> routingStrategy, SpeedSelectionStrategy<T, GeoPosition> speedSelectionStrategy, TargetSelectionStrategy<T, GeoPosition> targetSelectionStrategy, String path, boolean cycle, String normalizer, Array<Object> normalizerArgs)
- Parameters:
environment
- the environmentnode
- the noderoutingStrategy
- the RoutingStrategyspeedSelectionStrategy
- the SpeedSelectionStrategytargetSelectionStrategy
- TargetSelectionStrategypath
- resource(file, directory, ...cycle
- true if the traces have to be distributed cyclicallynormalizer
- name of the class that implement the strategy to normalize the timenormalizerArgs
- Args to build normalize
-
MoveOnMapWithGPS
MoveOnMapWithGPS(MapEnvironment<T, O, S> environment, Node<T> node, RoutingStrategy<T, GeoPosition> routingStrategy, SpeedSelectionStrategy<T, GeoPosition> speedSelectionStrategy, TargetSelectionStrategy<T, GeoPosition> targetSelectionStrategy, GPSTrace trace)
- Parameters:
environment
- the environmentnode
- the noderoutingStrategy
- the RoutingStrategyspeedSelectionStrategy
- the SpeedSelectionStrategytargetSelectionStrategy
- TargetSelectionStrategytrace
- to follow
-
-
Method Detail
-
traceFor
static GPSTrace traceFor(MapEnvironment<out Object, out Object, out Object> environment, String path, boolean cycle, String normalizer, Array<Object> normalizerArgs)
- Parameters:
environment
- the environmentpath
- resource(file, directory, ...cycle
- true if the traces have to be distributed cyclicallynormalizer
- name of the class that implement the strategy to normalize the timenormalizerArgs
- Args to build normalize- Returns:
the GPSTrace
-
-
-
-