com.partnersoft.gps
Class AbstractGPSDevice

java.lang.Object
  extended by com.partnersoft.gps.AbstractGPSDevice
All Implemented Interfaces:
GPSDevice
Direct Known Subclasses:
NmeaGps, SimulatedGpsDevice

public abstract class AbstractGPSDevice
extends java.lang.Object
implements GPSDevice

Abstract base class for GPSDevices. Implements the listener methods.

Call caster.dispatchEvent(null) to udpate the GPS status.

Author:
Russell Cagle Copyright 2006 Partner Software, Inc.

Field Summary
protected  EventMulticaster caster
          Implements the caster.
 
Constructor Summary
AbstractGPSDevice()
           
 
Method Summary
 void addGPSListener(GPSListener listener)
           
 void removeAllListeners()
          Drops all listeners.
 void removeGPSListener(GPSListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.partnersoft.gps.GPSDevice
close, getConfigutron, getDeviceLabel, getDeviceType, getGpsState, getPostprocessing, isOpen, open, surveyLocation
 

Field Detail

caster

protected transient EventMulticaster caster
Implements the caster.

Constructor Detail

AbstractGPSDevice

public AbstractGPSDevice()
Method Detail

addGPSListener

public void addGPSListener(GPSListener listener)
Specified by:
addGPSListener in interface GPSDevice

removeGPSListener

public void removeGPSListener(GPSListener listener)
Specified by:
removeGPSListener in interface GPSDevice

removeAllListeners

public void removeAllListeners()
Description copied from interface: GPSDevice
Drops all listeners. Used by headless map app shutdown.

Specified by:
removeAllListeners in interface GPSDevice