Class MrGridconOnOffgridImpl
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.ess.mr.gridcon.EssGridcon
io.openems.edge.ess.mr.gridcon.onoffgrid.MrGridconOnOffgridImpl
- All Implemented Interfaces:
OpenemsComponent
,ModbusSlave
,ManagedSymmetricEss
,SymmetricEss
,MrGridconOnOffgrid
,org.osgi.service.event.EventHandler
public class MrGridconOnOffgridImpl
extends EssGridcon
implements MrGridconOnOffgrid, 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.ess.mr.gridcon.onoffgrid.MrGridconOnOffgrid
MrGridconOnOffgrid.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 inherited from class io.openems.edge.ess.mr.gridcon.EssGridcon
gridconStateObject, mainStateObject, MAX_CURRENT_PER_STRING, stateController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
checkConfiguration
(io.openems.edge.ess.mr.gridcon.onoffgrid.Config config) protected void
Handles @Deactivate of implementations.protected ComponentManager
protected StateObject
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
(String gridconPcs, String b1, String b2, String b3) protected void
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
-
Constructor Details
-
MrGridconOnOffgridImpl
public MrGridconOnOffgridImpl()
-
-
Method Details
-
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 IllegalArgumentException, OpenemsError.OpenemsNamedException- Specified by:
calculateGridMode
in classEssGridcon
- Throws:
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
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
- Specified by:
getComponentManager
in classEssGridcon
-
getFirstGeneralStateObjectUndefined
- Specified by:
getFirstGeneralStateObjectUndefined
in classEssGridcon
-
initializeStateController
- Specified by:
initializeStateController
in classEssGridcon
-