public class Command
extends java.lang.Object
| Constructor and Description |
|---|
Command(CODACommand codaCommand)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
description()
Get the description of the Run Control command.
|
void |
fromDebugGui(boolean fromDebugGui)
Set whether this command is from the debug gui or run control.
|
org.jlab.coda.cMsg.cMsgPayloadItem |
getArg(java.lang.String tag)
Get the object (a cMsgPayloadItem object) associated
with this tag (unique mapping).
|
CODACommand |
getCodaCommand()
Get the static command object representing the Run Control command.
|
org.jlab.coda.cMsg.cMsgMessage |
getMessage()
Get the cMsg message containing the Run Control command.
|
boolean |
hasArgs()
Does this command have any associated objects (args)?
|
boolean |
isFromDebugGui()
Is this command from the debug gui or run control?
|
java.lang.String |
name()
Get the name of the Run Control command.
|
void |
setArg(java.lang.String tag,
org.jlab.coda.cMsg.cMsgPayloadItem value)
Keep a set of tags, each associated with a cMsgPayloadItem
(although Object is used instead to avoid strict dependence
on cMsg).
|
void |
setMessage(org.jlab.coda.cMsg.cMsgMessage msg)
Set the cMsg message containing the Run Control command.
|
CODAStateIF |
success()
If this object is a transition command, this method
returns the state the Emu enters upon its success.
|
public Command(CODACommand codaCommand)
codaCommand - CODACommand object to be wrapped by this class.public CODACommand getCodaCommand()
public java.lang.String name()
public java.lang.String description()
public org.jlab.coda.cMsg.cMsgMessage getMessage()
public void setMessage(org.jlab.coda.cMsg.cMsgMessage msg)
msg - cMsg message containing the Run Control command.public boolean isFromDebugGui()
true if command from debug gui, else falsepublic void fromDebugGui(boolean fromDebugGui)
fromDebugGui - true if command from debug gui, else falsepublic org.jlab.coda.cMsg.cMsgPayloadItem getArg(java.lang.String tag)
tag - namepublic void setArg(java.lang.String tag,
org.jlab.coda.cMsg.cMsgPayloadItem value)
tag - of type String (name of cMsgPayloadItem)value - of type Object (actually cMsgPayloadItem)public boolean hasArgs()
true if this command has any associated cMsgPayloadItems,
else false.public CODAStateIF success()