Class DummyPredictorManager
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.common.test.AbstractDummyOpenemsComponent<DummyPredictorManager>
io.openems.edge.predictor.api.test.DummyPredictorManager
- All Implemented Interfaces:
OpenemsComponent
,PredictorManager
public class DummyPredictorManager
extends AbstractDummyOpenemsComponent<DummyPredictorManager>
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPredictor
(Predictor predictor) Add aPredictor
.getPrediction
(ChannelAddress channelAddress) protected DummyPredictorManager
self()
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 Details
-
DummyPredictorManager
-
-
Method Details
-
self
- Specified by:
self
in classAbstractDummyOpenemsComponent<DummyPredictorManager>
-
addPredictor
Add aPredictor
.- Parameters:
predictor
- thePredictor
-
getPrediction
Description copied from interface:PredictorManager
- Specified by:
getPrediction
in interfacePredictorManager
- Parameters:
channelAddress
- theChannelAddress
- Returns:
- the
Prediction
;Prediction.EMPTY_PREDICTION
if no Predictor matches the Channel-Address
-