|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.internal.gps.GPSWatcher
com.esri.core.gps.SerialPortGPSWatcher
public final class SerialPortGPSWatcher

A IGPSWatcher with a serial port source such as GPS receivers, using NMEA standard.
SerialPortGPSWatcher(GPSEventListener) to automatically use one of the connected
GPS receivers. The connected GPS device information can be obtained using getPortInfo().
SerialPortGPSWatcher(SerialPortInfo, GPSEventListener) to use a specific
GPS receiver.
GPSWatcher.start() and GPSWatcher.stop() to start and stop reading from the receiver,
respectively.
SerialPortGPSWatcher(GPSEventListener),
SerialPortGPSWatcher(SerialPortInfo, GPSEventListener),
GPSWatcher.start(),
GPSWatcher.stop(),
findGPSPorts(),
SerialPortInfo,
IGPSWatcher| Field Summary |
|---|
| Fields inherited from class com.esri.core.internal.gps.GPSWatcher |
|---|
gpsEventListeners |
| Constructor Summary | |
|---|---|
SerialPortGPSWatcher()
Creates a SerialPortGPSWatcher that connects automatically to a GPS device. |
|
SerialPortGPSWatcher(GPSEventListener gpsEventListener)
Creates a SerialPortGPSWatcher that connects automatically to a GPS device. |
|
SerialPortGPSWatcher(SerialPortInfo portInfo)
Creates a SerialPortGPSWatcher that connects to the specified GPS device. |
|
SerialPortGPSWatcher(SerialPortInfo portInfo,
GPSEventListener gpsEventListener)
Creates a SerialPortGPSWatcher that connects to the specified GPS device. |
|
| Method Summary | |
|---|---|
protected void |
connect()
Establishes a connection by creating a native driver. |
static List<SerialPortInfo> |
findGPSPorts()
Scans the standard serial ports (COM* on Windows, /dev/ttyS* on Linux) to search for GPS devices. |
SerialPortInfo |
getPortInfo()
|
| Methods inherited from class com.esri.core.internal.gps.GPSWatcher |
|---|
addListener, createCOMGPSDriver, createCOMGPSDriver, createFileGPSDriver, getStatus, getTimeout, getTimeoutInterval, scanGpsPorts, setStatus, setTimeout, setTimeoutInterval, start, startGps, stop, stopGps, updateLocation, updateSentence, updateStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerialPortGPSWatcher()
SerialPortGPSWatcher that connects automatically to a GPS device.getPortInfo().
public SerialPortGPSWatcher(GPSEventListener gpsEventListener)
SerialPortGPSWatcher that connects automatically to a GPS device.GPSEventListener.
The connected GPS device information can be obtained using getPortInfo().
gpsEventListener - listener to which the GPS messages will be directed.public SerialPortGPSWatcher(SerialPortInfo portInfo)
SerialPortGPSWatcher that connects to the specified GPS device.
portInfo - information about the GPS device to connect to.
public SerialPortGPSWatcher(SerialPortInfo portInfo,
GPSEventListener gpsEventListener)
SerialPortGPSWatcher that connects to the specified GPS device.
portInfo - information about the GPS device to connect to.gpsEventListener - listener to which the GPS messages will be directed. *| Method Detail |
|---|
public static List<SerialPortInfo> findGPSPorts()
public SerialPortInfo getPortInfo()
protected void connect()
connect in class com.esri.core.internal.gps.GPSWatcher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||