|
|||||||||
| 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,
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 |
|---|
public Waypoint(String id,
double lat,
CompassPoint lath,
double lon,
CompassPoint lonh)
id - Waypoint identifierlat - Latitude degrees of the waypoint positionlath - Hemisphere of latitudelon - Longitude degrees of waypoint positionlonh - Hemisphere of longitude
public Waypoint(String id,
double lat,
CompassPoint lath,
double lon,
CompassPoint lonh,
Datum datum)
id - Waypoint identifierlat - Latitude degrees of the waypoint positionlath - Hemisphere of latitudelon - Longitude degrees of waypoint positionlonh - Hemisphere of longitudedatum - Position datum, i.e. the coordinate system.| Method Detail |
|---|
public String getDescription()
public String getId()
public Date getTimeStamp()
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 | ||||||||