public interface ControlUnit
state variables and set of operations
called actions.
type and
id. The type of a Control Unit defines its allowed set of state
variables and actions. The id of the Control Unit instance identifies it uniquely
in the scope of its type.
ManagedControlUnit, which represents single
control unit instance or by registering a ControlUnitFactory
service, which maintains a set of Control Unit instances of the same type.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Returns id of the control unit which uniquely identifies it in the scope of
its parent.
|
java.lang.String |
getType()
Returns type of the control unit.
|
java.lang.Object |
invokeAction(java.lang.String actionID,
java.lang.Object arguments)
Executes the specified action over this control unit.
|
java.lang.Object |
queryStateVariable(java.lang.String stateVariableID)
Returns the value of a specified state variable.
|
java.lang.String getId()
java.lang.String getType()
java.lang.Object queryStateVariable(java.lang.String stateVariableID)
stateVariableID - the id of the variablejava.lang.IllegalArgumentException - if this control unit does not have
a state variable with the given idjava.lang.Object invokeAction(java.lang.String actionID,
java.lang.Object arguments)
throws java.lang.Exception
actionID - the id of the actionarguments - the input argument(s). If the argument is only one this is
the argument itself. If the arguments are more then one, the
value must be a Object[] and arguments are retrieved
from that array.null if the action does not
return value.java.lang.Exception - if an error occurs while executing action.java.lang.IllegalArgumentException - if this control unit does not have action
with the supplied Id or the arguments number and/or types do not match the
action arguments.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.