类 Waypoint

java.lang.Object
net.sf.marineapi.nmea.util.Position
net.sf.marineapi.nmea.util.Waypoint

public class Waypoint extends Position
Waypoint represents a named geographic location.
作者:
Kimmo Tuukkanen
另请参阅:
  • 构造器详细资料

    • Waypoint

      public Waypoint(String id, double lat, double lon)
      Creates a new instance of Waypoint with default WGS84 datum.
      参数:
      id - Waypoint identifier
      lat - Latitude degrees of the waypoint location
      lon - Longitude degrees of waypoint location
    • Waypoint

      public Waypoint(String id, double lat, double lon, double alt)
      Creates a new instance of Waypoint with default WGS84 datum.
      参数:
      id - Waypoint identifier
      lat - Latitude degrees of the waypoint location
      lon - Longitude degrees of waypoint location
      alt - Altitude value, in meters above/below mean sea level
    • Waypoint

      public Waypoint(String id, double lat, double lon, Datum datum)
      Creates a new instance of Waypoint with explicitly specified datum.
      参数:
      id - Waypoint identifier
      lat - Latitude degrees of the waypoint location
      lon - Longitude degrees of waypoint location
      datum - Position datum, i.e. the coordinate system.
    • Waypoint

      public Waypoint(String id, double lat, double lon, double alt, Datum datum)
      Creates a new instance of Waypoint with explicitly specified datum.
      参数:
      id - Waypoint identifier/name
      lat - Latitude degrees of the waypoint location
      lon - Longitude degrees of waypoint location
      alt - Altitude value, in meters above/below mean sea level
      datum - Position datum, i.e. the coordinate system.
  • 方法详细资料

    • getDescription

      public String getDescription()
      Gets the waypoint description/comment.
      返回:
      the description
    • getId

      public String getId()
      Get id of Waypoint
      返回:
      id
    • getTimeStamp

      public Date getTimeStamp()
      Returns the time stamp when Waypoint was created.
      返回:
      Date
    • setDescription

      public void setDescription(String description)
      Sets the waypoint description.
      参数:
      description - the description to set
    • setId

      public void setId(String id)
      Set the id of Waypoint
      参数:
      id - the id to set