Class FormulaData

java.lang.Object
org.yamcs.studio.data.FormulaData
All Implemented Interfaces:
IPVListener

public class FormulaData extends Object implements IPVListener
  • Constructor Details

    • FormulaData

      public FormulaData(String formulaString)
  • Method Details

    • getInputs

      public Set<IPV> getInputs()
    • isConnected

      public boolean isConnected()
    • getValue

      public VType getValue()
    • connectionChanged

      public void connectionChanged(IPV input)
      Description copied from interface: IPVListener
      Will be called when connection state changed. It the connection is closed by explicitly calling IPV.stop(), this method will not be notified.
      Specified by:
      connectionChanged in interface IPVListener
      Parameters:
      input - the pv whose connection state changed.
    • exceptionOccurred

      public void exceptionOccurred(IPV input, Exception exception)
      Description copied from interface: IPVListener
      If no ExceptionHandler was given to the PV, this method will be called when exception happened. Otherwise, the exception will be handled by the ExceptionHandler.
      Specified by:
      exceptionOccurred in interface IPVListener
      Parameters:
      input - the pv which has read related exception happened.
      exception - the exception that has been caught.
    • valueChanged

      public void valueChanged(IPV input)
      Description copied from interface: IPVListener
      Will be called when PV value changed.
      Specified by:
      valueChanged in interface IPVListener
      Parameters:
      input - the pv whose value has changed.
    • writeFinished

      public void writeFinished(IPV input, boolean isWriteSucceeded)
      Description copied from interface: IPVListener
      Will be called when a write is finished.
      Note: when this is called, the value of the pv may not update yet, which depends the max update rate, so it is not recommended to call IPV.getValue() in this method.
      Specified by:
      writeFinished in interface IPVListener
      Parameters:
      input - the pv on which the write event happened.
      isWriteSucceeded - true if the write was successful.
    • writePermissionChanged

      public void writePermissionChanged(IPV input)
      Description copied from interface: IPVListener
      Will be called when write permission may have changed. The write permission can be get from IPV.isWriteAllowed()
      Specified by:
      writePermissionChanged in interface IPVListener
      Parameters:
      input - the pv whose permission may have changed.