Class GridOptimizedChargeImpl
- java.lang.Object
-
- io.openems.edge.common.component.AbstractOpenemsComponent
-
- io.openems.edge.controller.ess.gridoptimizedcharge.GridOptimizedChargeImpl
-
- All Implemented Interfaces:
ComponentManagerProvider
,OpenemsComponent
,Controller
,GridOptimizedCharge
,TimedataProvider
public class GridOptimizedChargeImpl extends AbstractOpenemsComponent implements GridOptimizedCharge, 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.GridOptimizedCharge
GridOptimizedCharge.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
protected io.openems.edge.controller.ess.gridoptimizedcharge.Config
config
protected static int
DEFAULT_POWER_BUFFER
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
ess
protected SymmetricMeter
meter
protected PredictorManager
predictorManager
protected RampFilter
rampFilter
protected Sum
sum
-
Constructor Summary
Constructors Constructor Description GridOptimizedChargeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deactivate()
Handles @Deactivate of implementations.ComponentManager
getComponentManager()
Gets theComponentManager
service.Timedata
getTimedata()
Gets theTimedata
service.protected void
logDebug(java.lang.String message)
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.GridOptimizedCharge
_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 Detail
-
config
protected io.openems.edge.controller.ess.gridoptimizedcharge.Config config
-
DEFAULT_POWER_BUFFER
protected static final int DEFAULT_POWER_BUFFER
Buffer in watt taken into account in the calculation of the first and last time when production is lower or higher than consumption.- See Also:
- Constant Field Values
-
rampFilter
protected final RampFilter rampFilter
-
sum
protected Sum sum
-
predictorManager
protected PredictorManager predictorManager
-
componentManager
protected ComponentManager componentManager
-
ess
protected ManagedSymmetricEss ess
-
meter
protected SymmetricMeter meter
-
-
Method Detail
-
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
-
logDebug
protected void logDebug(java.lang.String message)
-
getComponentManager
public ComponentManager 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
public Timedata 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.
-
-