org.placelab.spotter
Class InquiryBluetoothGPSSpotter

java.lang.Object
  extended byorg.placelab.spotter.AbstractSpotter
      extended byorg.placelab.spotter.NMEAGPSSpotter
          extended byorg.placelab.spotter.BluetoothGPSSpotter
              extended byorg.placelab.spotter.InquiryBluetoothGPSSpotter
All Implemented Interfaces:
Spotter

public class InquiryBluetoothGPSSpotter
extends BluetoothGPSSpotter

An NMEAGPSSpotter for Bluetooth equipped devices to talk to Bluetooth gps units.


Nested Class Summary
 
Nested classes inherited from class org.placelab.spotter.BluetoothGPSSpotter
BluetoothGPSSpotter.ScanThread
 
Field Summary
 
Fields inherited from class org.placelab.spotter.BluetoothGPSSpotter
conn, connectedDeviceName, is, lingeringData, scanThread, serviceUrl, shutdown, state
 
Constructor Summary
InquiryBluetoothGPSSpotter()
           
InquiryBluetoothGPSSpotter(long sleepBetweenSearches)
           
 
Method Summary
protected  void findGPS()
          Locates a bluetooth gps device and hooks up serviceUrl, conn, and is.
 void open()
          Load resources used by the spotter.
protected  void scanningThreadRun()
           
 
Methods inherited from class org.placelab.spotter.BluetoothGPSSpotter
cleanup, close, getState, readGPSData, sendASentence, startScanningImpl, stopScanningImpl
 
Methods inherited from class org.placelab.spotter.NMEAGPSSpotter
getMeasurement, lineAvailable, measurementAvailable, 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

InquiryBluetoothGPSSpotter

public InquiryBluetoothGPSSpotter()

InquiryBluetoothGPSSpotter

public InquiryBluetoothGPSSpotter(long sleepBetweenSearches)
Method Detail

open

public void open()
Description copied from interface: Spotter
Load resources used by the spotter. Applications should be able to invoke this methods multiple times in sequence and have the "right" things happen. All Spotters should be opened before being used.

Specified by:
open in interface Spotter
Overrides:
open in class BluetoothGPSSpotter

findGPS

protected void findGPS()
Description copied from class: BluetoothGPSSpotter
Locates a bluetooth gps device and hooks up serviceUrl, conn, and is. If no bluetooth gps device can be found, leave those 3 alone. Feel free to block in here if you like.

Specified by:
findGPS in class BluetoothGPSSpotter

scanningThreadRun

protected void scanningThreadRun()
Overrides:
scanningThreadRun in class BluetoothGPSSpotter