com.partnersoft.io.gps
Class GPSDaemon

java.lang.Object
  extended by com.partnersoft.io.gps.GPSDaemon
All Implemented Interfaces:
GPSConstants

public class GPSDaemon
extends java.lang.Object
implements GPSConstants

Manages the low-level details of the GPS connection. Allows an application to simply subscribe for GPSEvents or just ask for the last status or reading.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Field Summary
 
Fields inherited from interface com.partnersoft.io.gps.GPSConstants
BAD_DATA, EVENT_READING, EVENT_STATUS, GPS_ON, NO_FIX, NO_GPS, STATUS_NAMES
 
Constructor Summary
GPSDaemon()
           
 
Method Summary
 void addGPSListener(GPSListener nosey)
           
 void changeGPSSettings(GPSSettings newSettings)
          This is more than just a setter function; it configures and restarts the GPS input daemon.
 GPSSettings getGPSSettings()
           
 GPSReading getLastReading()
           
 int getLastStatusCode()
           
 void removeGPSListener(GPSListener nosey)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPSDaemon

public GPSDaemon()
Method Detail

changeGPSSettings

public void changeGPSSettings(GPSSettings newSettings)
This is more than just a setter function; it configures and restarts the GPS input daemon.


getGPSSettings

public GPSSettings getGPSSettings()

getLastStatusCode

public int getLastStatusCode()

getLastReading

public GPSReading getLastReading()

start

public void start()

stop

public void stop()

addGPSListener

public void addGPSListener(GPSListener nosey)

removeGPSListener

public void removeGPSListener(GPSListener nosey)