Class EnergyValuesHandler


  • public class EnergyValuesHandler
    extends java.lang.Object
    This Handler class makes sure that Energy values are steadily rising.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()  
      void deactivate()  
      java.lang.Long setValue​(Sum.ChannelId channelId, java.lang.Long value)
      Sets the value of the Channel if it is greater-or-equals the lastValue.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EnergyValuesHandler

        public EnergyValuesHandler​(SumImpl parent)
    • Method Detail

      • activate

        public void activate()
      • deactivate

        public void deactivate()
      • setValue

        public java.lang.Long setValue​(Sum.ChannelId channelId,
                                       java.lang.Long value)
        Sets the value of the Channel if it is greater-or-equals the lastValue.
        Parameters:
        channelId - the Channel-Id
        value - the energy value
        Returns:
        the value that was set; might be null