gps.connection
Interface DecoderStateInterface

All Known Implementing Classes:
MtkBinDecoderState, NMEADecoderState, SirfDecoderState, TextOrNMEADecoderState, WPDecoderState, WPDeviceDecoderState

public interface DecoderStateInterface

To be used in the receive context to represent a receiver state compatible with the state of the connected device.
Used to implement the State Design Pattern.

Author:
Mario

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.
 

Method Detail

getResponse

java.lang.Object getResponse(GPSrxtx context)
Returns valid data from the serial link.


exitState

void exitState(GPSrxtx context)
Indicates this state is stopped. Allows end of state operations.


enterState

void enterState(GPSrxtx context)
Indicates this state is entered. Allows initialization operations.