Interface ParameterObserver


  • public interface ParameterObserver
    Interface for observing parameters changes.
    Since:
    8.0
    Author:
    Luc Maisonobe
    See Also:
    ParameterDriver
    • Method Detail

      • valueChanged

        void valueChanged​(double previousValue,
                          ParameterDriver driver)
        Notify that a parameter value has been changed.
        Parameters:
        previousValue - previous value
        driver - parameter driver that has been changed
      • referenceDateChanged

        default void referenceDateChanged​(AbsoluteDate previousReferenceDate,
                                          ParameterDriver driver)
        Notify that a parameter reference date has been changed.

        The default implementation does nothing

        Parameters:
        previousReferenceDate - previous date (null if it is the first time the reference date is changed)
        driver - parameter driver that has been changed
        Since:
        9.0
      • nameChanged

        default void nameChanged​(String previousName,
                                 ParameterDriver driver)
        Notify that a parameter name has been changed.

        The default implementation does nothing

        Parameters:
        previousName - previous name
        driver - parameter driver that has been changed
        Since:
        9.0
      • selectionChanged

        default void selectionChanged​(boolean previousSelection,
                                      ParameterDriver driver)
        Notify that a parameter selection status has been changed.

        The default implementation does nothing

        Parameters:
        previousSelection - previous selection
        driver - parameter driver that has been changed
        Since:
        9.0
      • referenceValueChanged

        default void referenceValueChanged​(double previousReferenceValue,
                                           ParameterDriver driver)
        Notify that a parameter reference value has been changed.

        The default implementation does nothing

        Parameters:
        previousReferenceValue - previous reference value
        driver - parameter driver that has been changed
        Since:
        9.0
      • minValueChanged

        default void minValueChanged​(double previousMinValue,
                                     ParameterDriver driver)
        Notify that a parameter minimum value has been changed.

        The default implementation does nothing

        Parameters:
        previousMinValue - previous minimum value
        driver - parameter driver that has been changed
        Since:
        9.0
      • maxValueChanged

        default void maxValueChanged​(double previousMaxValue,
                                     ParameterDriver driver)
        Notify that a parameter maximum value has been changed.

        The default implementation does nothing

        Parameters:
        previousMaxValue - previous maximum value
        driver - parameter driver that has been changed
        Since:
        9.0
      • scaleChanged

        default void scaleChanged​(double previousScale,
                                  ParameterDriver driver)
        Notify that a parameter scale has been changed.

        The default implementation does nothing

        Parameters:
        previousScale - previous scale
        driver - parameter driver that has been changed
        Since:
        9.0