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 TypeMethodDescriptionint
connect()
Binds to remote object.int
Destroys connection.boolean
Returnstrue
if element is binded,false
otherwise.void
notifyDataUpdate
(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()Returnstrue
if element is binded,false
otherwise.- Returns:
true
if element is binded,false
otherwise.
-
notifyDataUpdate
Called by data connection when new value update arrives- Parameters:
data
- new data, if value is OK,null
if last arrive value signals problems and can not be thrusted
-