Class DummyPredictor
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.predictor.api.prediction.AbstractPredictor
io.openems.edge.predictor.api.test.DummyPredictor
- All Implemented Interfaces:
OpenemsComponent
,Predictor
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
Constructor Summary
ConstructorDescriptionDummyPredictor
(String id, ClockProvider clockProvider, Prediction prediction, ChannelAddress... channelAddresses) DummyPredictor
(String id, ClockProvider clockProvider, Prediction prediction, String... channelAddresses) -
Method Summary
Modifier and TypeMethodDescriptionprotected Prediction
createNewPrediction
(ChannelAddress channelAddress) protected ClockProvider
void
setPrediction
(Prediction prediction) Methods inherited from class io.openems.edge.predictor.api.prediction.AbstractPredictor
activate, activate, getChannelAddresses, getPrediction
Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, 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
Methods inherited from interface io.openems.edge.predictor.api.prediction.Predictor
getChannelAddresses, getPrediction
-
Constructor Details
-
DummyPredictor
public DummyPredictor(String id, ClockProvider clockProvider, Prediction prediction, ChannelAddress... channelAddresses) throws OpenemsError.OpenemsNamedException -
DummyPredictor
public DummyPredictor(String id, ClockProvider clockProvider, Prediction prediction, String... channelAddresses) throws OpenemsError.OpenemsNamedException
-
-
Method Details
-
setPrediction
-
getClockProvider
- Specified by:
getClockProvider
in classAbstractPredictor
-
createNewPrediction
- Specified by:
createNewPrediction
in classAbstractPredictor
-