|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjaron.gps.Trackpoint
public class Trackpoint
The Trackpoint
class represents a GPS track point.
A list or array of track points represent a GPS track.
Constructor Summary | |
---|---|
Trackpoint()
|
Method Summary | |
---|---|
double |
getAltitude()
Returns the current altitude at this track point. |
double |
getCourse()
Returns the course on which this trackpoint was reached. |
double |
getDistance()
Returns the distance of the track until this track point. |
java.lang.String |
getDuration()
Returns the duration of the track until this track point. |
double |
getGroundSpeed()
Returns the ground speed reached at this track point. |
Latitude |
getLatitude()
Returns a Latitude object containig a latitude coordinate
of a geographical location. |
Longitude |
getLongitude()
Returns a Longitude object containig a longitude coordinate
of a geographical location. |
int |
getSatellites()
Returns the number of satellites that where reachable at this track point. |
java.util.Date |
getTimestamp()
Returns the current time when of this track point. |
void |
setAltitude(double altitude)
Sets the current altitude of this track point. |
void |
setCourse(double course)
Sets the current course. |
void |
setDistance(double distance)
Sets the distance of the track until this track point. |
void |
setDuration(java.lang.String duration)
Sets the duration of the track until this track point. |
void |
setGroundSpeed(double speed)
Sets the ground speed reached at this track point. |
void |
setGroundSpeedKnots(double speed)
Sets the ground speed reached at this track point. |
void |
setLatitude(Latitude latitude)
Sets the geographical latitude coordinate of this track point. |
void |
setLongitude(Longitude longitude)
Sets the geographical longitude coordinate of this track point. |
void |
setSatellites(int satellites)
Sets the number of satellites that where reachable at this track point. |
void |
setTimestamp(java.util.Date time)
Sets the current time of this track point. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Trackpoint()
Method Detail |
---|
public void setDuration(java.lang.String duration)
Trackpath
object.
- Parameters:
duration
- the track duration
public java.lang.String getDuration()
public void setDistance(double distance)
Trackpath
object.
- Parameters:
distance
- the track distance in kilometers
public double getDistance()
public Latitude getLatitude()
Latitude
object containig a latitude coordinate
of a geographical location.
public void setLatitude(Latitude latitude)
latitude
- the latitude coordinatepublic Longitude getLongitude()
Longitude
object containig a longitude coordinate
of a geographical location.
public void setLongitude(Longitude longitude)
longitude
- the longitude coordinatepublic double getAltitude()
public void setAltitude(double altitude)
altitude
- the new altitude in meterspublic java.util.Date getTimestamp()
public void setTimestamp(java.util.Date time)
time
- the new timepublic double getGroundSpeed()
public void setGroundSpeed(double speed)
speed
- ground speed in kilometers per hourpublic void setGroundSpeedKnots(double speed)
speed
- ground speed in knotspublic int getSatellites()
public void setSatellites(int satellites)
satellites
- new number of satellitespublic double getCourse()
public void setCourse(double course)
course
- in degrees
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |