|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.communication.ast.ASTNode
ist.palcom.communication.ast.ControlItem
ist.palcom.communication.ast.Command
public class Command
| Field Summary | |
|---|---|
static String |
DIRECTION_IN
|
static String |
DIRECTION_OUT
|
| Fields inherited from class ist.palcom.communication.ast.ASTNode |
|---|
CHANGE, children, generatedWithCacheCycle, generatedWithCircularEnabled, IN_CIRCLE, LAST_CYCLE, numChildren, parent |
| Constructor Summary | |
|---|---|
Command()
|
|
Command(CommandInfo p0,
List p1)
|
|
Command(String id,
String direction)
|
|
| Method Summary | |
|---|---|
void |
addParam(Param node)
|
void |
addParamAndInfo(Param param)
|
Object |
clone()
|
ASTNode |
copy()
|
ControlItem |
findItem(String id)
Returns the ControlItem within the sub-tree rooted at this ControlItem that has the sought ID, or null if none exists. |
Command |
findMatchingCommand(Command command)
Implements this method for Commands (overrides the one in ControlItem). |
void |
flushCache()
|
ASTNode |
fullCopy()
|
Command |
getCopy()
Returns a copy of this command, with the same ID and the same parameters and parameter values. |
String |
getDirection()
|
String |
getHelp()
|
CommandInfo |
getInfo()
|
Info |
getInfoAsInfo()
Workaround for static typing. |
CommandInfo |
getInfoNoTransform()
|
int |
getNumParam()
|
Param |
getParam(int i)
|
Param |
getParam(String id)
Returns a param with ID id, or null if none is found. |
List |
getParamList()
|
List |
getParamListNoTransform()
|
void |
invoke()
Invoke this command. |
boolean |
isAboutTheSameEntityAs(Info info)
|
protected boolean |
matches(Command command)
Returns true if this Command matches command. |
protected int |
numChildren()
|
void |
setDataRefsAndAddDataToList(ArrayList dataList)
|
void |
setDataAccordingToDataRefs(byte[][] data)
|
void |
setHelp(String help)
|
void |
setInfo(CommandInfo node)
|
void |
setParam(Param node,
int i)
|
void |
setParamList(List list)
|
void |
update(Command command)
Update this Command with the parameter values in command. |
| Methods inherited from class ist.palcom.communication.ast.ControlItem |
|---|
getID, getMessage, getServiceProxy, getTagName, initializeFromElement, writeStartTagAndAttributes, writeXMLElement |
| Methods inherited from class ist.palcom.communication.ast.ASTNode |
|---|
addChild, getChild, getChildNoTransform, getIndexOfChild, getNumChild, getParent, insertChild, remove, removeChild, setChild, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, println, toString |
| Field Detail |
|---|
public static final String DIRECTION_IN
public static final String DIRECTION_OUT
| Constructor Detail |
|---|
public Command()
public Command(CommandInfo p0,
List p1)
public Command(String id,
String direction)
| Method Detail |
|---|
public Object clone()
throws CloneNotSupportedException
clone in class ControlItemCloneNotSupportedExceptionpublic ASTNode copy()
copy in class ASTNodepublic ASTNode fullCopy()
fullCopy in class ASTNodepublic void flushCache()
flushCache in class ControlItemprotected int numChildren()
numChildren in class ControlItempublic void setInfo(CommandInfo node)
public CommandInfo getInfo()
public CommandInfo getInfoNoTransform()
public void setParamList(List list)
public int getNumParam()
public Param getParam(int i)
public void addParam(Param node)
public void setParam(Param node,
int i)
public List getParamList()
public List getParamListNoTransform()
public boolean isAboutTheSameEntityAs(Info info)
public Info getInfoAsInfo()
ControlItem
getInfoAsInfo in class ControlItempublic String getDirection()
public String getHelp()
public void setHelp(String help)
public ControlItem findItem(String id)
ControlItem
findItem in class ControlItempublic Command findMatchingCommand(Command command)
findMatchingCommand in class ControlItempublic void setDataRefsAndAddDataToList(ArrayList dataList)
setDataRefsAndAddDataToList in class ControlItempublic void setDataAccordingToDataRefs(byte[][] data)
setDataAccordingToDataRefs in class ControlItempublic Command getCopy()
public Param getParam(String id)
public void invoke()
protected boolean matches(Command command)
public void update(Command command)
public void addParamAndInfo(Param param)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||