gps.connection
Class NMEADecoderState

java.lang.Object
  extended by gps.connection.NMEADecoderState
All Implemented Interfaces:
DecoderStateInterface

public final class NMEADecoderState
extends java.lang.Object
implements DecoderStateInterface

This State will interpret the input stream as NMEA data.

Author:
Mario De Weerd

Constructor Summary
NMEADecoderState()
           
 
Method Summary
 void enterState(GPSrxtx context)
          Indicates this state is entered.
 void exitState(GPSrxtx context)
          Indicates this state is stopped.
 java.lang.Object getResponse(GPSrxtx context)
          Returns valid data from the serial link.
static void setIgnoreNMEA(boolean ignoreNMEA)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NMEADecoderState

public NMEADecoderState()
Method Detail

setIgnoreNMEA

public static final void setIgnoreNMEA(boolean ignoreNMEA)
Parameters:
ignoreNMEA - The ignoreNMEA to set.

getResponse

public final java.lang.Object getResponse(GPSrxtx context)
Description copied from interface: DecoderStateInterface
Returns valid data from the serial link.

Specified by:
getResponse in interface DecoderStateInterface

enterState

public final void enterState(GPSrxtx context)
Description copied from interface: DecoderStateInterface
Indicates this state is entered. Allows initialization operations.

Specified by:
enterState in interface DecoderStateInterface

exitState

public void exitState(GPSrxtx context)
Description copied from interface: DecoderStateInterface
Indicates this state is stopped. Allows end of state operations.

Specified by:
exitState in interface DecoderStateInterface