net.sf.bt747.test
Class WPDeviceDecoderState

java.lang.Object
  extended by net.sf.bt747.test.WPDeviceDecoderState
All Implemented Interfaces:
DecoderStateInterface

public class WPDeviceDecoderState
extends java.lang.Object
implements DecoderStateInterface

This captures the commands coming from BT747. Should be optimised to be limited to just that.

Author:
Mario

Constructor Summary
WPDeviceDecoderState()
           
 
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 setNewBufferSize(int size)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WPDeviceDecoderState

public WPDeviceDecoderState()
Method Detail

setNewBufferSize

public static final void setNewBufferSize(int size)

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 final 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

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