Class EssGridconOnOffGrid
- java.lang.Object
-
- io.openems.edge.common.component.AbstractOpenemsComponent
-
- io.openems.edge.ess.mr.gridcon.EssGridcon
-
- io.openems.edge.ess.mr.gridcon.onoffgrid.EssGridconOnOffGrid
-
- All Implemented Interfaces:
OpenemsComponent
,ModbusSlave
,ManagedSymmetricEss
,SymmetricEss
,org.osgi.service.event.EventHandler
public class EssGridconOnOffGrid extends EssGridcon implements ManagedSymmetricEss, SymmetricEss, ModbusSlave, OpenemsComponent, org.osgi.service.event.EventHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.openems.edge.ess.api.ManagedSymmetricEss
ManagedSymmetricEss.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.ess.api.SymmetricEss
SymmetricEss.ChannelId
-
-
Field Summary
Fields Modifier and Type Field Description protected ComponentManager
componentManager
-
Fields inherited from class io.openems.edge.ess.mr.gridcon.EssGridcon
gridconStateObject, mainStateObject, MAX_CURRENT_PER_STRING, stateController
-
-
Constructor Summary
Constructors Constructor Description EssGridconOnOffGrid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
calculateGridMode()
protected void
checkConfiguration(io.openems.edge.ess.mr.gridcon.onoffgrid.Config config)
protected void
deactivate()
Handles @Deactivate of implementations.protected ComponentManager
getComponentManager()
protected StateObject
getFirstGeneralStateObjectUndefined()
Power
getPower()
Gets an instance of the 'Power' class, which allows to set limitations to Active and Reactive Power.void
handleEvent(org.osgi.service.event.Event event)
protected void
initializeStateController(java.lang.String gridconPcs, java.lang.String b1, java.lang.String b2, java.lang.String b3)
protected void
writeStateMachineToChannel()
-
Methods inherited from class io.openems.edge.ess.mr.gridcon.EssGridcon
activate, applyPower, calculateActiveAndReactivePower, calculateAllowedPower, calculateCapacity, calculateSoc, debugLog, getBatteries, getModbusSlaveTable, getPowerPrecision, getStaticConstraints
-
Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, activate, activate, addChannel, addChannels, addChannels, alias, channels, 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.ess.api.ManagedSymmetricEss
_setAllowedChargePower, _setAllowedChargePower, _setAllowedDischargePower, _setAllowedDischargePower, _setApplyPowerFailed, _setDebugSetActivePower, _setDebugSetActivePower, _setDebugSetReactivePower, _setDebugSetReactivePower, addPowerConstraint, addPowerConstraintAndValidate, applyPower, createPowerConstraint, getAllowedChargePower, getAllowedChargePowerChannel, getAllowedDischargePower, getAllowedDischargePowerChannel, getApplyPowerFailed, getApplyPowerFailedChannel, getDebugSetActivePower, getDebugSetActivePowerChannel, getDebugSetReactivePower, getDebugSetReactivePowerChannel, getPowerPrecision, getSetActivePowerEqualsChannel, getSetActivePowerEqualsWithPidChannel, getSetActivePowerGreaterOrEqualsChannel, getSetActivePowerLessOrEqualsChannel, getSetReactivePowerEqualsChannel, getSetReactivePowerGreaterOrEqualsChannel, getSetReactivePowerLessOrEqualsChannel, getStaticConstraints, isManaged, setActivePowerEquals, setActivePowerEqualsWithPid, setActivePowerGreaterOrEquals, setActivePowerLessOrEquals, setReactivePowerEquals, setReactivePowerGreaterOrEquals, setReactivePowerLessOrEquals
-
Methods inherited from interface io.openems.edge.common.modbusslave.ModbusSlave
getModbusSlaveTable
-
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.ess.api.SymmetricEss
_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
-
-
-
-
Field Detail
-
componentManager
protected ComponentManager componentManager
-
-
Method Detail
-
deactivate
protected void deactivate()
Description copied from class:AbstractOpenemsComponent
Handles @Deactivate of implementations. Prints log output.- Overrides:
deactivate
in classEssGridcon
-
handleEvent
public void handleEvent(org.osgi.service.event.Event event)
- Specified by:
handleEvent
in interfaceorg.osgi.service.event.EventHandler
- Overrides:
handleEvent
in classEssGridcon
-
calculateGridMode
protected void calculateGridMode() throws java.lang.IllegalArgumentException, OpenemsError.OpenemsNamedException
- Specified by:
calculateGridMode
in classEssGridcon
- Throws:
java.lang.IllegalArgumentException
OpenemsError.OpenemsNamedException
-
writeStateMachineToChannel
protected void writeStateMachineToChannel()
- Specified by:
writeStateMachineToChannel
in classEssGridcon
-
checkConfiguration
protected void checkConfiguration(io.openems.edge.ess.mr.gridcon.onoffgrid.Config config) throws OpenemsException
- Throws:
OpenemsException
-
getPower
public Power getPower()
Description copied from interface:ManagedSymmetricEss
Gets an instance of the 'Power' class, which allows to set limitations to Active and Reactive Power.- Specified by:
getPower
in interfaceManagedSymmetricEss
- Returns:
- the Power instance
-
getComponentManager
protected ComponentManager getComponentManager()
- Specified by:
getComponentManager
in classEssGridcon
-
getFirstGeneralStateObjectUndefined
protected StateObject getFirstGeneralStateObjectUndefined()
- Specified by:
getFirstGeneralStateObjectUndefined
in classEssGridcon
-
initializeStateController
protected void initializeStateController(java.lang.String gridconPcs, java.lang.String b1, java.lang.String b2, java.lang.String b3)
- Specified by:
initializeStateController
in classEssGridcon
-
-