Interface SinglePhaseMeter

All Superinterfaces:
ElectricityMeter, OpenemsComponent
All Known Subinterfaces:
IoShellyPlug, MeterSocomecSinglephase
All Known Implementing Classes:
DummySinglePhaseElectricityMeter, IoShellyPlugImpl, MeterSocomecSinglephaseImpl

@ProviderType public interface SinglePhaseMeter extends ElectricityMeter
  • Method Details

    • getPhase

      SinglePhase getPhase()
      Gets the Phase this Meter is connected to.
      Returns:
      the Phase
    • calculateSinglePhaseFromActivePower

      static void calculateSinglePhaseFromActivePower(SinglePhaseMeter meter)
      Initializes Channel listeners for a SinglePhaseMeter.

      Sets the correct value for

      invalid reference
      ChannelId#ACTIVE_POWER_L1
      ,
      invalid reference
      ChannelId#ACTIVE_POWER_L2
      or
      invalid reference
      ChannelId#ACTIVE_POWER_L3
      from
      invalid reference
      ChannelId#ACTIVE_POWER
      by evaluating the configured SinglePhase via getPhase().
      Parameters:
      meter - the SinglePhaseMeter
    • calculateSinglePhaseFromActivePower

      static <METER extends ElectricityMeter> void calculateSinglePhaseFromActivePower(METER meter, Function<METER,SinglePhase> phaseProvider)
      Initializes Channel listeners for a SinglePhaseMeter.

      Use this method if it is not known at compile time, that the ElectricityMeter is a SinglePhaseMeter, i.e. it is not implementing SinglePhaseMeter.

      Sets the correct value for

      invalid reference
      ChannelId#ACTIVE_POWER_L1
      ,
      invalid reference
      ChannelId#ACTIVE_POWER_L2
      or
      invalid reference
      ChannelId#ACTIVE_POWER_L3
      from
      invalid reference
      ChannelId#ACTIVE_POWER
      by evaluating the provided SinglePhase.
      Type Parameters:
      METER - type that extends ElectricityMeter
      Parameters:
      meter - a ElectricityMeter
      phaseProvider - a provider for SinglePhase
    • getModbusSlaveNatureTable

      static ModbusSlaveNatureTable getModbusSlaveNatureTable(AccessMode accessMode)
      Used for Modbus/TCP Api Controller. Provides a Modbus table for the Channels of this Component.
      Parameters:
      accessMode - filters the Modbus-Records that should be shown
      Returns:
      the ModbusSlaveNatureTable