public abstract class ProtocolZero extends Command
Modifier and Type | Field and Description |
---|---|
protected boolean |
formatted |
protected java.util.Scanner |
paramscan |
protected priority_t |
priority |
Modifier | Constructor and Description |
---|---|
protected |
ProtocolZero(boolean isread,
CommandType whatami) |
protected |
ProtocolZero(boolean isread,
CommandType whatami,
long period) |
protected |
ProtocolZero(boolean isread,
CommandType whatami,
long period,
long delay) |
protected |
ProtocolZero(boolean isread,
CommandType whatami,
long period,
long delay,
priority_t priority) |
protected |
ProtocolZero(boolean isread,
CommandType whatami,
long period,
priority_t priority) |
protected |
ProtocolZero(boolean isread,
CommandType whatami,
priority_t priority) |
Modifier and Type | Method and Description |
---|---|
priority_t |
getPriority()
Allows access to command queue priority.
|
boolean |
hasTerminated()
External running check.
|
void |
pause()
Pauses a periodic command's execution.
|
void |
resume() |
void |
run() |
abstract void |
setData(java.lang.String params)
Sets command response data.
|
void |
setExecutor(Entity c) |
protected abstract void |
setOp() |
void |
terminate(java.lang.String exitstring) |
void |
update() |
addTerminationListener, compareTo, getDelay, getExitCode, getFrequency, getID, getOp, getPeriod, getRuntime, toDataString, toString, verifyClient, waitForTerminate, whatAmI
protected final priority_t priority
protected boolean formatted
protected java.util.Scanner paramscan
protected ProtocolZero(boolean isread, CommandType whatami, priority_t priority)
protected ProtocolZero(boolean isread, CommandType whatami)
protected ProtocolZero(boolean isread, CommandType whatami, long period, priority_t priority)
protected ProtocolZero(boolean isread, CommandType whatami, long period)
protected ProtocolZero(boolean isread, CommandType whatami, long period, long delay, priority_t priority)
protected ProtocolZero(boolean isread, CommandType whatami, long period, long delay)
public void run()
public priority_t getPriority()
protected abstract void setOp()
public void terminate(java.lang.String exitstring)
public boolean hasTerminated()
Command
hasTerminated
in class Command
public abstract void setData(java.lang.String params)
params
- Data string. For all "data" messages it is identified by the form:
public void setExecutor(Entity c)
setExecutor
in class Command
public void pause()
Command