Class CalculateLongSum
java.lang.Object
io.openems.edge.common.channel.calculate.CalculateLongSum
Helper class to sum up Long-Channels.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CalculateLongSum
public CalculateLongSum()
-
-
Method Details
-
addValue
Adds a Channel-Value.- Parameters:
channel
- the Channel
-
calculate
Calculates the sum.- Returns:
- the sum or null
- Throws:
NoSuchElementException
- on error
-