Interface AcEnergyDataAccessor

All Superinterfaces:
DataAccessor

public interface AcEnergyDataAccessor extends DataAccessor
API for accessing AC energy data from an object, such as a power meter.
Since:
1.60
Version:
1.2
Author:
matt
  • Method Details

    • accessorForPhase

      AcEnergyDataAccessor accessorForPhase(net.solarnetwork.domain.AcPhase phase)
      Get an accessor for phase-specific measurements.
      Parameters:
      phase - the phase to get an accessor for
      Returns:
      the accessor
    • reversed

      Get an accessor that reverses the current direction of the data, turning received into delivered and vice versa.
      Returns:
      the accessor
    • getFrequency

      Float getFrequency()
      Get the AC frequency value, in Hz.
      Returns:
      the frequency
    • getCurrent

      Float getCurrent()
      Get the current, in A.
      Returns:
      the current
    • getNeutralCurrent

      Float getNeutralCurrent()
      Get the neutral current, in A.
      Returns:
      the neutral current
      Since:
      1.2
    • getVoltage

      Float getVoltage()
      Get the voltage, in V.
      Returns:
      the voltage
    • getLineVoltage

      Float getLineVoltage()
      Get the line voltage, in V.
      Returns:
      the voltage
      Since:
      1.1
    • getPowerFactor

      Float getPowerFactor()
      Get the power factor, as a decimal from -1.0 to 1.0.
      Returns:
      the power factor
    • getActivePower

      Integer getActivePower()
      Get the active (real) power, in W.
      Returns:
      the active power
    • getActiveEnergyDelivered

      Long getActiveEnergyDelivered()
      Get the active energy delivered (imported), in Wh.
      Returns:
      the delivered active energy
    • getActiveEnergyReceived

      Long getActiveEnergyReceived()
      Get the active energy received (exported), in Wh.
      Returns:
      the received active energy
    • getApparentPower

      Integer getApparentPower()
      Get the apparent power, in VA.
      Returns:
      the apparent power
    • getApparentEnergyDelivered

      Long getApparentEnergyDelivered()
      Get the apparent energy delivered (imported), in VAh.
      Returns:
      the delivered apparent energy
    • getApparentEnergyReceived

      Long getApparentEnergyReceived()
      Get the apparent energy received (exported), in VAh.
      Returns:
      the received apparent energy
    • getReactivePower

      Integer getReactivePower()
      Get the reactive power, in VAR.
      Returns:
      the reactive power
    • getReactiveEnergyDelivered

      Long getReactiveEnergyDelivered()
      Get the reactive energy delivered (imported), in VARh.
      Returns:
      the delivered reactive energy
    • getReactiveEnergyReceived

      Long getReactiveEnergyReceived()
      Get the reactive energy received (exported), in VARh.
      Returns:
      the received reactive energy