ocss.nmea.api
Class NMEAParser

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--ocss.nmea.api.NMEAParser
All Implemented Interfaces:
java.lang.Runnable

public final class NMEAParser
extends java.lang.Thread

A Controller. This class is final, and can be used as it is.

See Also:
NMEAReader, NMEAClient, NMEAEvent, NMEAException

Field Summary
protected  java.lang.String nmeaPrefix
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NMEAParser(java.util.ArrayList al)
           
 
Method Summary
 void addNMEAListener(NMEAListener l)
           
 java.lang.String detectSentence()
           
protected  void fireDataDetected(NMEAEvent e)
           
 java.lang.String getNmeaPrefix()
           
 java.lang.String[] getNmeaSentence()
           
 java.lang.String getNmeaStream()
           
 void loop()
           
 void removeNMEAListener(NMEAListener l)
           
 void run()
           
 void setNmeaPrefix(java.lang.String s)
           
 void setNmeaSentence(java.lang.String[] sa)
           
 void setNmeaStream(java.lang.String s)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

nmeaPrefix

protected java.lang.String nmeaPrefix
Constructor Detail

NMEAParser

public NMEAParser(java.util.ArrayList al)
Method Detail

getNmeaPrefix

public java.lang.String getNmeaPrefix()

setNmeaPrefix

public void setNmeaPrefix(java.lang.String s)

getNmeaSentence

public java.lang.String[] getNmeaSentence()

setNmeaSentence

public void setNmeaSentence(java.lang.String[] sa)

getNmeaStream

public java.lang.String getNmeaStream()

setNmeaStream

public void setNmeaStream(java.lang.String s)

detectSentence

public java.lang.String detectSentence()
                                throws NMEAException
NMEAException

fireDataDetected

protected void fireDataDetected(NMEAEvent e)

addNMEAListener

public void addNMEAListener(NMEAListener l)

removeNMEAListener

public void removeNMEAListener(NMEAListener l)

loop

public void loop()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread