gps.mvc
Class GpsLinkHandler
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GpsLinkHandler
public GpsLinkHandler()
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()