gps.mvc
Class GpsLinkHandler

java.lang.Object
  extended by gps.mvc.GpsLinkHandler

public final class GpsLinkHandler
extends java.lang.Object

Refactoring ongoing. Stuff to do:
- message type should be generic and a factory can be used to find the right handler.

Author:
Mario De Weerd

Constructor Summary
GpsLinkHandler()
           
 
Method Summary
 void doSendCmd(GpsLinkExecCommand cmd)
          Immediate sending of cmd regardless of type.
 GPSrxtx getGPSRxtx()
           
 int getOutStandingCmdsCount()
           
 boolean isConnected()
           
 boolean isGpsDecode()
           
 boolean removeFromSentCmds(CmdVisitor visitor)
           
 void sendCmd(GpsLinkExecCommand cmd)
           
 void setGpsDecode(boolean isGpsDecode)
           
 void setGPSRxtx(GPSrxtx gpsRxTx)
           
 void setIgnoreNMEA(boolean ignoreNMEA)
           
 void setLogOrEraseOngoing(boolean onGoing)
           
 void updateIgnoreNMEA()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GpsLinkHandler

public GpsLinkHandler()
Method Detail

setGPSRxtx

public final void setGPSRxtx(GPSrxtx gpsRxTx)

getGPSRxtx

public final GPSrxtx getGPSRxtx()

isConnected

public final boolean isConnected()

sendCmd

public final void sendCmd(GpsLinkExecCommand cmd)

isGpsDecode

public final boolean isGpsDecode()
Returns:
Returns the gpsDecode.

setGpsDecode

public final void setGpsDecode(boolean isGpsDecode)

setLogOrEraseOngoing

public final void setLogOrEraseOngoing(boolean onGoing)

updateIgnoreNMEA

public final void updateIgnoreNMEA()

setIgnoreNMEA

public final void setIgnoreNMEA(boolean ignoreNMEA)

doSendCmd

public void doSendCmd(GpsLinkExecCommand cmd)
Immediate sending of cmd regardless of type. This allows to change mode on the fly. The code here will reflect that. Some commands can have execution method with context. TODO: Implement that.

Parameters:
cmd -

removeFromSentCmds

public final boolean removeFromSentCmds(CmdVisitor visitor)

getOutStandingCmdsCount

public final int getOutStandingCmdsCount()