类 Waypoint
java.lang.Object
net.sf.marineapi.nmea.util.Position
net.sf.marineapi.nmea.util.Waypoint
Waypoint represents a named geographic location.
- 作者:
- Kimmo Tuukkanen
- 另请参阅:
-
构造器概要
构造器构造器说明Creates a new instance ofWaypointwith default WGS84 datum.Creates a new instance ofWaypointwith default WGS84 datum.Creates a new instance ofWaypointwith explicitly specified datum.Creates a new instance of Waypoint with explicitly specified datum. -
方法概要
修饰符和类型方法说明Gets the waypoint description/comment.getId()Get id of WaypointReturns the time stamp whenWaypointwas created.voidsetDescription(String description) Sets the waypoint description.voidSet the id of Waypoint从类继承的方法 net.sf.marineapi.nmea.util.Position
distanceTo, getAltitude, getDatum, getLatitude, getLatitudeHemisphere, getLongitude, getLongitudeHemisphere, isLatitudeNorth, isLongitudeEast, setAltitude, setLatitude, setLongitude, toString, toWaypoint
-
构造器详细资料
-
Waypoint
Creates a new instance ofWaypointwith default WGS84 datum.- 参数:
id- Waypoint identifierlat- Latitude degrees of the waypoint locationlon- Longitude degrees of waypoint location
-
Waypoint
Creates a new instance ofWaypointwith default WGS84 datum.- 参数:
id- Waypoint identifierlat- Latitude degrees of the waypoint locationlon- Longitude degrees of waypoint locationalt- Altitude value, in meters above/below mean sea level
-
Waypoint
Creates a new instance of Waypoint with explicitly specified datum.- 参数:
id- Waypoint identifierlat- Latitude degrees of the waypoint locationlon- Longitude degrees of waypoint locationdatum- Position datum, i.e. the coordinate system.
-
Waypoint
Creates a new instance ofWaypointwith explicitly specified datum.- 参数:
id- Waypoint identifier/namelat- Latitude degrees of the waypoint locationlon- Longitude degrees of waypoint locationalt- Altitude value, in meters above/below mean sea leveldatum- Position datum, i.e. the coordinate system.
-
-
方法详细资料
-
getDescription
Gets the waypoint description/comment.- 返回:
- the description
-
getId
Get id of Waypoint- 返回:
- id
-
getTimeStamp
Returns the time stamp whenWaypointwas created.- 返回:
- Date
-
setDescription
Sets the waypoint description.- 参数:
description- the description to set
-
setId
Set the id of Waypoint- 参数:
id- the id to set
-