Class DisabledRampFilter


  • public class DisabledRampFilter
    extends RampFilter
    This implementation ignores the Ramp filter and instead just returns the unfiltered target value. It is used when the using Component is configured to disable Ramp filter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getFilteredValueAsInteger​(float lastValue, java.lang.Float targetValue, float maxChangePerCall)
      Get filtered value using the given lastValue, the value to reach and a fixed maximum change per call.
      java.lang.Integer getFilteredValueAsInteger​(float lastValue, java.lang.Float targetValue, float maximumLimit, float increasingRate)
      Get filtered value using the given lastValue, the value to reach and a calculated maximum change per call.
      java.lang.Integer getFilteredValueAsInteger​(java.lang.Float targetValue, float maxChangePerCall)
      Get filtered value using the present lastValue, the value to reach and a fixed maximum change per call.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DisabledRampFilter

        public DisabledRampFilter()
    • Method Detail

      • getFilteredValueAsInteger

        public java.lang.Integer getFilteredValueAsInteger​(java.lang.Float targetValue,
                                                           float maxChangePerCall)
        Description copied from class: RampFilter
        Get filtered value using the present lastValue, the value to reach and a fixed maximum change per call.
        Overrides:
        getFilteredValueAsInteger in class RampFilter
        Parameters:
        targetValue - Value to reach
        maxChangePerCall - Fixed change per call
        Returns:
        value as Integer with applied ramp filter
      • getFilteredValueAsInteger

        public java.lang.Integer getFilteredValueAsInteger​(float lastValue,
                                                           java.lang.Float targetValue,
                                                           float maxChangePerCall)
        Description copied from class: RampFilter
        Get filtered value using the given lastValue, the value to reach and a fixed maximum change per call.
        Overrides:
        getFilteredValueAsInteger in class RampFilter
        Parameters:
        lastValue - Last or current value that needs to be adjusted
        targetValue - Value to reach
        maxChangePerCall - Fixed change per call
        Returns:
        value as Integer with applied ramp filter
      • getFilteredValueAsInteger

        public java.lang.Integer getFilteredValueAsInteger​(float lastValue,
                                                           java.lang.Float targetValue,
                                                           float maximumLimit,
                                                           float increasingRate)
        Description copied from class: RampFilter
        Get filtered value using the given lastValue, the value to reach and a calculated maximum change per call.
        Overrides:
        getFilteredValueAsInteger in class RampFilter
        Parameters:
        lastValue - Last or current value that needs to be adjusted
        targetValue - Value to reach
        maximumLimit - Maximum limit used to calculate a fixed change per call
        increasingRate - Increasing rate used to calculate a fixed change per call
        Returns:
        value as Integer with applied ramp filter