public class ControlUnitCommand extends java.lang.Object implements Command
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE
Constant specifying the command type.
|
COMMAND_TYPE_BATCH_COMMAND, COMMAND_TYPE_CONDITIONAL, COMMAND_TYPE_CU, COMMAND_TYPE_CU_INSTANCE, COMMAND_TYPE_SCRIPT, COMMAND_TYPE_SERIALIZED_COMMAND| Constructor and Description |
|---|
ControlUnitCommand()
Empty constructor.
|
ControlUnitCommand(java.lang.String controlUnitType,
java.lang.String actionID,
java.lang.Object actionArgs)
Constructs control unit command with given arguments.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
argsToString(java.lang.Object args,
java.lang.StringBuffer sb) |
java.lang.Object |
getActionArguments()
Returns the arguments of the action invocation.
|
java.lang.String |
getActionID()
Returns id of the action to be invoked.
|
java.lang.String |
getControlUnitType()
Returns the control unit type argument.
|
java.lang.String |
getType()
Returns the type of this command.
|
void |
readObject(java.io.InputStream is)
Method used for serialization.
|
void |
setActionArguments(java.lang.Object arguments)
Sets arguments of the action invocation.
|
java.lang.String |
toString() |
void |
writeObject(java.io.OutputStream os)
Method used for serialization.
|
public static final java.lang.String TYPE
public ControlUnitCommand()
public ControlUnitCommand(java.lang.String controlUnitType,
java.lang.String actionID,
java.lang.Object actionArgs)
controlUnitType - control unit type to which the command is targeted.actionID - id of the action to be invoked.actionArgs - arguments of the action invocation.public java.lang.String getType()
Commandpublic java.lang.String getControlUnitType()
public java.lang.Object getActionArguments()
public java.lang.String getActionID()
public void setActionArguments(java.lang.Object arguments)
arguments - arguments of the action invocation.public void readObject(java.io.InputStream is)
throws java.lang.Exception
readObject in interface Externalizablejava.lang.Exceptionpublic void writeObject(java.io.OutputStream os)
throws java.lang.Exception
writeObject in interface Externalizablejava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void argsToString(java.lang.Object args,
java.lang.StringBuffer sb)
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.