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< PredictionResult > dispatchPredictions (const std::vector< PredictionRequest > &requests)
 Resolves mapping of requests to predictors and dispatches them.
 
PredictionResult dispatchTargetedPrediction (const PredictionRequest &request, const MemoryID &target)
 Dispatches a single prediction request (assuming resolution was done by the caller).
 
 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.

Constructor & Destructor Documentation

◆ Prediction()

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

Member Function Documentation

◆ addPredictor()

template<class DerivedT>
void addPredictor ( const PredictionEngine & engine,
Predictor && predictor )
inline

◆ dispatchPredictions()

template<class DerivedT>
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.

◆ dispatchTargetedPrediction()

template<class DerivedT>
PredictionResult dispatchTargetedPrediction ( const PredictionRequest & request,
const MemoryID & target )
inline

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

◆ setPredictors()

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

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