|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.gps.GPSData
This class represents a valid gps data record in terms of latitude, longitude, altitude, course and speed coupled with a timestamp. For each valid entry, a valid bit is set.
Field Summary | |
static int |
ALTITUDE
Valid bit for altitude. |
private double |
altitude_
Altitude in meters. |
static int |
COURSE
Valid bit for course. |
private double |
course_
Course in . |
static int |
DATE
Valid bit for date (day/month/year). |
static double |
KMH_PER_KNOT
Conversion factor: 1 knot = 1.852 km/h |
static int |
LATITUDE
Valid bit for latitude. |
private Latitude |
latitude_
Latitude in decimal degrees. |
static int |
LONGITUDE
Valid bit for longitude. |
private Longitude |
longitude_
Longitude in decimal degrees. |
static int |
SPEED
Valid bit for speed. |
private double |
speed_
Speed in kilometers per hour. |
static int |
TIME
Valid bit for time (hour:minute:second). |
private Date |
timestamp_
Timestamp (time and/or date). |
private int |
validFields_
Bit mask contains one set bit for every valid entry (see valid bits). |
Constructor Summary | |
GPSData()
|
|
GPSData(NMEA183Sentence nmea)
|
Method Summary | |
GPSData |
deepClone()
|
double |
getAltitude()
|
double |
getCourse()
|
Latitude |
getLatitude()
|
Longitude |
getLongitude()
|
double |
getSpeed()
|
Date |
getTimestamp()
|
int |
getValidFields()
|
WGS84Coordinate |
getWGS84Coordinate()
|
void |
setAltitude(double altitude)
|
void |
setCourse(double course)
|
void |
setDate(Date date)
|
void |
setLatitude(Latitude latitude)
|
void |
setLongitude(Longitude longitude)
|
void |
setSpeed(double speed)
|
void |
setTime(Date time)
|
void |
setWGS84Coordinate(WGS84Coordinate wgs)
|
String |
toString()
|
boolean |
update(GPSData data)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final double KMH_PER_KNOT
public static final int LATITUDE
public static final int LONGITUDE
public static final int ALTITUDE
public static final int COURSE
public static final int SPEED
public static final int TIME
public static final int DATE
private Latitude latitude_
private Longitude longitude_
private double altitude_
private double course_
private double speed_
private Date timestamp_
private int validFields_
Constructor Detail |
public GPSData()
public GPSData(NMEA183Sentence nmea)
Method Detail |
public int getValidFields()
public boolean update(GPSData data)
public void setWGS84Coordinate(WGS84Coordinate wgs)
public WGS84Coordinate getWGS84Coordinate()
public void setLatitude(Latitude latitude)
public Latitude getLatitude()
public void setLongitude(Longitude longitude)
public Longitude getLongitude()
public void setAltitude(double altitude)
public double getAltitude()
public void setCourse(double course)
public double getCourse()
public void setSpeed(double speed)
public double getSpeed()
public void setDate(Date date)
public void setTime(Date time)
public Date getTimestamp()
public String toString()
public GPSData deepClone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |