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