es.uv.robotica.gvsig.mobile.gps.tracklog
Class Waypoint

java.lang.Object
  extended byes.uv.robotica.gvsig.mobile.gps.tracklog.Waypoint

public class Waypoint
extends java.lang.Object

Holds information about a waypoint

Author:
jgui
See Also:
WaypointManager, GPSManager

Constructor Summary
Waypoint(double _lat, double _lon, double _ele, java.util.Date _time)
          Constructor
 
Method Summary
 void addLink(Link _link)
          Adds a link to additional information about the waypoint.
 java.lang.String getDesc()
          Gets a text description of the waypoint
 double getEle()
          Gets elevation of the waypoint
 double getLat()
          Gets latitude of the waypoint
 java.util.Vector getLinkList()
          Gets a list of links which point to additional information about the waypoint
 double getLon()
          Gets longitude of the waypoint
 java.lang.String getName()
          Gets the GPS name of the waypoint.
 java.lang.String getSym()
          Gets the name of the GPS symbol
 java.util.Date getTime()
          Gets time of the waypoint
 java.lang.String getType()
          Gets the type of the waypoint
 void setDesc(java.lang.String _desc)
          Sets a text description of the element.
 void setName(java.lang.String _name)
          Sets the GPS name of the waypoint.
 void setSym(java.lang.String _sym)
          Sets the text of the GPS symbol name.
 void setType(java.lang.String _type)
          Sets the type (classification) of the waypoint.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Waypoint

public Waypoint(double _lat,
                double _lon,
                double _ele,
                java.util.Date _time)
Constructor

Parameters:
_lat - The latitude of the point. Decimal degrees, WGS84 datum.
_lon - The longitude of the point. Decimal degrees, WGS84 datum.
_ele - Elevation (in meters) of the point.
_time - Creation/modification timestamp for element. Date and time in are in Univeral Coordinated Time (UTC), not local time! Conforms to ISO 8601 specification for date/time representation. Fractional seconds are allowed for millisecond timing in tracklogs.
Method Detail

getLat

public double getLat()
Gets latitude of the waypoint

Returns:
latitude

getLon

public double getLon()
Gets longitude of the waypoint

Returns:
longitude

getEle

public double getEle()
Gets elevation of the waypoint

Returns:
elevation

getTime

public java.util.Date getTime()
Gets time of the waypoint

Returns:
time expressed as an instance of Date

setName

public void setName(java.lang.String _name)
Sets the GPS name of the waypoint. This field will be transferred to and from the GPS. GPX does not place restrictions on the length of this field or the characters contained in it. It is up to the receiving application to validate the field before sending it to the GPS.


getName

public java.lang.String getName()
Gets the GPS name of the waypoint.

Returns:
name

setDesc

public void setDesc(java.lang.String _desc)
Sets a text description of the element. Holds additional information about the element intended for the user, not the GPS.


getDesc

public java.lang.String getDesc()
Gets a text description of the waypoint

Returns:
description

addLink

public void addLink(Link _link)
Adds a link to additional information about the waypoint. Several links can be added to the waypoint


getLinkList

public java.util.Vector getLinkList()
Gets a list of links which point to additional information about the waypoint

Returns:

setSym

public void setSym(java.lang.String _sym)
Sets the text of the GPS symbol name. For interchange with other programs, use the exact spelling of the symbol as displayed on the GPS. If the GPS abbreviates words, spell them out.


getSym

public java.lang.String getSym()
Gets the name of the GPS symbol

Returns:
symbol name

setType

public void setType(java.lang.String _type)
Sets the type (classification) of the waypoint.


getType

public java.lang.String getType()
Gets the type of the waypoint

Returns:
type of waypoint as a String