Class DummyPredictorManager
- java.lang.Object
-
- io.openems.edge.common.component.AbstractOpenemsComponent
-
- io.openems.edge.predictor.api.test.DummyPredictorManager
-
- All Implemented Interfaces:
OpenemsComponent
,PredictorManager
public class DummyPredictorManager extends AbstractOpenemsComponent implements PredictorManager, OpenemsComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.predictor.api.manager.PredictorManager
PredictorManager.ChannelId
-
-
Field Summary
-
Fields inherited from interface io.openems.edge.predictor.api.manager.PredictorManager
SINGLETON_COMPONENT_ID, SINGLETON_SERVICE_PID
-
-
Constructor Summary
Constructors Constructor Description DummyPredictorManager(Predictor24Hours... predictors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPredictor(Predictor24Hours predictor)
Add aPredictor24Hours
.Prediction24Hours
get24HoursPrediction(ChannelAddress channelAddress)
-
Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, activate, activate, addChannel, addChannels, addChannels, alias, channels, deactivate, 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.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
-
-
-
Constructor Detail
-
DummyPredictorManager
public DummyPredictorManager(Predictor24Hours... predictors)
-
-
Method Detail
-
addPredictor
public void addPredictor(Predictor24Hours predictor)
Add aPredictor24Hours
.- Parameters:
predictor
- thePredictor24Hours
-
get24HoursPrediction
public Prediction24Hours get24HoursPrediction(ChannelAddress channelAddress)
Description copied from interface:PredictorManager
- Specified by:
get24HoursPrediction
in interfacePredictorManager
- Parameters:
channelAddress
- theChannelAddress
- Returns:
- the
Prediction24Hours
- all values null if no Predictor matches the Channel-Address
-
-