|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.buglabs.bug.module.gps.NMEASentenceProvider
public class NMEASentenceProvider
This class is a thread that listens for NMEA sentences on the InputStream passed in the constructor, and will present the last parsed sentence to clients.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static java.lang.String |
SLEEP_INTERVAL_PROPERTY_KEY
System property to define sleep between GPS reads. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
NMEASentenceProvider(java.io.InputStream nmeaStream,
BundleContext context)
|
|
| Method Summary | |
|---|---|
int |
getIndex()
|
RMC |
getLastRMC()
|
RMC |
getRMC()
Provides the latest RMC sentence read from the GPS Device, or null if no information is available. |
void |
run()
|
void |
serviceChanged(ServiceEvent event)
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SLEEP_INTERVAL_PROPERTY_KEY
| Constructor Detail |
|---|
public NMEASentenceProvider(java.io.InputStream nmeaStream,
BundleContext context)
| Method Detail |
|---|
public RMC getRMC()
INMEASentenceProvider
getRMC in interface INMEASentenceProviderpublic RMC getLastRMC()
getLastRMC in interface INMEASentenceProviderpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic int getIndex()
getIndex in interface INMEASentenceProviderpublic void serviceChanged(ServiceEvent event)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||