|
||||||||||
| 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.spotter.WiFiSpotter
WiFiSpotter depends on a native code library to poll the WiFi hardware.
| Constructor Summary | |
WiFiSpotter()
create a spotter with a default scanning interval; the scanning interval is relevant only if the spotter is used in continuous scanning mode |
|
WiFiSpotter(long scanIntervalMillis)
create a spotter with the specified scanning interval. |
|
| Method Summary | |
void |
close()
Unloads resources used by the spotter. |
protected Measurement |
getMeasurementImpl()
Collects and returns a single Measurement. |
long |
getPeriodicScanInterval()
|
protected long |
nextScanInterval()
|
void |
open()
Load resources used by the spotter. |
void |
setPeriodicScanInterval(long intervalMillis)
Sets the minimum amount of time between SpotterListener.gotMeasurement(Spotter, Measurement)
callbacks to listeners. |
void |
spotter_init(java.lang.String wifiInterface)
Initialize the spotter |
java.lang.String[] |
spotter_poll()
Poll the spotter. |
void |
spotter_shutdown()
Shutdown the spotter. |
void |
startScanning(EventSystem evs)
Start scanning for Measurements. |
| Methods inherited from class org.placelab.spotter.SyncSpotter |
errorInBackgroundThreadAndThreadDeath, getMeasurement, scanUsingBackgroundThread, scanUsingEventSystem, 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 WiFiSpotter()
public WiFiSpotter(long scanIntervalMillis)
| Method Detail |
public void spotter_init(java.lang.String wifiInterface)
throws SpotterException
wifiInterface - The wireless interface to use. If null or the empty string "", use
the first found wireless interface.
SpotterException
public void spotter_shutdown()
throws SpotterException
SpotterException
public java.lang.String[] spotter_poll()
throws SpotterException
SpotterExceptionpublic void setPeriodicScanInterval(long intervalMillis)
PeriodicScannableSpotterListener.gotMeasurement(Spotter, Measurement)
callbacks to listeners.
setPeriodicScanInterval in interface PeriodicScannablepublic long getPeriodicScanInterval()
getPeriodicScanInterval in interface PeriodicScannable
public void open()
throws SpotterException
Spotter
open in interface SpotterSpotterException - if the necessary hardware or software for this spotter
is not presentpublic void close()
Spotter
close in interface Spotterpublic void startScanning(EventSystem evs)
Spotter
startScanning in interface SpotterstartScanning in class SyncSpotterprotected long nextScanInterval()
nextScanInterval in class SyncSpotter
protected Measurement getMeasurementImpl()
throws SpotterException
SyncSpotter
getMeasurementImpl in class SyncSpotterSpotterException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||