Package org.yamcs.studio.data
Interface IPVListener
- All Known Implementing Classes:
FormulaData
public interface IPVListener
A listener on all events of the PV.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
connectionChanged
(IPV pv) Will be called when connection state changed.default void
exceptionOccurred
(IPV pv, Exception exception) If noExceptionHandler
was given to the PV, this method will be called when exception happened.default void
valueChanged
(IPV pv) Will be called when PV value changed.default void
writeFinished
(IPV pv, boolean isWriteSucceeded) Will be called when a write is finished.default void
Will be called when write permission may have changed.
-
Method Details
-
connectionChanged
Will be called when connection state changed. It the connection is closed by explicitly callingIPV.stop()
, this method will not be notified.- Parameters:
pv
- the pv whose connection state changed.
-
exceptionOccurred
If noExceptionHandler
was given to the PV, this method will be called when exception happened. Otherwise, the exception will be handled by theExceptionHandler
.- Parameters:
pv
- the pv which has read related exception happened.exception
- the exception that has been caught.
-
valueChanged
Will be called when PV value changed.- Parameters:
pv
- the pv whose value has changed.
-
writeFinished
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.- Parameters:
pv
- the pv on which the write event happened.isWriteSucceeded
- true if the write was successful.
-
writePermissionChanged
Will be called when write permission may have changed. The write permission can be get fromIPV.isWriteAllowed()
- Parameters:
pv
- the pv whose permission may have changed.
-