Class GPSTraceImpl

  • All Implemented Interfaces:
    it.unibo.alchemist.model.Route , it.unibo.alchemist.model.maps.GPSTrace , it.unibo.alchemist.model.maps.TimedRoute , java.io.Serializable , java.lang.Iterable

    
    public final class GPSTraceImpl
    extends PolygonalChain<P> implements GPSTrace
                        

    Implementation of a GPSTrace.

    • Constructor Detail

      • GPSTraceImpl

        GPSTraceImpl(Array<GPSPoint> trace)
        Parameters:
        trace - GPS points
      • GPSTraceImpl

        GPSTraceImpl(List<GPSPoint> tr)
        Parameters:
        tr - GPS points
    • Method Detail

      • startAt

         GPSTraceImpl 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

      • interpolate

         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

      • getTripTime

         double getTripTime()
        Returns:

        the total trip time