Class AbstractSunSpecBatteryInverter
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
io.openems.edge.bridge.modbus.sunspec.AbstractOpenemsSunSpecComponent
io.openems.edge.batteryinverter.sunspec.AbstractSunSpecBatteryInverter
- All Implemented Interfaces:
ManagedSymmetricBatteryInverter
,SymmetricBatteryInverter
,ModbusComponent
,OpenemsComponent
,StartStoppable
- Direct Known Subclasses:
BatteryInverterKacoBlueplanetGridsaveImpl
public abstract class AbstractSunSpecBatteryInverter
extends AbstractOpenemsSunSpecComponent
implements ManagedSymmetricBatteryInverter, SymmetricBatteryInverter, OpenemsComponent
-
Nested Class Summary
Nested classes/interfaces inherited from class io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
AbstractOpenemsModbusComponent.BitConverter, AbstractOpenemsModbusComponent.ChannelMapper<ELEMENT extends ModbusElement>
Nested classes/interfaces inherited from interface io.openems.edge.batteryinverter.api.ManagedSymmetricBatteryInverter
ManagedSymmetricBatteryInverter.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.bridge.modbus.api.ModbusComponent
ModbusComponent.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.batteryinverter.api.SymmetricBatteryInverter
SymmetricBatteryInverter.ChannelId
-
Field Summary
Fields inherited from interface io.openems.edge.batteryinverter.api.SymmetricBatteryInverter
POWER_DOC_TEXT
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSunSpecBatteryInverter
(Map<SunSpecModel, Priority> activeModels, ChannelId[] firstInitialChannelIds, ChannelId[]... furtherInitialChannelIds) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
activate
(org.osgi.service.component.ComponentContext context, String id, String alias, boolean enabled, int unitId, org.osgi.service.cm.ConfigurationAdmin cm, String modbusReference, String modbusId, int readFromCommonBlockNo) Make sure to call this method from the inheriting OSGi Component.protected void
Make sure to call this method from the inheriting OSGi Component.protected void
This method is called after the SunSpec initialization was completed.Methods inherited from class io.openems.edge.bridge.modbus.sunspec.AbstractOpenemsSunSpecComponent
activate, addBlock, defineModbusProtocol, generateElementToChannelConverter, getSunSpecChannel, getSunSpecChannelOrError, getSunSpecModel, isSunSpecInitializationCompleted, mapFirstPointToChannel, preprocessModbusElements
Methods inherited from class io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
activate, activate, getBridgeModbus, getModbusProtocol, getUnitId, m, m, m, m, m, m, modified, modified, retryModbusCommunication, setModbus, unsetModbus
Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, 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.batteryinverter.api.ManagedSymmetricBatteryInverter
getPowerPrecision, getStaticConstraints, isManaged, isOffGridPossible, run
Methods inherited from interface io.openems.edge.bridge.modbus.api.ModbusComponent
_setModbusCommunicationFailed, getModbusCommunicationFailed, getModbusCommunicationFailedChannel
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
Methods inherited from interface io.openems.edge.common.startstop.StartStoppable
_setStartStop, getStartStop, getStartStopChannel, isStarted, isStopped, setStartStop, start, stop
Methods inherited from interface io.openems.edge.batteryinverter.api.SymmetricBatteryInverter
_setActiveChargeEnergy, _setActiveChargeEnergy, _setActiveDischargeEnergy, _setActiveDischargeEnergy, _setActivePower, _setActivePower, _setGridMode, _setMaxApparentPower, _setMaxApparentPower, _setReactivePower, _setReactivePower, getActiveChargeEnergy, getActiveChargeEnergyChannel, getActiveDischargeEnergy, getActiveDischargeEnergyChannel, getActivePower, getActivePowerChannel, getGridMode, getGridModeChannel, getMaxApparentPower, getMaxApparentPowerChannel, getReactivePower, getReactivePowerChannel
-
Constructor Details
-
AbstractSunSpecBatteryInverter
public AbstractSunSpecBatteryInverter(Map<SunSpecModel, Priority> activeModels, ChannelId[] firstInitialChannelIds, ChannelId[]... furtherInitialChannelIds) throws OpenemsException- Throws:
OpenemsException
-
-
Method Details
-
activate
protected boolean activate(org.osgi.service.component.ComponentContext context, String id, String alias, boolean enabled, int unitId, org.osgi.service.cm.ConfigurationAdmin cm, String modbusReference, String modbusId, int readFromCommonBlockNo) throws OpenemsException Make sure to call this method from the inheriting OSGi Component.- Overrides:
activate
in classAbstractOpenemsSunSpecComponent
- Throws:
OpenemsException
- on error
-
deactivate
protected void deactivate()Make sure to call this method from the inheriting OSGi Component.- Overrides:
deactivate
in classAbstractOpenemsModbusComponent
-
onSunSpecInitializationCompleted
protected void onSunSpecInitializationCompleted()Description copied from class:AbstractOpenemsSunSpecComponent
This method is called after the SunSpec initialization was completed.The purpose of this method is to add mappings between SunSpec Channel-Points to OpenEMS Nature Channels.
- Specified by:
onSunSpecInitializationCompleted
in classAbstractOpenemsSunSpecComponent
-