|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--util.Position
This class represents a gps position location, a gps position contains the latitude, longitude, heading, and other information.
Field Summary | |
private double |
heading
The compass heading. |
private double |
lat
Latitude. |
private double |
lng
Longitude. |
private double |
speed
The current movement speed determined by tracking and time. |
private long |
time
The current world time for this timezone. |
private double |
track
Tracking used in real gps, needed to determine heading. |
Constructor Summary | |
Position()
This constructor instantiates the GPS Position object with default values for the gps coordinate position. |
Method Summary | |
double |
getHeading()
This method returns the heading. |
double |
getLatitude()
This method returns the latitude. |
double |
getLongitude()
This method returns the longitude. |
long |
getTime()
This method returns the time. |
void |
setHeading(double h)
This method sets the heading. |
void |
setLatitude(double l)
This method sets the latitude. |
void |
setLongitude(double l)
This method sets the longitude. |
void |
setTime(long time)
This method sets the time. |
java.lang.String |
toString()
This method returns a String of the GPS Position in a NMEA format. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private double lat
private double lng
private double track
private double speed
private long time
private double heading
Constructor Detail |
public Position()
Method Detail |
public long getTime()
public void setTime(long time)
time
- The time.public double getHeading()
public void setHeading(double h)
h
- The heading.public double getLatitude()
public void setLatitude(double l)
l
- The latitude.public double getLongitude()
public void setLongitude(double l)
l
- The longitude.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |