Class PowerTuple


  • public class PowerTuple
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PowerTuple()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getActivePower()
      Get the Active-Power value.
      int getReactivePower()
      Get the Reactive-Power value.
      void setValue​(Pwr pwr, int value)
      Set a value.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • PowerTuple

        public PowerTuple()
    • Method Detail

      • setValue

        public void setValue​(Pwr pwr,
                             int value)
        Set a value.
        Parameters:
        pwr - the Pwr
        value - the value
      • getActivePower

        public int getActivePower()
        Get the Active-Power value.
        Returns:
        value for Pwr.ACTIVE.
      • getReactivePower

        public int getReactivePower()
        Get the Reactive-Power value.
        Returns:
        value for Pwr.REACTIVE.
      • toString

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