|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object location.GPSInfo
Encapsulates inforamation obtained from the GPS receiver.
Field Summary | |
private LocationDate |
date
time stamp information |
private double |
knots
speed information |
private Latitude |
latitude
latitude information |
private Longitude |
longitude
longitude information |
private boolean |
validity
The validity of this measurement. |
Constructor Summary | |
GPSInfo(GPSInfo info)
The copy constructor. |
|
GPSInfo(Latitude latitude,
Longitude longitude,
double knots,
LocationDate date,
boolean validity)
The constructor. |
Method Summary | |
LocationDate |
getDate()
Returns the date this GPS reading was taken. |
double |
getKnots()
Returns the knots of this GPS reading. |
double |
getKPH()
Accessor method to get the speed in kilometers per hour stored in this event |
Latitude |
getLatitude()
Returns the latitude. |
Longitude |
getLongitude()
Returns the longitude. |
double |
getMPH()
Accessor method to get the speed in miles per hour stored in this event |
boolean |
getValidity()
Returns whether this GPS info contains a valid GPS reading. |
java.lang.String |
toString()
Returns a string representation of this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Latitude latitude
private Longitude longitude
private double knots
private LocationDate date
private boolean validity
Constructor Detail |
public GPSInfo(Latitude latitude, Longitude longitude, double knots, LocationDate date, boolean validity)
public GPSInfo(GPSInfo info)
Method Detail |
public Latitude getLatitude()
public Longitude getLongitude()
public double getKnots()
public LocationDate getDate()
public boolean getValidity()
public double getMPH()
public double getKPH()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |