|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.placelab.spotter.AbstractSpotter
org.placelab.spotter.SyncSpotter
org.placelab.midp.GSMSpotter
This spotter polls a localhost server running on the phone. This is a synchronous spotter that makes a blocking read request to the server, returning when the read completes. NEW: The GSMSpotter now supports operation in the emulator by using log files that were uploaded by the StumbleUploadProxy placed inside the jar to get the Measurements. The build.xml helps here by only placing those log files in the jar when the do-emulate target is selected.
| Constructor Summary | |
GSMSpotter()
Construct a GSMSpotter with default scan time of 1 second |
|
GSMSpotter(long intervalMillis)
Construct a GSMSpotter |
|
| Method Summary | |
void |
close()
Unloads resources used by the spotter. |
protected Measurement |
getMeasurementImpl()
Collects and returns a single Measurement. |
protected long |
nextScanInterval()
Returns the scan interval for polling the native server |
void |
open()
Load resources used by the spotter. |
| Methods inherited from class org.placelab.spotter.SyncSpotter |
errorInBackgroundThreadAndThreadDeath, getMeasurement, scanUsingBackgroundThread, scanUsingEventSystem, startScanning, startScanning, stopScanning |
| Methods inherited from class org.placelab.spotter.AbstractSpotter |
addListener, notifyEndOfScan, notifyEndOfScan, notifyGotException, notifyGotException, notifyGotMeasurement, notifyGotMeasurement, removeListener, scanOnce, scanOnce, waitForThread |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GSMSpotter()
public GSMSpotter(long intervalMillis)
intervalMillis - time between scans| Method Detail |
public void open()
throws SpotterException
Spotter
SpotterException - if the necessary hardware or software for this spotter
is not present
public void close()
throws SpotterException
Spotter
SpotterException
protected Measurement getMeasurementImpl()
throws SpotterException
SyncSpotter
getMeasurementImpl in class SyncSpotterSpotterExceptionprotected long nextScanInterval()
nextScanInterval in class SyncSpotter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||