com.openlapi
Class LocationProviderNMEA

java.lang.Object
  extended by com.openlapi.LocationProvider
      extended by com.openlapi.LocationProviderSimplified
          extended by com.openlapi.LocationProviderNMEA

public class LocationProviderNMEA
extends LocationProviderSimplified

Implementation of LocationProvider that uses an NMEA log file as input.

See Also:
http://en.wikipedia.org/wiki/NMEA_0183

Field Summary
 
Fields inherited from class com.openlapi.LocationProvider
AVAILABLE, OUT_OF_SERVICE, TEMPORARILY_UNAVAILABLE
 
Method Summary
protected  void startBackend()
          Start a new backend in a background thread.
protected  void stopBackend()
          Stop the backend that is currently running.
 
Methods inherited from class com.openlapi.LocationProviderSimplified
getLocation, getState, reset, setLocationListener, updateLocation, updateState
 
Methods inherited from class com.openlapi.LocationProvider
addProximityListener, alertProximityListeners, getInstance, getLastKnownLocation, removeProximityListener, setLastKnownLocation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

startBackend

protected void startBackend()
                     throws LocationException
Description copied from class: LocationProviderSimplified
Start a new backend in a background thread. Ignore if a backend is currently running. Always called from a block that is synchronized on this.

Specified by:
startBackend in class LocationProviderSimplified
Throws:
LocationException - if the backend could not be started

stopBackend

protected void stopBackend()
Description copied from class: LocationProviderSimplified
Stop the backend that is currently running. Ignore if no backend is currently running. Always called from a block that is synchronized on this.

Specified by:
stopBackend in class LocationProviderSimplified