Interface IBindedElement<T>
- Type Parameters:
T- data type, such as Double or Double[]
- All Superinterfaces:
Cloneable,ISimpleElement
- All Known Implementing Classes:
BPMonitor,DataBushInfo,PowerSupply,RFGenerator
Marks DataBush element class that is connected to Abean. Class has to implement connection controling
methods.
- Author:
- igor@scictrl.com
-
Method Summary
Modifier and TypeMethodDescriptionintconnect()Binds to remote object.intDestroys connection.booleanReturnstrueif element is binded,falseotherwise.voidnotifyDataUpdate(T data) Called by data connection when new value update arrivesMethods inherited from interface org.scictrl.mp.orbitcorrect.ISimpleElement
clone, getName, toString
-
Method Details
-
connect
Binds to remote object. Returns the code indication success of bind.- Returns:
- the code indication success of bind.
- Throws:
IllegalAccessException- element is not in appropriate access state.DataBushPackedException- if bind exception occurs.
-
disconnect
Destroys connection. Returns the code indication success of destroy.- Returns:
- the code indication success of destroy.
- Throws:
IllegalAccessException- if element is not in appropriate access state.DataBushPackedException- if destroy exception occurs.
-
isConnected
boolean isConnected()Returnstrueif element is binded,falseotherwise.- Returns:
trueif element is binded,falseotherwise.
-
notifyDataUpdate
Called by data connection when new value update arrives- Parameters:
data- new data, if value is OK,nullif last arrive value signals problems and can not be thrusted
-