net.sf.bt747.test
Class WPDeviceStrCommand

java.lang.Object
  extended by net.sf.bt747.test.WPDeviceStrCommand
All Implemented Interfaces:
GpsLinkExecCommand

public class WPDeviceStrCommand
extends java.lang.Object
implements GpsLinkExecCommand

Author:
Mario

Constructor Summary
WPDeviceStrCommand(java.lang.String cmd)
           
WPDeviceStrCommand(java.lang.String cmd, int bufSize)
           
 
Method Summary
 void execute(GPSrxtx context)
          Do what needs to be done for the specific command.
 boolean hasAck()
          If true, requires acknowledge.
 boolean mustBeFirstInQueue()
          Indicates if the transmit queue must be entirely purged before this command is sent (or not).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WPDeviceStrCommand

public WPDeviceStrCommand(java.lang.String cmd)

WPDeviceStrCommand

public WPDeviceStrCommand(java.lang.String cmd,
                          int bufSize)
Method Detail

execute

public final void execute(GPSrxtx context)
Description copied from interface: GpsLinkExecCommand
Do what needs to be done for the specific command.

Specified by:
execute in interface GpsLinkExecCommand
Parameters:
context - A reference to the link on which this command operates.

mustBeFirstInQueue

public boolean mustBeFirstInQueue()
Description copied from interface: GpsLinkExecCommand
Indicates if the transmit queue must be entirely purged before this command is sent (or not).

Specified by:
mustBeFirstInQueue in interface GpsLinkExecCommand
Returns:
true if queue must be purged.

hasAck

public boolean hasAck()
Description copied from interface: GpsLinkExecCommand
If true, requires acknowledge.

Specified by:
hasAck in interface GpsLinkExecCommand
Returns:
true if the command requires an acknowledgde.