public abstract class ProtocolOne extends Command
Modifier | Constructor and Description |
---|---|
protected |
ProtocolOne(CommandType whatami) |
protected |
ProtocolOne(CommandType whatami,
long period) |
protected |
ProtocolOne(CommandType whatami,
long period,
long delay) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addChildren()
P1 command should specify all nested ProtocolZero commands here.
|
boolean |
hasTerminated()
External running check.
|
void |
pause()
Pauses a periodic command's execution.
|
void |
resume() |
void |
setExecutor(Entity c) |
void |
terminate() |
addTerminationListener, compareTo, getDelay, getExitCode, getFrequency, getID, getOp, getPeriod, getRuntime, run, toDataString, toString, update, verifyClient, waitForTerminate, whatAmI
protected ProtocolOne(CommandType whatami)
protected ProtocolOne(CommandType whatami, long period)
protected ProtocolOne(CommandType whatami, long period, long delay)
public void terminate()
public void setExecutor(Entity c)
setExecutor
in class Command
public boolean hasTerminated()
Command
hasTerminated
in class Command
protected abstract void addChildren()
public void pause()
Command