|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectlocation.generators.FakeSatelliteInfoGenerator
Generates random fake satellite information.
| Field Summary | |
(package private) FakeGPSMonitor |
fgm
The FakeGPSMonitor that the fake satellite information should be sent to. |
(package private) GpsInfoEvent |
gpsinfo
|
(package private) int |
period
The period in ms at which the sattelite information should change. |
| Constructor Summary | |
FakeSatelliteInfoGenerator(FakeGPSMonitor fgm)
|
|
| Method Summary | |
protected GpsInfoEvent |
genRandomGpsInfo()
Generates a randome GpsInfoEvent. |
void |
run()
Periodically changes the GpsInfoEvent being reported by the FakeGPSMonitor. |
void |
setPeriod(int period)
Sets the period of updates. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
FakeGPSMonitor fgm
int period
GpsInfoEvent gpsinfo
| Constructor Detail |
public FakeSatelliteInfoGenerator(FakeGPSMonitor fgm)
| Method Detail |
public void setPeriod(int period)
period - the period in millisecondsprotected GpsInfoEvent genRandomGpsInfo()
public void run()
run in interface java.lang.Runnable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||