Package org.yamcs.studio.data
Class FormulaData
java.lang.Object
org.yamcs.studio.data.FormulaData
- All Implemented Interfaces:
IPVListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionChanged(IPV input) Will be called when connection state changed.voidexceptionOccurred(IPV input, Exception exception) If noExceptionHandlerwas given to the PV, this method will be called when exception happened.getValue()booleanvoidvalueChanged(IPV input) Will be called when PV value changed.voidwriteFinished(IPV input, boolean isWriteSucceeded) Will be called when a write is finished.voidwritePermissionChanged(IPV input) Will be called when write permission may have changed.
-
Constructor Details
-
FormulaData
-
-
Method Details
-
getInputs
-
isConnected
public boolean isConnected() -
getValue
-
connectionChanged
Description copied from interface:IPVListenerWill be called when connection state changed. It the connection is closed by explicitly callingIPV.stop(), this method will not be notified.- Specified by:
connectionChangedin interfaceIPVListener- Parameters:
input- the pv whose connection state changed.
-
exceptionOccurred
Description copied from interface:IPVListenerIf noExceptionHandlerwas given to the PV, this method will be called when exception happened. Otherwise, the exception will be handled by theExceptionHandler.- Specified by:
exceptionOccurredin interfaceIPVListener- Parameters:
input- the pv which has read related exception happened.exception- the exception that has been caught.
-
valueChanged
Description copied from interface:IPVListenerWill be called when PV value changed.- Specified by:
valueChangedin interfaceIPVListener- Parameters:
input- the pv whose value has changed.
-
writeFinished
Description copied from interface:IPVListenerWill 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 callIPV.getValue()in this method.- Specified by:
writeFinishedin interfaceIPVListener- Parameters:
input- the pv on which the write event happened.isWriteSucceeded- true if the write was successful.
-
writePermissionChanged
Description copied from interface:IPVListenerWill be called when write permission may have changed. The write permission can be get fromIPV.isWriteAllowed()- Specified by:
writePermissionChangedin interfaceIPVListener- Parameters:
input- the pv whose permission may have changed.
-