Package slash.navigation.base
Class BaseNavigationPosition
java.lang.Object
slash.navigation.base.BaseNavigationPosition
- All Implemented Interfaces:
NavigationPosition
- Direct Known Subclasses:
CsvPosition,ExcelPosition,GkPosition,MercatorPosition,NmeaPosition,TomTomPosition,Wgs84Position
The base of all navigation positions.
- Author:
- Christian Pesch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateAngle(NavigationPosition other) Calculate the angle in degree between this and the other position.Calculate the distance in meters between this and the other position.Calculate the elevation in meter between this and the other position.calculateOrthogonalDistance(NavigationPosition pointA, NavigationPosition pointB) 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.calculateSpeed(NavigationPosition other) Calculate the average speed in kilometers per hour between this and the other position.calculateTime(NavigationPosition other) Calculate the time in milliseconds between this and the other position.booleanbooleanhasSpeed()booleanhasTime()voidsetStartDate(CompactCalendar startDate) Set the day/month/year-offset for date-less, time-only positionstoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface slash.navigation.common.NavigationPosition
getDescription, getElevation, getLatitude, getLongitude, getSpeed, getTime, isStartsNewSegment, setDescription, setElevation, setLatitude, setLongitude, setSpeed, setTime
-
Constructor Details
-
BaseNavigationPosition
public BaseNavigationPosition()
-
-
Method Details
-
hasCoordinates
public boolean hasCoordinates()- Specified by:
hasCoordinatesin interfaceNavigationPosition
-
hasTime
public boolean hasTime()- Specified by:
hasTimein interfaceNavigationPosition
-
hasSpeed
public boolean hasSpeed() -
setStartDate
Description copied from interface:NavigationPositionSet the day/month/year-offset for date-less, time-only positions- Specified by:
setStartDatein interfaceNavigationPosition- Parameters:
startDate- the day/month/year-offset
-
asColumbusGpsStandardPosition
-
asColumbusGpsProfessionalPosition
-
asColumbusGpsTypePosition
-
asCoPilotPosition
-
asCsvPosition
-
asCsvCommaPosition
-
asCsvSemicolonPosition
-
asFlightradarPosition
-
asMicrosoftExcelPosition
-
asFitPosition
-
asGarbleGpxPosition
-
asGarbleKmlPosition
-
asGarbleKmlLittleEndianPosition
-
asGarbleKmlBetaPosition
-
asGarbleKmzPosition
-
asGarbleKmzLittleEndianPosition
-
asGarminFlightPlanPosition
-
asGkPosition
-
asGlopusPosition
-
asGoogleMapsUrlPosition
-
asGoPalRoutePosition
-
asGoPalTrackPosition
-
asGoRiderGpsPosition
-
asGpsTunerPosition
-
asGpxPosition
-
asIgoRoutePosition
-
asHaicomLoggerPosition
-
asPhotoPosition
-
asIbluePosition
-
asKlickTelRoutePosition
-
asKmlPosition
-
asKmlBetaPosition
-
asKmzPosition
-
asKmzBetaPosition
-
asKompassPosition
-
asMagellanExploristPosition
-
asMagellanRoutePosition
-
asMagicMapsIktPosition
-
asMagicMapsGoPosition
-
asMagicMapsPthPosition
-
asMotoPlanerUrlPosition
-
asMSFSFlightPlanPosition
-
asMTPPosition
-
asNmeaPosition
-
asNmnFavoritesPosition
-
asNmnPosition
-
asNmnUrlPosition
-
asNokiaLandmarkExchangePosition
-
asOvlPosition
-
asQstarzQPosition
-
asRoutePosition
-
asRtzPosition
-
asSygicUnicodePosition
-
asTcxPosition
-
asTomTomRoutePosition
-
asTourPosition
-
asWgs84Position
-
asWintecWbtTkPosition
-
asWintecWbtTesPosition
-
toString
-