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>
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

    • Method Detail

      • getNextPosition

         abstract GPSPoint getNextPosition(Time time)
        Parameters:
        time - the time
        Returns:

        the next point

      • 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