Class EmergencyCapacityReserveImpl
- java.lang.Object
-
- io.openems.edge.common.component.AbstractOpenemsComponent
-
- io.openems.edge.controller.ess.emergencycapacityreserve.EmergencyCapacityReserveImpl
-
- All Implemented Interfaces:
OpenemsComponent
,Controller
,EmergencyCapacityReserve
public class EmergencyCapacityReserveImpl extends AbstractOpenemsComponent implements EmergencyCapacityReserve, Controller, OpenemsComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.openems.edge.controller.api.Controller
Controller.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.controller.ess.emergencycapacityreserve.EmergencyCapacityReserve
EmergencyCapacityReserve.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
-
Field Summary
Fields Modifier and Type Field Description protected ComponentManager
componentManager
-
Constructor Summary
Constructors Constructor Description EmergencyCapacityReserveImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deactivate()
Handles @Deactivate of implementations.protected void
modified(org.osgi.service.component.ComponentContext context, java.lang.String id, java.lang.String alias, boolean enabled)
Handles @Modified of implementations.void
run()
Executes the Controller logic.-
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, 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.controller.api.Controller
_setRunFailed, getRunFailed, getRunFailedChannel
-
Methods inherited from interface io.openems.edge.controller.ess.emergencycapacityreserve.EmergencyCapacityReserve
_setActualReserveSoc, _setDebugRampPower, _setDebugRampPower, _setDebugSetActivePowerLessOrEquals, _setDebugSetActivePowerLessOrEquals, _setDebugTargetPower, _setDebugTargetPower, _setRangeOfReserveSocOutsideAllowedValue, _setStateMachine, getActualReserveSoc, getActualReserveSocChannel, getDebugRampPower, getDebugRampPowerChannel, getDebugSetActivePowerLessOrEquals, getDebugSetActivePowerLessOrEqualsChannel, getDebugTargetPower, getDebugTargetPowerChannel, getStateMachine, getStateMachineChannel
-
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
-
-
-
-
Field Detail
-
componentManager
protected ComponentManager componentManager
-
-
Method Detail
-
modified
protected void modified(org.osgi.service.component.ComponentContext context, java.lang.String id, java.lang.String alias, boolean enabled)
Description copied from class:AbstractOpenemsComponent
Handles @Modified of implementations.- Overrides:
modified
in classAbstractOpenemsComponent
- Parameters:
context
- the OSGi ComponentContextid
- the unique OpenEMS Component IDalias
- Human-readable name of this Component. Typically 'config.alias()'. Defaults to 'id' if emptyenabled
- is the Component enabled?
-
deactivate
protected void deactivate()
Description copied from class:AbstractOpenemsComponent
Handles @Deactivate of implementations. Prints log output.- Overrides:
deactivate
in classAbstractOpenemsComponent
-
run
public void run() throws OpenemsError.OpenemsNamedException
Description copied from interface:Controller
Executes the Controller logic.- Specified by:
run
in interfaceController
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
-