com.buglabs.nmea2
Class PTTK
java.lang.Object
com.buglabs.nmea2.AbstractNMEASentence
com.buglabs.nmea2.PTTK
public final class PTTK
- extends AbstractNMEASentence
A class for PTTK type NMEA sentences.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PTTK
protected PTTK(java.lang.String sentence)
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