com.buglabs.nmea2
Class PTTK

java.lang.Object
  extended by com.buglabs.nmea2.AbstractNMEASentence
      extended by com.buglabs.nmea2.PTTK

public final class PTTK
extends AbstractNMEASentence

A class for PTTK type NMEA sentences.


Field Summary
 
Fields inherited from class com.buglabs.nmea2.AbstractNMEASentence
checksum
 
Constructor Summary
protected PTTK(java.lang.String sentence)
           
 
Method Summary
 int getErrorCode()
           
 java.lang.String getMessage()
           
protected  void parseField(int index, java.lang.String field, java.lang.String[] fields)
           
protected  void validate()
          Invalid sentences should throw NMEAParserException
 
Methods inherited from class com.buglabs.nmea2.AbstractNMEASentence
getChecksum, getName, initialize, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PTTK

protected PTTK(java.lang.String sentence)
Method Detail

getMessage

public java.lang.String getMessage()
Returns:
Message

getErrorCode

public int getErrorCode()
Returns:
Error Code

parseField

protected void parseField(int index,
                          java.lang.String field,
                          java.lang.String[] fields)
Specified by:
parseField in class AbstractNMEASentence

validate

protected void validate()
Description copied from class: AbstractNMEASentence
Invalid sentences should throw NMEAParserException

Specified by:
validate in class AbstractNMEASentence