Package it.unibo.alchemist.model.maps
Interface GPSTrace
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Route
,it.unibo.alchemist.model.maps.TimedRoute
,java.io.Serializable
,java.lang.Iterable
public interface GPSTrace implements TimedRoute<P>
-
-
Method Summary
Modifier and Type Method Description abstract GPSPoint
getNextPosition(Time time)
abstract GPSPoint
getPreviousPosition(Time time)
abstract Time
getStartTime()
abstract Time
getFinalTime()
abstract GeoPosition
interpolate(Time time)
abstract GPSTrace
startAt(Time time)
abstract GPSPoint
getInitialPosition()
abstract GPSPoint
getFinalPosition()
-
Methods inherited from class it.unibo.alchemist.model.maps.TimedRoute
getTripTime
-
Methods inherited from class it.unibo.alchemist.model.Route
getPoint, getPoints, length, size, stream
-
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
-
getNextPosition
abstract GPSPoint getNextPosition(Time time)
- Parameters:
time
- the time- Returns:
the next point
-
getPreviousPosition
abstract GPSPoint getPreviousPosition(Time time)
- Parameters:
time
- the time- Returns:
the previous point
-
getStartTime
abstract Time getStartTime()
- Returns:
the first time for this GPSTrace
-
getFinalTime
abstract Time getFinalTime()
- Returns:
the final time for this GPSTrace
-
interpolate
abstract GeoPosition interpolate(Time time)
- Parameters:
time
- the time- Returns:
the position at which the node would have been if it has moved in a straight line connecting the previous and the next point of time at constant speed
-
startAt
abstract GPSTrace startAt(Time time)
- Parameters:
time
- the time at which the new trace should start- Returns:
a new trace, which will have all the points of this trace starting at the passed time
-
getInitialPosition
abstract GPSPoint getInitialPosition()
- Returns:
The initial position of the trace
-
getFinalPosition
abstract GPSPoint getFinalPosition()
- Returns:
The final position of the trace
-
-
-
-