gps.mvc.commands.wp
Class WPStrCommand
java.lang.Object
gps.mvc.commands.wp.WPStrCommand
- All Implemented Interfaces:
- GpsLinkExecCommand
- Direct Known Subclasses:
- WPEnterModeCommand, WPExitModeCommand
public class WPStrCommand
- extends java.lang.Object
- implements GpsLinkExecCommand
- Author:
- Mario
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). |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WPStrCommand
public WPStrCommand(java.lang.String cmd)
WPStrCommand
public WPStrCommand(java.lang.String cmd,
int bufSize)
execute
public 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.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
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.