Package com.ed.data

Class GridData

  • All Implemented Interfaces:
    DataSet

    public final class GridData
    extends java.lang.Object
    implements DataSet
    Power main grid measurements
    • Field Summary

      Fields 
      Modifier and Type Field Description
      DspFloat fExt
      main grid connector Grid frequency, basic data
      DspFloat pExt
      main grid connector Power (external sensors), basic data
      DspFloat pInt
      main grid connector Power (internal sensors), basic data
      DspFloat qExt
      main grid connector reactive power (external sensors), basic data
      DspFloat qInt
      main grid connector reactive power (internal sensors), basic data
      DspFloat uExt
      main grid connector AC Voltage, basic data
    • Constructor Summary

      Constructors 
      Constructor Description
      GridData()
      Creates a object representing main grid connector measurements
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean dataReady()
      Get data status
      float getACPower​(int phaseIx)
      Get main grid connector AC Power
      float getACPowerExt​(int phaseIx)
      Get main grid connector AC Power, external current sensors
      float getACVoltageOnGrid​(int phaseIx)
      Get main grid connector On-grid Voltage (external)
      float getFrequencyExt()
      Get main grid connector On-grid Frequency (external)
      float getReactivePower​(int phaseIx)
      Get main grid connector AC Reactive Power
      float getReactivePowerExt​(int phaseIx)
      Get main grid connector AC Reactive Power, external current sensors
      void refresh()
      Put refresh request
      void registerData​(Client cl)
      Register all internal data
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • pInt

        public final DspFloat pInt
        main grid connector Power (internal sensors), basic data
      • pExt

        public final DspFloat pExt
        main grid connector Power (external sensors), basic data
      • uExt

        public final DspFloat uExt
        main grid connector AC Voltage, basic data
      • fExt

        public final DspFloat fExt
        main grid connector Grid frequency, basic data
      • qInt

        public final DspFloat qInt
        main grid connector reactive power (internal sensors), basic data
      • qExt

        public final DspFloat qExt
        main grid connector reactive power (external sensors), basic data
    • Constructor Detail

      • GridData

        public GridData()
                 throws java.lang.Exception
        Creates a object representing main grid connector measurements
        Throws:
        java.lang.Exception - wrong parameters
    • Method Detail

      • getACPower

        public float getACPower​(int phaseIx)
                         throws java.lang.RuntimeException
        Get main grid connector AC Power
        Parameters:
        phaseIx - Phase index 0 (Phase 1), 1 and 2.
        Returns:
        AC power [W] (~ 20ms, grid synchronized measurement) '+' consumption, '-' feed in
        Throws:
        java.lang.RuntimeException
      • getACPowerExt

        public float getACPowerExt​(int phaseIx)
                            throws java.lang.RuntimeException
        Get main grid connector AC Power, external current sensors
        Parameters:
        phaseIx - Phase index 0 (Phase 1), 1 and 2.
        Returns:
        AC power [W] (~ 20ms, grid synchronized measurement) '+' consumption, '-' feed in
        Throws:
        java.lang.RuntimeException
      • getReactivePower

        public float getReactivePower​(int phaseIx)
                               throws java.lang.RuntimeException
        Get main grid connector AC Reactive Power
        Parameters:
        phaseIx - Phase index 0 (Phase 1), 1 and 2.
        Returns:
        Reactive Power [var] (~ 20ms, grid synchronized measurement) '+' inductive, '-' capacitive
        Throws:
        java.lang.RuntimeException
      • getReactivePowerExt

        public float getReactivePowerExt​(int phaseIx)
                                  throws java.lang.RuntimeException
        Get main grid connector AC Reactive Power, external current sensors
        Parameters:
        phaseIx - Phase index 0 (Phase 1), 1 and 2.
        Returns:
        Reactive Power [var] (~ 20ms, grid synchronized measurement) '+' inductive, '-' capacitive
        Throws:
        java.lang.RuntimeException
      • getACVoltageOnGrid

        public float getACVoltageOnGrid​(int phaseIx)
                                 throws java.lang.RuntimeException
        Get main grid connector On-grid Voltage (external)
        Parameters:
        phaseIx - Phase index 0 (Phase 1), 1 and 2.
        Returns:
        AC voltage [V] (~ 20ms RMS, grid synchronized measurement)
        Throws:
        java.lang.RuntimeException
      • getFrequencyExt

        public float getFrequencyExt()
                              throws java.lang.RuntimeException
        Get main grid connector On-grid Frequency (external)
        Returns:
        AC Frequency [Hz] (grid synchronized measurement)
        Throws:
        java.lang.RuntimeException
      • registerData

        public void registerData​(Client cl)
        Description copied from interface: DataSet
        Register all internal data
        Specified by:
        registerData in interface DataSet
        Parameters:
        cl - client connected to inverter
      • refresh

        public void refresh()
        Description copied from interface: DataSet
        Put refresh request
        Specified by:
        refresh in interface DataSet
      • dataReady

        public boolean dataReady()
        Description copied from interface: DataSet
        Get data status
        Specified by:
        dataReady in interface DataSet
        Returns:
        true if internal data was read after last refresh request
      • toString

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