|
||||||||||
| 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.AsyncSpotter
org.placelab.spotter.BluetoothSpotter
Spotter for Bluetooth on systems with JSR-82 support.
| Constructor Summary | |
BluetoothSpotter()
|
|
BluetoothSpotter(long intervalMillis,
boolean filterPhones)
|
|
| Method Summary | |
protected void |
cancelScan()
Stops the scan that was started in startOneScan(EventSystem) |
void |
close()
Unloads resources used by the spotter. |
protected Measurement |
getMeasurementImpl()
Collect Measurements with a blocking implementation and return them. |
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. |
protected void |
startOneScan(EventSystem evs)
This performs a single scan of the environment that should call AbstractSpotter.notifyGotMeasurement(EventSystem, Measurement) upon
collecting the Measurement. |
| Methods inherited from class org.placelab.spotter.AsyncSpotter |
errorInBackgroundThreadAndThreadDeath, getMeasurement, scanDone, scanOnce, scanOnce, scanUsingBackgroundThread, scanUsingEventSystem, startScanning, startScanning, stopScanning |
| Methods inherited from class org.placelab.spotter.AbstractSpotter |
addListener, notifyEndOfScan, notifyEndOfScan, notifyGotException, notifyGotException, notifyGotMeasurement, notifyGotMeasurement, removeListener, waitForThread |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BluetoothSpotter()
public BluetoothSpotter(long intervalMillis,
boolean filterPhones)
| Method Detail |
public 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 Spotterprotected long nextScanInterval()
nextScanInterval in class AsyncSpotterprotected void startOneScan(EventSystem evs)
AsyncSpotterAbstractSpotter.notifyGotMeasurement(EventSystem, Measurement) upon
collecting the Measurement.
startOneScan in class AsyncSpotterevs - the EventSystem to pass through to notifyGotMeasurementprotected void cancelScan()
AsyncSpotterAsyncSpotter.startOneScan(EventSystem)
cancelScan in class AsyncSpotter
protected Measurement getMeasurementImpl()
throws SpotterException
AsyncSpotter
getMeasurementImpl in class AsyncSpotterSpotterException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||