Class CalculateIntegerSum
java.lang.Object
io.openems.edge.common.channel.calculate.CalculateIntegerSum
Helper class to sum up Integer-Channels.
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
-
Field Details
-
DIRECT_CONVERTER
-
DIVIDE_BY_THREE
-
-
Constructor Details
-
CalculateIntegerSum
public CalculateIntegerSum()
-
-
Method Details
-
addValue
Adds a Channel-Value.- Parameters:
channel
- the Channel
-
addValue
Adds a Channel-Value.- Parameters:
channel
- the Channelconverter
- is applied to the channel value
-
calculate
Calculates the sum.- Returns:
- the sum or null
- Throws:
NoSuchElementException
- on error
-