|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.marineapi.nmea.util.Position
net.sf.marineapi.nmea.util.Waypoint
public class Waypoint
Waypoint represents a named geographic location.
Position
Constructor Summary | |
---|---|
Waypoint(String id,
double lat,
double lon)
Creates a new instance of Waypoint with default WGS84 datum. |
|
Waypoint(String id,
double lat,
double lon,
Datum datum)
Creates a new instance of Waypoint with explicitly specified datum. |
|
Waypoint(String id,
double lat,
double lon,
double alt)
Creates a new instance of Waypoint with default WGS84 datum. |
|
Waypoint(String id,
double lat,
double lon,
double alt,
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 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, getLatitude, getLatitudeHemisphere, getLongitude, getLongitudeHemisphere, isLatitudeNorth, isLongitudeEast, setAltitude, setLatitude, setLongitude, toString, toWaypoint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Waypoint(String id, double lat, double lon)
Waypoint
with default WGS84 datum.
id
- Waypoint identifierlat
- Latitude degrees of the waypoint locationlon
- Longitude degrees of waypoint locationpublic Waypoint(String id, double lat, double lon, double alt)
Waypoint
with 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 levelpublic Waypoint(String id, double lat, double lon, Datum datum)
id
- Waypoint identifierlat
- Latitude degrees of the waypoint locationlon
- Longitude degrees of waypoint locationdatum
- Position datum, i.e. the coordinate system.public Waypoint(String id, double lat, double lon, double alt, Datum datum)
Waypoint
with 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.Method Detail |
---|
public String getDescription()
public String getId()
public Date getTimeStamp()
Waypoint
was created.
public void setDescription(String description)
description
- the description to setpublic void setId(String id)
id
- the id to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |