public class VirtualAdd extends AbstractOpenemsComponent implements VirtualMeter, SymmetricMeter, OpenemsComponent, org.osgi.service.event.EventHandler, ModbusSlave
SymmetricMeter.ChannelId
Modifier and Type | Field and Description |
---|---|
protected ComponentManager |
componentManager |
Constructor and Description |
---|
VirtualAdd() |
Modifier and Type | Method and Description |
---|---|
boolean |
addToSum()
Whether or not to add the values of this meter to Sum.
|
protected void |
deactivate()
Handles @Deactivate of implementations.
|
java.lang.String |
debugLog()
Gets some output that is suitable for a continuous Debug log.
|
MeterType |
getMeterType()
Gets the type of this Meter.
|
ModbusSlaveTable |
getModbusSlaveTable(AccessMode accessMode)
Gets the Modbus-Slave-Table for this OpenEMS-Component.
|
void |
handleEvent(org.osgi.service.event.Event event) |
_channel, activate, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_setActiveConsumptionEnergy, _setActiveConsumptionEnergy, _setActivePower, _setActivePower, _setActiveProductionEnergy, _setActiveProductionEnergy, _setCurrent, _setCurrent, _setFrequency, _setFrequency, _setMaxActivePower, _setMaxActivePower, _setMinActivePower, _setMinActivePower, _setReactivePower, _setReactivePower, _setVoltage, _setVoltage, getActiveConsumptionEnergy, getActiveConsumptionEnergyChannel, getActivePower, getActivePowerChannel, getActiveProductionEnergy, getActiveProductionEnergyChannel, getCurrent, getCurrentChannel, getFrequency, getFrequencyChannel, getMaxActivePower, getMaxActivePowerChannel, getMinActivePower, getMinActivePowerChannel, getModbusSlaveNatureTable, getReactivePower, getReactivePowerChannel, getVoltage, getVoltageChannel
_channel, _getChannelAs, alias, channel, channel, channels, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, logDebug, logError, logInfo, logWarn, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
protected ComponentManager componentManager
protected void deactivate()
AbstractOpenemsComponent
deactivate
in class AbstractOpenemsComponent
public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
public MeterType getMeterType()
SymmetricMeter
getMeterType
in interface SymmetricMeter
public java.lang.String debugLog()
OpenemsComponent
debugLog
in interface OpenemsComponent
public boolean addToSum()
VirtualMeter
Use case: there are two production meters which should be joined to one virtual meter. In this case you would not want this VirtualMeter to be added to the total sum of Production power ("_sum/ActiveProductionPower").
addToSum
in interface VirtualMeter
public ModbusSlaveTable getModbusSlaveTable(AccessMode accessMode)
ModbusSlave
getModbusSlaveTable
in interface ModbusSlave
accessMode
- filters the Modbus-Records that should be shown