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

public interface IBindedElement<T> extends ISimpleElement
Marks DataBush element class that is connected to Abean. Class has to implement connection controling methods.
Author:
igor@scictrl.com
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Binds to remote object.
    int
    Destroys connection.
    boolean
    Returns true if element is binded, false otherwise.
    void
    Called by data connection when new value update arrives

    Methods 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()
      Returns true if element is binded, false otherwise.
      Returns:
      true if element is binded, false otherwise.
    • notifyDataUpdate

      void notifyDataUpdate(T data)
      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