|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
location.GpsInfoEvent
This class encapulates the additional information about satellites, modes and data validity, extracted from the GPS unit each second.
Field Summary | |
(package private) java.lang.String |
data_validity
|
(package private) java.lang.String |
mode
|
(package private) java.util.Vector |
SatVector
|
(package private) java.lang.String |
usedSat
|
(package private) java.lang.String |
viewedSat
|
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 |
Field Detail |
java.lang.String data_validity
java.lang.String mode
java.lang.String viewedSat
java.lang.String usedSat
java.util.Vector SatVector
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 read
public 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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |