|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mbs.services.cu.generator.ServiceObject
org.mbs.services.cu.generator.DefaultControlUnit
org.mbs.services.device.abstractdriver.DeviceControlUnit
public class DeviceControlUnit
This class represents a device control unit.
| Field Summary |
|---|
| Fields inherited from class org.mbs.services.cu.generator.DefaultControlUnit |
|---|
ACTION_PREFIX, CHECK_INPUT, controller, controllerMethods, model |
| Fields inherited from interface org.mbs.services.cu.ControlConstants |
|---|
CONSTRUCTOR_PREFIX, DESTRUCTOR, EVENT_FILTER, EVENT_SYNC, EVENT_TYPE, FINDER_PREFIX, ID, PARENT_ID, PARENT_ROOT, PARENT_TYPE, STATE_VARIABLE_ID, SV_LIST_SV_ID, TYPE, VERSION |
| Constructor Summary | |
|---|---|
DeviceControlUnit(AbstractDeviceModel model,
AbstractDeviceController controller,
DeviceStateGraph stateGraph)
Creates the device control unit. |
|
| Method Summary | |
|---|---|
java.lang.Object |
invokeAction(java.lang.String actionId,
java.lang.Object args)
Executes the specified action over this control unit. |
| Methods inherited from class org.mbs.services.cu.generator.DefaultControlUnit |
|---|
checkActionInputArguments, fillDefaultProperties, getId, getType, queryStateVariable, release, setControlUnitCallback |
| Methods inherited from class org.mbs.services.cu.generator.ServiceObject |
|---|
registerService, unregisterService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceControlUnit(AbstractDeviceModel model,
AbstractDeviceController controller,
DeviceStateGraph stateGraph)
model - model of the devicecontroller - controller of the devicestateGraph - the device state graph| Method Detail |
|---|
public java.lang.Object invokeAction(java.lang.String actionId,
java.lang.Object args)
throws java.lang.Exception
ControlUnit
invokeAction in interface ControlUnitinvokeAction in class DefaultControlUnitactionId - the id of the actionargs - 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.ControlUnit.invokeAction(java.lang.String, java.lang.Object)
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||