Class ControllerEssGridOptimizedChargeImpl
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.controller.ess.gridoptimizedcharge.ControllerEssGridOptimizedChargeImpl
- All Implemented Interfaces:
ComponentManagerProvider
,OpenemsComponent
,Controller
,ControllerEssGridOptimizedCharge
,TimedataProvider
public class ControllerEssGridOptimizedChargeImpl
extends AbstractOpenemsComponent
implements ControllerEssGridOptimizedCharge, Controller, OpenemsComponent, TimedataProvider, ComponentManagerProvider
-
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.gridoptimizedcharge.ControllerEssGridOptimizedCharge
ControllerEssGridOptimizedCharge.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
Field Summary
Modifier and TypeFieldDescriptionprotected ComponentManager
protected io.openems.edge.controller.ess.gridoptimizedcharge.Config
protected static final int
Buffer in watt taken into account in the calculation of the first and last time when production is lower or higher than consumption.protected ManagedSymmetricEss
protected ElectricityMeter
protected PredictorManager
protected final RampFilter
protected Sum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Handles @Deactivate of implementations.Gets theComponentManager
service.Gets theTimedata
service.protected void
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, 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.controller.api.Controller
_setRunFailed, getRunFailed, getRunFailedChannel
Methods inherited from interface io.openems.edge.controller.ess.gridoptimizedcharge.ControllerEssGridOptimizedCharge
_setConfiguredEssIsNotManaged, _setDebugDelayChargeMinimumPower, _setDelayChargeLimit, _setDelayChargeLimit, _setDelayChargeState, _setDelayChargeTime, _setDelayChargeTime, _setNoLimitationTime, _setNoLimitationTime, _setPredictedChargeStartEpochSeconds, _setPredictedTargetMinute, _setPredictedTargetMinute, _setPredictedTargetMinuteAdjusted, _setPredictedTargetMinuteAdjusted, _setRawDelayChargeLimit, _setRawDelayChargeLimit, _setRawSellToGridLimitChargeLimit, _setRawSellToGridLimitChargeLimit, _setSellToGridLimitMinimumChargeLimit, _setSellToGridLimitMinimumChargeLimit, _setSellToGridLimitState, _setSellToGridLimitTime, _setSellToGridLimitTime, _setStartEpochSeconds, _setStartEpochSeconds, _setTargetMinute, _setTargetMinute, getConfiguredEssIsNotManaged, getConfiguredEssIsNotManagedChannel, getDebugDelayChargeMinimumPower, getDebugDelayChargeMinimumPowerChannel, getDelayChargeLimit, getDelayChargeLimitChannel, getDelayChargeState, getDelayChargeStateChannel, getDelayChargeTime, getDelayChargeTimeChannel, getNoLimitationTime, getNoLimitationTimeChannel, getPredictedChargeStartEpochSeconds, getPredictedChargeStartEpochSecondsChannel, getPredictedTargetMinute, getPredictedTargetMinuteAdjusted, getPredictedTargetMinuteAdjustedChannel, getPredictedTargetMinuteChannel, getRawDelayChargeLimit, getRawDelayChargeLimitChannel, getRawSellToGridLimitChargeLimit, getRawSellToGridLimitChargeLimitChannel, getSellToGridLimitMinimumChargeLimit, getSellToGridLimitMinimumChargeLimitChannel, getSellToGridLimitState, getSellToGridLimitStateChannel, getSellToGridLimitTime, getSellToGridLimitTimeChannel, getStartEpochSeconds, getStartEpochSecondsChannel, getTargetMinute, getTargetMinuteChannel
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 Details
-
DEFAULT_POWER_BUFFER
protected static final int DEFAULT_POWER_BUFFERBuffer in watt taken into account in the calculation of the first and last time when production is lower or higher than consumption.- See Also:
-
rampFilter
-
config
protected io.openems.edge.controller.ess.gridoptimizedcharge.Config config -
sum
-
componentManager
-
predictorManager
-
ess
-
meter
-
-
Constructor Details
-
ControllerEssGridOptimizedChargeImpl
public ControllerEssGridOptimizedChargeImpl()
-
-
Method Details
-
deactivate
protected void deactivate()Description copied from class:AbstractOpenemsComponent
Handles @Deactivate of implementations. Prints log output.- Overrides:
deactivate
in classAbstractOpenemsComponent
-
run
Description copied from interface:Controller
Executes the Controller logic.- Specified by:
run
in interfaceController
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
logDebug
-
getComponentManager
Description copied from interface:ComponentManagerProvider
Gets theComponentManager
service.- Specified by:
getComponentManager
in interfaceComponentManagerProvider
- Returns:
- the service or null if it is not (yet) available.
-
getTimedata
Description copied from interface:TimedataProvider
Gets theTimedata
service.- Specified by:
getTimedata
in interfaceTimedataProvider
- Returns:
- the service or null if it is not (yet) available.
-