|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ControlUnitModel
Control unit model interface. A model holds the current state of a control unit.
| Method Summary | |
|---|---|
CUAdminCallback |
getControlUnitCallback()
Returns control unit callback. |
java.lang.String |
getId()
Returns the CU Id for which this object is model. |
java.lang.String |
getType()
Returns the CU TYPE for which this object is model. |
java.lang.Object |
queryStateVariable(java.lang.String varId)
Retrieves state variable value by its Id. |
void |
release()
Free the resources for the model. |
void |
reset()
Resets the model. |
void |
setControlUnitCallback(CUAdminCallback callback)
|
boolean |
updateSV(java.lang.String stateVarId,
java.lang.Object stateVarValue)
Check if the old value of the state variable stateVarId is different from the new one and notify all listeners that have registered interest in the stateVar with id stateVarId |
| Method Detail |
|---|
boolean updateSV(java.lang.String stateVarId,
java.lang.Object stateVarValue)
stateVarId - state variable idstateVarValue - the new value for the state variable
java.lang.Object queryStateVariable(java.lang.String varId)
throws java.lang.IllegalArgumentException
varId - the id of required state variable.
java.lang.IllegalArgumentException - if there is
no state variable with this Id in this control unitjava.lang.String getId()
java.lang.String getType()
void reset()
throws java.lang.Exception
java.lang.Exception - thrown if error during reset occursvoid release()
void setControlUnitCallback(CUAdminCallback callback)
org.msb.services.cu.spi.ManagedControlUnit#setControlUnitCallback(org.msb.services.cu.spi.CUAdminCallback)CUAdminCallback getControlUnitCallback()
org.msb.services.cu.spi.ManagedControlUnit#setControlUnitCallback(org.msb.services.cu.spi.CUAdminCallback)
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||