Package io.openems.edge.meter.test
Class DummySinglePhaseElectricityMeter
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.meter.test.AbstractDummyElectricityMeter<DummySinglePhaseElectricityMeter>
io.openems.edge.meter.test.DummySinglePhaseElectricityMeter
- All Implemented Interfaces:
OpenemsComponent
,ElectricityMeter
,SinglePhaseMeter
public class DummySinglePhaseElectricityMeter
extends AbstractDummyElectricityMeter<DummySinglePhaseElectricityMeter>
implements ElectricityMeter, SinglePhaseMeter
Provides a simple, simulated
SinglePhaseMeter
ElectricityMeter
component that can be used together with the OpenEMS Component test
framework.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.edge.meter.api.ElectricityMeter
ElectricityMeter.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.meter.api.SinglePhaseMeter
SinglePhaseMeter.ChannelId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPhase()
Gets the Phase this Meter is connected to.protected DummySinglePhaseElectricityMeter
self()
withPhase
(SinglePhase phase) Set theSinglePhase
.Methods inherited from class io.openems.edge.meter.test.AbstractDummyElectricityMeter
getMeterType, withActivePower, withActivePowerL1, withActivePowerL2, withActivePowerL3, withActiveProductionEnergy, withActiveProductionEnergyL1, withActiveProductionEnergyL2, withActiveProductionEnergyL3, withCurrent, withCurrentL1, withCurrentL2, withCurrentL3, withMeterType, withReactivePower, withReactivePowerL1, withReactivePowerL2, withReactivePowerL3, withVoltage, withVoltageL1, withVoltageL2, withVoltageL3
Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, activate, activate, addChannel, addChannels, addChannels, alias, channels, deactivate, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.meter.api.ElectricityMeter
_setActiveConsumptionEnergy, _setActiveConsumptionEnergy, _setActiveConsumptionEnergyL1, _setActiveConsumptionEnergyL1, _setActiveConsumptionEnergyL2, _setActiveConsumptionEnergyL2, _setActiveConsumptionEnergyL3, _setActiveConsumptionEnergyL3, _setActivePower, _setActivePower, _setActivePowerL1, _setActivePowerL1, _setActivePowerL2, _setActivePowerL2, _setActivePowerL3, _setActivePowerL3, _setActiveProductionEnergy, _setActiveProductionEnergy, _setActiveProductionEnergyL1, _setActiveProductionEnergyL1, _setActiveProductionEnergyL2, _setActiveProductionEnergyL2, _setActiveProductionEnergyL3, _setActiveProductionEnergyL3, _setCurrent, _setCurrent, _setCurrentL1, _setCurrentL1, _setCurrentL2, _setCurrentL2, _setCurrentL3, _setCurrentL3, _setFrequency, _setFrequency, _setReactivePower, _setReactivePower, _setReactivePowerL1, _setReactivePowerL1, _setReactivePowerL2, _setReactivePowerL2, _setReactivePowerL3, _setReactivePowerL3, _setVoltage, _setVoltage, _setVoltageL1, _setVoltageL1, _setVoltageL2, _setVoltageL2, _setVoltageL3, _setVoltageL3, getActiveConsumptionEnergy, getActiveConsumptionEnergyChannel, getActiveConsumptionEnergyL1, getActiveConsumptionEnergyL1Channel, getActiveConsumptionEnergyL2, getActiveConsumptionEnergyL2Channel, getActiveConsumptionEnergyL3, getActiveConsumptionEnergyL3Channel, getActivePower, getActivePowerChannel, getActivePowerL1, getActivePowerL1Channel, getActivePowerL2, getActivePowerL2Channel, getActivePowerL3, getActivePowerL3Channel, getActiveProductionEnergy, getActiveProductionEnergyChannel, getActiveProductionEnergyL1, getActiveProductionEnergyL1Channel, getActiveProductionEnergyL2, getActiveProductionEnergyL2Channel, getActiveProductionEnergyL3, getActiveProductionEnergyL3Channel, getCurrent, getCurrentChannel, getCurrentL1, getCurrentL1Channel, getCurrentL2, getCurrentL2Channel, getCurrentL3, getCurrentL3Channel, getFrequency, getFrequencyChannel, getMeterType, getReactivePower, getReactivePowerChannel, getReactivePowerL1, getReactivePowerL1Channel, getReactivePowerL2, getReactivePowerL2Channel, getReactivePowerL3, getReactivePowerL3Channel, getVoltage, getVoltageChannel, getVoltageL1, getVoltageL1Channel, getVoltageL2, getVoltageL2Channel, getVoltageL3, getVoltageL3Channel, isManaged
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
Constructor Details
-
DummySinglePhaseElectricityMeter
-
-
Method Details
-
self
- Specified by:
self
in classAbstractDummyElectricityMeter<DummySinglePhaseElectricityMeter>
-
withPhase
Set theSinglePhase
.- Parameters:
phase
- the phase- Returns:
- myself
-
getPhase
Description copied from interface:SinglePhaseMeter
Gets the Phase this Meter is connected to.- Specified by:
getPhase
in interfaceSinglePhaseMeter
- Returns:
- the Phase
-