util
Class Position
java.lang.Object
|
+--util.Position
- public class Position
- extends java.lang.Object
This class represents a gps position location, a gps position contains
the latitude, longitude, heading, and other information.
Constructor Summary |
Position()
This constructor instantiates the GPS Position object with default
values for the gps coordinate position. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
lat
private double lat
lng
private double lng
track
private double track
speed
private double speed
time
private long time
heading
private double heading
Position
public Position()
- This constructor instantiates the GPS Position object with default
values for the gps coordinate position.
getTime
public long getTime()
setTime
public void setTime(long time)
getHeading
public double getHeading()
setHeading
public void setHeading(double h)
setLatitude
public void setLatitude(double l)
setLongitude
public void setLongitude(double l)
getLatitude
public double getLatitude()
getLongitude
public double getLongitude()
toString
public java.lang.String toString()
- This method returns a String of the GPS Position in a NMEA format.
- Overrides:
toString
in class java.lang.Object
- Returns:
- String The nmea String for this Position object.