|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--location.GpsInfoEvent
This class encapulates the additional information about satellites, modes and data validity, extracted from the GPS unit each second.
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
GpsInfoEvent(java.lang.Object src,
java.lang.String data_validity,
java.lang.String mode,
java.lang.String viewedSat,
java.lang.String usedSat)
Creates a new GpsInfoEvent |
Method Summary | |
void |
addSatellite(Satellite sat)
Adds a Satellite object to the vector of Satellites |
java.lang.String |
getData_validity()
Accessor method to the validity of data |
java.lang.String |
getMode()
Accessor method to the mode (2D/3D) |
Satellite |
getSatellite(int i)
Gets the satellite in position i of the vector |
java.lang.String |
getUsedSat()
Accessor method to the number of used satellite |
java.lang.String |
getViewedSat()
Accessor method to the number of viewed satellite |
int |
numberOfSatellites()
Returns the number of Satellites in the vector |
java.lang.String |
toString()
Gives a string representation of the object |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GpsInfoEvent(java.lang.Object src, java.lang.String data_validity, java.lang.String mode, java.lang.String viewedSat, java.lang.String usedSat)
src
- The source of the eventdata_validity
- A string indicating the validity of the data extracted from the GPSmode
- A string indicating the GPS working modeviewedSat
- A string indicating the number of the viewed satellitesusedSat
- A string indicating the number of the used satellitesMethod Detail |
public void addSatellite(Satellite sat)
sat
- A satellite Objectpublic Satellite getSatellite(int i)
i
- The position of the vector you want to readpublic int numberOfSatellites()
public java.lang.String getData_validity()
public java.lang.String getMode()
public java.lang.String getUsedSat()
public java.lang.String getViewedSat()
public java.lang.String toString()
toString
in class java.util.EventObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |