Package io.openems.edge.common.filter
Class DisabledRampFilter
java.lang.Object
io.openems.edge.common.filter.RampFilter
io.openems.edge.common.filter.DisabledRampFilter
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFilteredValueAsInteger
(float lastValue, Float targetValue, float maxChangePerCall) Get filtered value using the given lastValue, the value to reach and a fixed maximum change per call.getFilteredValueAsInteger
(float lastValue, Float targetValue, float maximumLimit, float increasingRate) Get filtered value using the given lastValue, the value to reach and a calculated maximum change per call.getFilteredValueAsInteger
(Float targetValue, float maxChangePerCall) Get filtered value using the present lastValue, the value to reach and a fixed maximum change per call.
-
Constructor Details
-
DisabledRampFilter
public DisabledRampFilter()
-
-
Method Details
-
getFilteredValueAsInteger
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 classRampFilter
- Parameters:
targetValue
- Value to reachmaxChangePerCall
- 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 classRampFilter
- Parameters:
lastValue
- Last or current value that needs to be adjustedtargetValue
- Value to reachmaxChangePerCall
- 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 classRampFilter
- Parameters:
lastValue
- Last or current value that needs to be adjustedtargetValue
- Value to reachmaximumLimit
- Maximum limit used to calculate a fixed change per callincreasingRate
- Increasing rate used to calculate a fixed change per call- Returns:
- value as Integer with applied ramp filter
-