|
||||||||||
| 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.NMEAGPSSpotter
org.placelab.spotter.SerialGPSSpotter
The SerialGPSSpotter uses rxtx to communicate with a serial interface gps unit.
The System property placelab.gps_device is used to specify the serial port that the gps device is connected to. placelab.gps_speed may be used to set a non-standard baud rate for communicating with the gps device, but be aware that the NMEA standard specifies 4800 baud and that most gps devices won't function properly at other speeds.
| Constructor Summary | |
SerialGPSSpotter()
|
|
| Method Summary | |
void |
close()
Unloads resources used by the spotter. |
static NMEAGPSSpotter |
newSpotter()
|
void |
open()
Load resources used by the spotter. |
void |
sendASentence(java.lang.String sentence)
Send a sentence, complete with checksum, to the gps device. |
protected void |
startScanningImpl()
Begin collecting and processing sentences from the gps device, handing them off to the NMEAGPSSpotter.lineAvailable(String) method
as they are read in. |
protected void |
stopScanningImpl()
Stop collecting sentences from the gps device |
| 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 |
public SerialGPSSpotter()
| Method Detail |
public static NMEAGPSSpotter newSpotter()
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
SpotterExceptionprotected void startScanningImpl()
NMEAGPSSpotterNMEAGPSSpotter.lineAvailable(String) method
as they are read in.
startScanningImpl in class NMEAGPSSpotterprotected void stopScanningImpl()
NMEAGPSSpotter
stopScanningImpl in class NMEAGPSSpotterpublic void sendASentence(java.lang.String sentence)
NMEAGPSSpotter
sendASentence in class NMEAGPSSpotter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||