public class GenericManagedSymmetricEssImpl extends AbstractOpenemsComponent implements GenericManagedSymmetricEss, ManagedSymmetricEss, SymmetricEss, OpenemsComponent, org.osgi.service.event.EventHandler, StartStoppable, ModbusSlave
GenericManagedSymmetricEss.ChannelId
EFFICIENCY_FACTOR, RETRY_COMMAND_MAX_ATTEMPTS, RETRY_COMMAND_SECONDS
POWER_DOC_TEXT
Constructor and Description |
---|
GenericManagedSymmetricEssImpl() |
Modifier and Type | Method and Description |
---|---|
void |
applyPower(int activePower,
int reactivePower)
Forwards the power request to the
SymmetricBatteryInverter . |
protected void |
deactivate()
Handles @Deactivate of implementations.
|
java.lang.String |
debugLog()
Gets some output that is suitable for a continuous Debug log.
|
ModbusSlaveTable |
getModbusSlaveTable(AccessMode accessMode)
Gets the Modbus-Slave-Table for this OpenEMS-Component.
|
Power |
getPower()
Gets an instance of the 'Power' class, which allows to set limitations to
Active and Reactive Power.
|
int |
getPowerPrecision()
Retrieves PowerPrecision from
SymmetricBatteryInverter . |
StartStop |
getStartStopTarget()
Gets the target Start/Stop mode from config or StartStop-Channel.
|
Constraint[] |
getStaticConstraints()
Retrieves StaticConstraints from
SymmetricBatteryInverter . |
void |
handleEvent(org.osgi.service.event.Event event) |
void |
setStartStop(StartStop value)
Starts or stops the device or service represented by this OpenEMS Component.
|
_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
_setMaxBatteryInverterStartAttemptsFault, _setMaxBatteryInverterStopAttemptsFault, _setMaxBatteryStartAttemptsFault, _setMaxBatteryStopAttemptsFault, getMaxBatteryInverterStartAttemptsFault, getMaxBatteryInverterStartAttemptsFaultChannel, getMaxBatteryInverterStopAttemptsFault, getMaxBatteryInverterStopAttemptsFaultChannel, getMaxBatteryStartAttemptsFault, getMaxBatteryStartAttemptsFaultChannel, getMaxBatteryStopAttemptsFault, getMaxBatteryStopAttemptsFaultChannel
_setAllowedChargePower, _setAllowedChargePower, _setAllowedDischargePower, _setAllowedDischargePower, _setApplyPowerFailed, _setDebugSetActivePower, _setDebugSetActivePower, _setDebugSetReactivePower, _setDebugSetReactivePower, addPowerConstraint, addPowerConstraintAndValidate, createPowerConstraint, getAllowedChargePower, getAllowedChargePowerChannel, getAllowedDischargePower, getAllowedDischargePowerChannel, getApplyPowerFailed, getApplyPowerFailedChannel, getDebugSetActivePower, getDebugSetActivePowerChannel, getDebugSetReactivePower, getDebugSetReactivePowerChannel, getModbusSlaveNatureTable, getSetActivePowerEqualsChannel, getSetActivePowerEqualsWithPidChannel, getSetActivePowerGreaterOrEqualsChannel, getSetActivePowerLessOrEqualsChannel, getSetReactivePowerEqualsChannel, getSetReactivePowerGreaterOrEqualsChannel, getSetReactivePowerLessOrEqualsChannel, setActivePowerEquals, setActivePowerEqualsWithPid, setActivePowerGreaterOrEquals, setActivePowerLessOrEquals, setReactivePowerEquals, setReactivePowerGreaterOrEquals, setReactivePowerLessOrEquals
_setActiveChargeEnergy, _setActiveChargeEnergy, _setActiveDischargeEnergy, _setActiveDischargeEnergy, _setActivePower, _setActivePower, _setCapacity, _setCapacity, _setGridMode, _setMaxApparentPower, _setMaxApparentPower, _setMaxCellTemperature, _setMaxCellTemperature, _setMaxCellVoltage, _setMaxCellVoltage, _setMinCellTemperature, _setMinCellTemperature, _setMinCellVoltage, _setMinCellVoltage, _setReactivePower, _setReactivePower, _setSoc, _setSoc, getActiveChargeEnergy, getActiveChargeEnergyChannel, getActiveDischargeEnergy, getActiveDischargeEnergyChannel, getActivePower, getActivePowerChannel, getCapacity, getCapacityChannel, getGridMode, getGridModeChannel, getMaxApparentPower, getMaxApparentPowerChannel, getMaxCellTemperature, getMaxCellTemperatureChannel, getMaxCellVoltage, getMaxCellVoltageChannel, getMinCellTemperature, getMinCellTemperatureChannel, getMinCellVoltage, getMinCellVoltageChannel, getReactivePower, getReactivePowerChannel, getSoc, getSocChannel
_channel, _getChannelAs, alias, channel, channel, channels, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, logDebug, logError, logInfo, logWarn, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
_setStartStop, getModbusSlaveNatureTable, getStartStop, getStartStopChannel, isStarted, isStopped, start, stop
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 java.lang.String debugLog()
OpenemsComponent
debugLog
in interface OpenemsComponent
public Power getPower()
ManagedSymmetricEss
getPower
in interface ManagedSymmetricEss
public void applyPower(int activePower, int reactivePower) throws OpenemsError.OpenemsNamedException
SymmetricBatteryInverter
.
Apply the calculated Power.
Careful: do not adjust activePower and reactivePower in this method, e.g.
setting it to zero on error. The purpose of this method is solely to apply
the calculated power to the ESS. If you need to constrain the allowed power,
add Constraints using the ManagedSymmetricEss.getStaticConstraints()
method.
applyPower
in interface ManagedSymmetricEss
activePower
- the active power in [W]reactivePower
- the reactive power in [var]OpenemsError.OpenemsNamedException
- on error; causes activation of
APPLY_POWER_FAILED StateChannelpublic int getPowerPrecision()
SymmetricBatteryInverter
.
Gets the smallest positive power that can be set (in W, VA or var). Example:
getPowerPrecision
in interface ManagedSymmetricEss
public Constraint[] getStaticConstraints() throws OpenemsError.OpenemsNamedException
SymmetricBatteryInverter
.
Gets static Constraints for this Ess. Override this method to provide
specific Constraints for this Ess on every Cycle.getStaticConstraints
in interface ManagedSymmetricEss
OpenemsException
- on errorOpenemsError.OpenemsNamedException
public void setStartStop(StartStop value)
StartStoppable
setStartStop
in interface StartStoppable
value
- target StartStop
statepublic StartStop getStartStopTarget()
GenericManagedSymmetricEss
getStartStopTarget
in interface GenericManagedSymmetricEss
StartStop
public ModbusSlaveTable getModbusSlaveTable(AccessMode accessMode)
ModbusSlave
getModbusSlaveTable
in interface ModbusSlave
getModbusSlaveTable
in interface GenericManagedSymmetricEss
accessMode
- filters the Modbus-Records that should be shown