org.placelab.spotter
Class SerialJ9GPSSpotter

java.lang.Object
  extended byorg.placelab.spotter.AbstractSpotter
      extended byorg.placelab.spotter.NMEAGPSSpotter
          extended byorg.placelab.spotter.StreamGPSSpotter
              extended byorg.placelab.spotter.SerialJ9GPSSpotter
All Implemented Interfaces:
Spotter

public class SerialJ9GPSSpotter
extends StreamGPSSpotter

SerialJ9GPSSpotter is the PocketPC implementation of a serial spotter. Instead of using RXTX, we use IBM's implementation. We subclass StreamGPSSpotter and it handles the IO, all we have to do is open the serial port and get the streams.


Constructor Summary
SerialJ9GPSSpotter()
           
 
Method Summary
 void close()
          Unloads resources used by the spotter.
 void open()
          Load resources used by the spotter.
 
Methods inherited from class org.placelab.spotter.StreamGPSSpotter
open, 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

SerialJ9GPSSpotter

public SerialJ9GPSSpotter()
Method Detail

open

public void open()
          throws SpotterException
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.

Throws:
SpotterException - if the necessary hardware or software for this spotter is not present

close

public void close()
           throws SpotterException
Description copied from interface: Spotter
Unloads resources used by the spotter. Multiple calls to close are ok.

Specified by:
close in interface Spotter
Overrides:
close in class StreamGPSSpotter
Throws:
SpotterException