Class Get24HoursPredictionResponse
- java.lang.Object
-
- io.openems.common.jsonrpc.base.JsonrpcMessage
-
- io.openems.common.jsonrpc.base.JsonrpcResponse
-
- io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
-
- io.openems.edge.core.predictormanager.Get24HoursPredictionResponse
-
public class Get24HoursPredictionResponse extends JsonrpcResponseSuccess
Wraps a JSON-RPC Response to "get24HoursPrediction" Request.{ "jsonrpc": "2.0", "id": "UUID", "result": { "componentId/channelId": [ value1, value2,... // 96 values; one value per 15 minutes ] } }
-
-
Field Summary
-
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
-
Constructor Summary
Constructors Constructor Description Get24HoursPredictionResponse(java.util.UUID id, java.util.Map<ChannelAddress,Prediction24Hours> predictions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<ChannelAddress,Prediction24Hours>
getPredictions()
Gets thePrediction24Hours
s perChannelAddress
.com.google.gson.JsonObject
getResult()
Gets the result of thisJsonrpcResponseSuccess
.-
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
from, toJsonObject
-
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponse
from, getId
-
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
toString
-
-
-
-
Constructor Detail
-
Get24HoursPredictionResponse
public Get24HoursPredictionResponse(java.util.UUID id, java.util.Map<ChannelAddress,Prediction24Hours> predictions)
-
-
Method Detail
-
getResult
public com.google.gson.JsonObject getResult()
Description copied from class:JsonrpcResponseSuccess
Gets the result of thisJsonrpcResponseSuccess
.- Specified by:
getResult
in classJsonrpcResponseSuccess
- Returns:
- a JsonObject with the 'result' property of the response
-
getPredictions
public java.util.Map<ChannelAddress,Prediction24Hours> getPredictions()
Gets thePrediction24Hours
s perChannelAddress
.- Returns:
- a map of Predictions
-
-