public abstract class AbstractSunSpecBatteryInverter extends AbstractOpenemsSunSpecComponent implements ManagedSymmetricBatteryInverter, SymmetricBatteryInverter, OpenemsComponent
AbstractOpenemsModbusComponent.BitConverter, AbstractOpenemsModbusComponent.ChannelMapper<T extends AbstractModbusElement<?>>
ManagedSymmetricBatteryInverter.ChannelId
POWER_DOC_TEXT
Constructor and Description |
---|
AbstractSunSpecBatteryInverter(java.util.Map<SunSpecModel,Priority> activeModels,
ChannelId[] firstInitialChannelIds,
ChannelId[]... furtherInitialChannelIds) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
activate(org.osgi.service.component.ComponentContext context,
java.lang.String id,
java.lang.String alias,
boolean enabled,
int unitId,
org.osgi.service.cm.ConfigurationAdmin cm,
java.lang.String modbusReference,
java.lang.String modbusId,
int readFromCommonBlockNo)
Make sure to call this method from the inheriting OSGi Component.
|
protected void |
deactivate()
Make sure to call this method from the inheriting OSGi Component.
|
protected void |
onSunSpecInitializationCompleted()
This method is called after the SunSpec initialization was completed.
|
activate, addBlock, defineModbusProtocol, getSunSpecChannel, getSunSpecChannelOrError, getSunSpecModel, isSunSpecInitializationCompleted, mapFirstPointToChannel
activate, activate, getBridgeModbus, getModbusProtocol, getUnitId, m, m, m, m, setModbus, unsetModbus
_channel, 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
getModbusSlaveNatureTable, getPowerPrecision, getStaticConstraints, run
_setActiveChargeEnergy, _setActiveChargeEnergy, _setActiveDischargeEnergy, _setActiveDischargeEnergy, _setActivePower, _setActivePower, _setGridMode, _setMaxApparentPower, _setMaxApparentPower, _setReactivePower, _setReactivePower, getActiveChargeEnergy, getActiveChargeEnergyChannel, getActiveDischargeEnergy, getActiveDischargeEnergyChannel, getActivePower, getActivePowerChannel, getGridMode, getGridModeChannel, getMaxApparentPower, getMaxApparentPowerChannel, getReactivePower, getReactivePowerChannel
_setStartStop, getStartStop, getStartStopChannel, isStarted, isStopped, setStartStop, start, stop
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, logDebug, logError, logInfo, logWarn, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
public AbstractSunSpecBatteryInverter(java.util.Map<SunSpecModel,Priority> activeModels, ChannelId[] firstInitialChannelIds, ChannelId[]... furtherInitialChannelIds) throws OpenemsException
OpenemsException
protected boolean activate(org.osgi.service.component.ComponentContext context, java.lang.String id, java.lang.String alias, boolean enabled, int unitId, org.osgi.service.cm.ConfigurationAdmin cm, java.lang.String modbusReference, java.lang.String modbusId, int readFromCommonBlockNo) throws OpenemsException
activate
in class AbstractOpenemsSunSpecComponent
OpenemsException
- on errorprotected void deactivate()
deactivate
in class AbstractOpenemsModbusComponent
protected void onSunSpecInitializationCompleted()
AbstractOpenemsSunSpecComponent
The purpose of this method is to add mappings between SunSpec Channel-Points to OpenEMS Nature Channels.
onSunSpecInitializationCompleted
in class AbstractOpenemsSunSpecComponent