public class DcPredictiveDelayCharge extends AbstractPredictiveDelayCharge implements Controller, OpenemsComponent
AbstractPredictiveDelayCharge.ChannelId
Controller.ChannelId
Modifier and Type | Field and Description |
---|---|
protected ComponentManager |
componentManager |
protected ConsumptionHourlyPredictor |
consumptionHourlyPredictor |
protected ProductionHourlyPredictor |
productionHourlyPredictor |
Constructor and Description |
---|
DcPredictiveDelayCharge() |
Modifier and Type | Method and Description |
---|---|
protected void |
deactivate()
Handles @Deactivate of implementations.
|
protected ComponentManager |
getComponentManager() |
void |
run()
Executes the Controller logic.
|
activate, activate, getCalculatedPower
_channel, activate, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_setRunFailed, getModbusSlaveNatureTable, getRunFailed, getRunFailedChannel
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, logDebug, logError, logInfo, logWarn, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
protected ComponentManager componentManager
protected ProductionHourlyPredictor productionHourlyPredictor
protected ConsumptionHourlyPredictor consumptionHourlyPredictor
protected void deactivate()
AbstractOpenemsComponent
deactivate
in class AbstractOpenemsComponent
public void run() throws OpenemsError.OpenemsNamedException
Controller
run
in interface Controller
OpenemsError.OpenemsNamedException
- on errorprotected ComponentManager getComponentManager()
getComponentManager
in class AbstractPredictiveDelayCharge