Class LatestSlidingValue

  • public class LatestSlidingValue
    extends SlidingValue<java.lang.Object>
    • Constructor Detail

      • LatestSlidingValue

        public LatestSlidingValue​(OpenemsType type)
    • Method Detail

      • addValue

        public void addValue​(java.lang.Object value)
        Description copied from class: SlidingValue
        Adds a value.
        Specified by:
        addValue in class SlidingValue<java.lang.Object>
        value - the value
      • getSlidingValue

        protected java.util.Optional<java.lang.Object> getSlidingValue()
        Description copied from class: SlidingValue
        Gets the sliding value, e.g. the average of all values.
        Specified by:
        getSlidingValue in class SlidingValue<java.lang.Object>
        the sliding value
      • resetValues

        protected void resetValues()
        Description copied from class: SlidingValue
        Resets the values.
        Specified by:
        resetValues in class SlidingValue<java.lang.Object>
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object