net.sf.bt747.test.models.mtk.commands
Class Acknowledge

java.lang.Object
  extended by net.sf.bt747.test.models.mtk.commands.Acknowledge
All Implemented Interfaces:
GpsLinkExecCommand

public class Acknowledge
extends java.lang.Object
implements GpsLinkExecCommand

Represents an acknowledge package to send.

Author:
Mario

Constructor Summary
Acknowledge(java.lang.String[] nmea)
           
Acknowledge(java.lang.String[] nmea, int status)
           
 
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

Acknowledge

public Acknowledge(java.lang.String[] nmea,
                   int status)

Acknowledge

public Acknowledge(java.lang.String[] nmea)
Method Detail

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.

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.