public abstract class AbstractPredictiveDelayCharge extends AbstractOpenemsComponent implements OpenemsComponent
Modifier and Type | Class and Description |
---|---|
static class |
AbstractPredictiveDelayCharge.ChannelId |
Modifier | Constructor and Description |
---|---|
protected |
AbstractPredictiveDelayCharge() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context,
java.lang.String id,
java.lang.String alias) |
protected void |
activate(org.osgi.service.component.ComponentContext context,
java.lang.String id,
java.lang.String alias,
boolean enabled,
java.lang.String meterId,
int noOfBufferHours,
boolean debugMode)
Abstract activator.
|
java.lang.Integer |
getCalculatedPower(ManagedSymmetricEss ess,
ProductionHourlyPredictor productionHourlyPredictor,
ConsumptionHourlyPredictor consumptionHourlyPredictor,
ComponentManager componentManager)
Calculates the charging power limit for the current cycle.
|
protected abstract ComponentManager |
getComponentManager() |
_channel, activate, addChannel, addChannels, addChannels, alias, channels, deactivate, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getModbusSlaveNatureTable, getState, getStateChannel, hasFaults, id, isEnabled, logDebug, logError, logInfo, logWarn, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
protected void activate(org.osgi.service.component.ComponentContext context, java.lang.String id, java.lang.String alias)
protected void activate(org.osgi.service.component.ComponentContext context, java.lang.String id, java.lang.String alias, boolean enabled, java.lang.String meterId, int noOfBufferHours, boolean debugMode)
context
- the Bundle contextid
- the Component-IDalias
- the Component Aliasenabled
- is the Component enabled?meterId
- the Meter-IDnoOfBufferHours
- the number of buffer hours to make sure the battery
still charges full, even on prediction errorspublic java.lang.Integer getCalculatedPower(ManagedSymmetricEss ess, ProductionHourlyPredictor productionHourlyPredictor, ConsumptionHourlyPredictor consumptionHourlyPredictor, ComponentManager componentManager) throws OpenemsError.OpenemsNamedException
productionHourlyPredictor
- the ProductionHourlyPredictor
consumptionHourlyPredictor
- the ConsumptionHourlyPredictor
componentManager
- the ComponentManager
OpenemsError.OpenemsNamedException
- on errorprotected abstract ComponentManager getComponentManager()