Class DisabledRampFilter

java.lang.Object
io.openems.edge.common.filter.RampFilter
io.openems.edge.common.filter.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.
  • Constructor Details

    • DisabledRampFilter

      public DisabledRampFilter()
  • Method Details

    • getFilteredValueAsInteger

      public Integer getFilteredValueAsInteger(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 Integer getFilteredValueAsInteger(float lastValue, 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 Integer getFilteredValueAsInteger(float lastValue, 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