|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GpsLinkExecCommand
A GpsLinkExecCommand
can be put on the command queue where the
execute(GPSrxtx)
method will be called with the
GPSrxtx
context. This allows for improved flexibility in
extending the link interface protocol and managing link state changes.
Some concrete Commands can probably be implemented as Singletons in some
cases but that may not be really needed for performance. If so, a
getInstance method should be provided in the concrete class.
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). |
Method Detail |
---|
void execute(GPSrxtx context)
context
- A reference to the link on which this command operates.boolean mustBeFirstInQueue()
boolean hasAck()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |