-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.GPSTrace,it.unibo.alchemist.model.interfaces.Route,it.unibo.alchemist.model.interfaces.TimedRoute,java.io.Serializable,java.lang.Iterable
public final class GPSTraceImpl extends PolygonalChain<GPSPoint> implements GPSTrace
-
-
Constructor Summary
Constructors Constructor Description GPSTraceImpl(Array<GPSPoint> tr)GPSTraceImpl(List<GPSPoint> tr)
-
Method Summary
Modifier and Type Method Description GPSTraceImplstartAt(Time time)GPSPointgetNextPosition(Time time)GPSPointgetPreviousPosition(Time time)TimegetStartTime()GeoPositioninterpolate(Time time)doublegetTripTime()GPSPointgetInitialPosition()GPSPointgetFinalPosition()TimegetFinalTime()-
Methods inherited from class it.unibo.alchemist.model.implementations.routes.PolygonalChain
equals, getPoint, getPoints, hashCode, iterator, length, size, stream, toString -
Methods inherited from class it.unibo.alchemist.model.interfaces.Route
getPoints -
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
-
-
Method Detail
-
startAt
GPSTraceImpl startAt(Time time)
- Parameters:
time- the time at which the new trace should start
-
getNextPosition
GPSPoint getNextPosition(Time time)
- Parameters:
time- the time
-
getPreviousPosition
GPSPoint getPreviousPosition(Time time)
- Parameters:
time- the time
-
getStartTime
Time getStartTime()
-
interpolate
GeoPosition interpolate(Time time)
- Parameters:
time- the time
-
getTripTime
double getTripTime()
-
getInitialPosition
GPSPoint getInitialPosition()
-
getFinalPosition
GPSPoint getFinalPosition()
-
getFinalTime
Time getFinalTime()
-
-
-
-