public class ConditionalCommand extends java.lang.Object implements Command
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONDITIONAL_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 |
|---|
ConditionalCommand()
Empty constructor.
|
ConditionalCommand(Command command,
ControlUnitFilter parsedFilter)
Constructs a ConditionalCommand with given command and parsed filter.
|
ConditionalCommand(Command command,
java.lang.String filter)
Constructs a ConditionalCommand with given command and filter.
|
| Modifier and Type | Method and Description |
|---|---|
Command |
getCommand()
Returns the command that is to be executed on the control units satisfying the filtering conditions.
|
java.lang.String |
getFilter()
Returns filter specifying the condition which should be satisfied by the target control units.
|
ControlUnitFilter |
getParsedFilter()
Returns the control units filter in a parsed appearance
|
java.lang.String |
getType()
Returns CONDITIONAL_TYPE constant.
|
void |
readObject(java.io.InputStream in)
Method used for serialization
|
ControlUnitFilter |
setFilter(ControlUnitFilter controlUnitFilter)
Sets the control units filter for this conditional command in a parsed mode.
|
java.lang.String |
setFilter(java.lang.String filter)
Sets the control units filter for this conditional command.
|
java.lang.String |
toString() |
void |
writeObject(java.io.OutputStream out)
Method used for serialization
|
public static final java.lang.String CONDITIONAL_TYPE
public ConditionalCommand()
public ConditionalCommand(Command command, java.lang.String filter)
command - command object which will be executed over control units which conform to
condition specified by filter.filter - filter in mPRM Script lexical form defining a criteria for filtering the set
of control units over which the command to be executed.public ConditionalCommand(Command command, ControlUnitFilter parsedFilter)
command - command object which will be executed over control units which conform to
condition specified by filter.parsedFilter - parsed mPRM Script filter.public java.lang.String getType()
public java.lang.String getFilter()
public ControlUnitFilter getParsedFilter()
public ControlUnitFilter setFilter(ControlUnitFilter controlUnitFilter)
public java.lang.String setFilter(java.lang.String filter)
public Command getCommand()
public void readObject(java.io.InputStream in)
throws java.lang.Exception
readObject in interface Externalizablejava.lang.Exceptionpublic void writeObject(java.io.OutputStream out)
throws java.lang.Exception
writeObject in interface Externalizablejava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.