com.buglabs.bug.module.gps.pub
Interface INMEASentenceProvider

All Known Implementing Classes:
NMEASentenceProvider

public interface INMEASentenceProvider

Provides access methods to NMEA data from GPS devices. If a GPS device is attached, a INMEASentenceProvider service will be accessible to clients via the OSGi service registry. This service is appropriate for clients wishing to poll for NEMA sentences at specific times.


Method Summary
 int getIndex()
           
 RMC getLastRMC()
           
 RMC getRMC()
          Deprecated.  
 

Method Detail

getRMC

RMC getRMC()
Deprecated. 

Provides the latest RMC sentence read from the GPS Device, or null if no information is available.

Returns:
RMC sentence object

getLastRMC

RMC getLastRMC()
Returns:
Last parsed RMC NMEA sentence, or null if no sentence with location information has been received.

getIndex

int getIndex()
Returns:
the index of the RMC value currently available. Useful for determining if new RMC is available.