Class BaseNavigationPosition

java.lang.Object
slash.navigation.base.BaseNavigationPosition
All Implemented Interfaces:
NavigationPosition
Direct Known Subclasses:
CsvPosition, ExcelPosition, GkPosition, MercatorPosition, NmeaPosition, TomTomPosition, Wgs84Position

public abstract class BaseNavigationPosition extends Object implements NavigationPosition
The base of all navigation positions.
Author:
Christian Pesch
  • Constructor Details

    • BaseNavigationPosition

      public BaseNavigationPosition()
  • Method Details

    • hasCoordinates

      public boolean hasCoordinates()
      Specified by:
      hasCoordinates in interface NavigationPosition
    • hasTime

      public boolean hasTime()
      Specified by:
      hasTime in interface NavigationPosition
    • hasSpeed

      public boolean hasSpeed()
    • setStartDate

      public void setStartDate(CompactCalendar startDate)
      Description copied from interface: NavigationPosition
      Set the day/month/year-offset for date-less, time-only positions
      Specified by:
      setStartDate in interface NavigationPosition
      Parameters:
      startDate - the day/month/year-offset
    • calculateBearing

      public Bearing calculateBearing(NavigationPosition other)
    • calculateDistance

      public Double calculateDistance(NavigationPosition other)
      Description copied from interface: NavigationPosition
      Calculate the distance in meters between this and the other position.
      Specified by:
      calculateDistance in interface NavigationPosition
      Parameters:
      other - the other position
      Returns:
      the distance in meters between this and the other position or null if the distance cannot be calculated
    • calculateAngle

      public Double calculateAngle(NavigationPosition other)
      Description copied from interface: NavigationPosition
      Calculate the angle in degree between this and the other position.
      Specified by:
      calculateAngle in interface NavigationPosition
      Parameters:
      other - the other position
      Returns:
      the angle in degree between this and the other position or null if the angle cannot be calculated
    • calculateElevation

      public Double calculateElevation(NavigationPosition other)
      Description copied from interface: NavigationPosition
      Calculate the elevation in meter between this and the other position.
      Specified by:
      calculateElevation in interface NavigationPosition
      Parameters:
      other - the other position
      Returns:
      the elevation in meter between this and the other position or null if the elevation cannot be calculated
    • calculateTime

      public Long calculateTime(NavigationPosition other)
      Description copied from interface: NavigationPosition
      Calculate the time in milliseconds between this and the other position.
      Specified by:
      calculateTime in interface NavigationPosition
      Parameters:
      other - the other position
      Returns:
      the time in milliseconds between this and the other position or null if the time cannot be calculated
    • calculateOrthogonalDistance

      public Double calculateOrthogonalDistance(NavigationPosition pointA, NavigationPosition pointB)
      Description copied from interface: NavigationPosition
      Calculate the orthogonal distance of this position to the line from pointA to pointB, supposed you are proceeding on a great circle route from A to B and end up at D, perhaps ending off course. ... ...
      Specified by:
      calculateOrthogonalDistance in interface NavigationPosition
      Parameters:
      pointA - the first point determining the line between pointA and pointB
      pointB - the second point determining the line between pointA and pointB
      Returns:
      the orthogonal distance to the line from pointA to pointB in meter or null if the orthogonal distance cannot be calculated
    • calculateSpeed

      public Double calculateSpeed(NavigationPosition other)
      Description copied from interface: NavigationPosition
      Calculate the average speed in kilometers per hour between this and the other position.
      Specified by:
      calculateSpeed in interface NavigationPosition
      Parameters:
      other - the other position
      Returns:
      the speed in kilometers per hour between this and the other position or null if time or distance cannot be calculated
    • asColumbusGpsStandardPosition

      public Wgs84Position asColumbusGpsStandardPosition()
    • asColumbusGpsProfessionalPosition

      public Wgs84Position asColumbusGpsProfessionalPosition()
    • asColumbusGpsTypePosition

      public Wgs84Position asColumbusGpsTypePosition()
    • asCoPilotPosition

      public Wgs84Position asCoPilotPosition()
    • asCsvPosition

      public CsvPosition asCsvPosition()
    • asCsvCommaPosition

      public CsvPosition asCsvCommaPosition()
    • asCsvSemicolonPosition

      public CsvPosition asCsvSemicolonPosition()
    • asFlightradarPosition

      public CsvPosition asFlightradarPosition()
    • asMicrosoftExcelPosition

      public ExcelPosition asMicrosoftExcelPosition()
    • asFitPosition

      public Wgs84Position asFitPosition()
    • asGarbleGpxPosition

      public GpxPosition asGarbleGpxPosition()
    • asGarbleKmlPosition

      public KmlPosition asGarbleKmlPosition()
    • asGarbleKmlLittleEndianPosition

      public KmlPosition asGarbleKmlLittleEndianPosition()
    • asGarbleKmlBetaPosition

      public KmlPosition asGarbleKmlBetaPosition()
    • asGarbleKmzPosition

      public KmlPosition asGarbleKmzPosition()
    • asGarbleKmzLittleEndianPosition

      public KmlPosition asGarbleKmzLittleEndianPosition()
    • asGarminFlightPlanPosition

      public GarminFlightPlanPosition asGarminFlightPlanPosition()
    • asGkPosition

      public GkPosition asGkPosition()
    • asGlopusPosition

      public Wgs84Position asGlopusPosition()
    • asGoogleMapsUrlPosition

      public Wgs84Position asGoogleMapsUrlPosition()
    • asGoPalRoutePosition

      public GoPalPosition asGoPalRoutePosition()
    • asGoPalTrackPosition

      public Wgs84Position asGoPalTrackPosition()
    • asGoRiderGpsPosition

      public Wgs84Position asGoRiderGpsPosition()
    • asGpsTunerPosition

      public Wgs84Position asGpsTunerPosition()
    • asGpxPosition

      public GpxPosition asGpxPosition()
    • asIgoRoutePosition

      public KmlPosition asIgoRoutePosition()
    • asHaicomLoggerPosition

      public Wgs84Position asHaicomLoggerPosition()
    • asPhotoPosition

      public Wgs84Position asPhotoPosition()
    • asIbluePosition

      public Wgs84Position asIbluePosition()
    • asKlickTelRoutePosition

      public Wgs84Position asKlickTelRoutePosition()
    • asKmlPosition

      public KmlPosition asKmlPosition()
    • asKmlBetaPosition

      public KmlPosition asKmlBetaPosition()
    • asKmzPosition

      public KmlPosition asKmzPosition()
    • asKmzBetaPosition

      public KmlPosition asKmzBetaPosition()
    • asKompassPosition

      public Wgs84Position asKompassPosition()
    • asMagellanExploristPosition

      public NmeaPosition asMagellanExploristPosition()
    • asMagellanRoutePosition

      public NmeaPosition asMagellanRoutePosition()
    • asMagicMapsIktPosition

      public Wgs84Position asMagicMapsIktPosition()
    • asMagicMapsGoPosition

      public Wgs84Position asMagicMapsGoPosition()
    • asMagicMapsPthPosition

      public GkPosition asMagicMapsPthPosition()
    • asMotoPlanerUrlPosition

      public Wgs84Position asMotoPlanerUrlPosition()
    • asMSFSFlightPlanPosition

      public Wgs84Position asMSFSFlightPlanPosition()
    • asMTPPosition

      public BcrPosition asMTPPosition()
    • asNavigatingPoiWarnerPosition

      public Wgs84Position asNavigatingPoiWarnerPosition()
    • asNavigonCruiserPosition

      public Wgs84Position asNavigonCruiserPosition()
    • asNmeaPosition

      public NmeaPosition asNmeaPosition()
    • asNmnFavoritesPosition

      public NmnPosition asNmnFavoritesPosition()
    • asNmnPosition

      public NmnPosition asNmnPosition()
    • asNmnUrlPosition

      public Wgs84Position asNmnUrlPosition()
    • asNokiaLandmarkExchangePosition

      public Wgs84Position asNokiaLandmarkExchangePosition()
    • asOpelNaviPosition

      public Wgs84Position asOpelNaviPosition()
    • asOvlPosition

      public Wgs84Position asOvlPosition()
    • asQstarzQPosition

      public Wgs84Position asQstarzQPosition()
    • asRoutePosition

      public Wgs84Position asRoutePosition()
    • asRtzPosition

      public Wgs84Position asRtzPosition()
    • asSygicUnicodePosition

      public Wgs84Position asSygicUnicodePosition()
    • asTcxPosition

      public GpxPosition asTcxPosition()
    • asTomTomRoutePosition

      public TomTomPosition asTomTomRoutePosition()
    • asTourPosition

      public TourPosition asTourPosition()
    • asWgs84Position

      public Wgs84Position asWgs84Position()
    • asWintecWbtTkPosition

      public Wgs84Position asWintecWbtTkPosition()
    • asWintecWbtTesPosition

      public Wgs84Position asWintecWbtTesPosition()
    • toString

      public String toString()
      Overrides:
      toString in class Object