Prediction< DerivedT > Class Template Reference

Can do predictions, but has no children it could delegate predictions to. More...

#include <RobotAPI/libraries/armem/server/wm/detail/Prediction.h>

+ Inheritance diagram for Prediction< DerivedT >:

Public Member Functions

void addPredictor (const PredictionEngine &engine, Predictor &&predictor)
 
std::vector< PredictionResultdispatchPredictions (const std::vector< PredictionRequest > &requests)
 Resolves mapping of requests to predictors and dispatches them. More...
 
PredictionResult dispatchTargetedPrediction (const PredictionRequest &request, const MemoryID &target)
 Dispatches a single prediction request (assuming resolution was done by the caller). More...
 
 Prediction (const std::map< PredictionEngine, Predictor > &predictors={})
 
void setPredictors (const std::map< PredictionEngine, Predictor > &predictors)
 

Detailed Description

template<class DerivedT>
class armarx::armem::server::wm::detail::Prediction< DerivedT >

Can do predictions, but has no children it could delegate predictions to.

This class is integrated with armem::base::detail::Predictive: If DerivedT is also a Predictive, the setters of this class also update the Predictive part.

Definition at line 52 of file Prediction.h.

Constructor & Destructor Documentation

◆ Prediction()

Prediction ( const std::map< PredictionEngine, Predictor > &  predictors = {})
inlineexplicit

Definition at line 62 of file Prediction.h.

Member Function Documentation

◆ addPredictor()

void addPredictor ( const PredictionEngine engine,
Predictor &&  predictor 
)
inline

Definition at line 68 of file Prediction.h.

+ Here is the caller graph for this function:

◆ dispatchPredictions()

std::vector<PredictionResult> dispatchPredictions ( const std::vector< PredictionRequest > &  requests)
inline

Resolves mapping of requests to predictors and dispatches them.

In this case, the resolution is basically no-op because there are no children.

Definition at line 99 of file Prediction.h.

◆ dispatchTargetedPrediction()

PredictionResult dispatchTargetedPrediction ( const PredictionRequest request,
const MemoryID target 
)
inline

Dispatches a single prediction request (assuming resolution was done by the caller).

Definition at line 114 of file Prediction.h.

+ Here is the caller graph for this function:

◆ setPredictors()

void setPredictors ( const std::map< PredictionEngine, Predictor > &  predictors)
inline

Definition at line 79 of file Prediction.h.


The documentation for this class was generated from the following file: