net.sf.marineapi.nmea.util
Class Waypoint

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

public class Waypoint
extends Position

Waypoint represents a named geographic location.

Version:
$Revision: 35 $
Author:
Kimmo Tuukkanen
See Also:
Position

Constructor Summary
Waypoint(String id, double lat, CompassPoint lath, double lon, CompassPoint lonh)
          Creates a new instance of Waypoint with default WGS84 datum.
Waypoint(String id, double lat, CompassPoint lath, double lon, CompassPoint lonh, Datum datum)
          Creates a new instance of Waypoint with explicitly specified datum.
 
Method Summary
 String getDescription()
          Gets the waypoint description/comment.
 String getId()
          Get id of Waypoint
 Date getTimeStamp()
          Returns the time stamp when the Waypoint was created.
 void setDescription(String description)
          Sets the waypoint description.
 void setId(String id)
          Set the id of Waypoint
 
Methods inherited from class net.sf.marineapi.nmea.util.Position
distanceTo, getAltitude, getDatum, getLatHemisphere, getLatitude, getLongitude, getLonHemisphere, setAltitude, setLatHemisphere, setLatitude, setLongitude, setLonHemisphere, toString, toWaypoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Waypoint

public Waypoint(String id,
                double lat,
                CompassPoint lath,
                double lon,
                CompassPoint lonh)
Creates a new instance of Waypoint with default WGS84 datum.

Parameters:
id - Waypoint identifier
lat - Latitude degrees of the waypoint position
lath - Hemisphere of latitude
lon - Longitude degrees of waypoint position
lonh - Hemisphere of longitude

Waypoint

public Waypoint(String id,
                double lat,
                CompassPoint lath,
                double lon,
                CompassPoint lonh,
                Datum datum)
Creates a new instance of Waypoint with explicitly specified datum.

Parameters:
id - Waypoint identifier
lat - Latitude degrees of the waypoint position
lath - Hemisphere of latitude
lon - Longitude degrees of waypoint position
lonh - Hemisphere of longitude
datum - Position datum, i.e. the coordinate system.
Method Detail

getDescription

public String getDescription()
Gets the waypoint description/comment.

Returns:
the description

getId

public String getId()
Get id of Waypoint

Returns:
id

getTimeStamp

public Date getTimeStamp()
Returns the time stamp when the Waypoint was created.

Returns:
Date

setDescription

public void setDescription(String description)
Sets the waypoint description.

Parameters:
description - the description to set

setId

public void setId(String id)
Set the id of Waypoint

Parameters:
id - the id to set


Copyright (C) 2010-2011 Java Marine API author(s). All Rights Reserved.