gps.mvc.commands.wp
Class WPIntCommand
java.lang.Object
gps.mvc.commands.wp.WPIntCommand
- All Implemented Interfaces:
- GpsLinkExecCommand
public class WPIntCommand
- extends java.lang.Object
- implements GpsLinkExecCommand
- Author:
- Mario De Weerd
Method Summary |
void |
execute(GPSrxtx context)
Do what needs to be done for the specific command. |
int |
getArg()
|
int |
getCmd()
|
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 |
WPIntCommand
public WPIntCommand(WPModel m,
int cmd,
int type,
int bufSize)
WPIntCommand
public WPIntCommand(WPModel m,
int cmd,
int type,
int arg,
int bufSize)
getCmd
public final int getCmd()
getArg
public final int getArg()
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.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
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.