Class FromGPSTrace
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Deployment
,java.lang.Iterable
public final class FromGPSTrace implements Deployment<P>
Distributes nodes in the first positions of GPSTrace.
-
-
Constructor Summary
Constructors Constructor Description FromGPSTrace(int nodeCount, String path, boolean cycle, String normalizer, Array<Object> args)
-
Method Summary
Modifier and Type Method Description Stream<GeoPosition>
stream()
-
Methods inherited from class it.unibo.alchemist.model.Deployment
getAssociatedLinkingRule, iterator
-
Methods inherited from class java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FromGPSTrace
FromGPSTrace(int nodeCount, String path, boolean cycle, String normalizer, Array<Object> args)
- Parameters:
nodeCount
- number of node requestpath
- path with the gps trackscycle
- true if, in case there are more nodes to deploy than available GPS traces, the traces should be reused cyclically.normalizer
- class to use to normalize timeargs
- args to use to create GPSTimeNormalizer
-
-
Method Detail
-
stream
Stream<GeoPosition> stream()
-
-
-
-