Hybrid Query Processing Engine for Coprocessing in Database Systems
HyPE
|
An AlgorithmSpecification specifies all relevant information about an algorithm, such as the algorithm's name or the name of the operation the algorithms belongs to. More...
#include <specification.hpp>
Public Member Functions | |
AlgorithmSpecification (const std::string &alg_name, const std::string &op_name, StatisticalMethod stat_meth=Least_Squares_1D, RecomputationHeuristic recomp_heur=Periodic, OptimizationCriterion opt_crit=Runtime_Configuration::instance().getDefaultOptimizationCriterion()) | |
constructs an AlgorithmSpecification object by assigning necessary informations to all fields of the object | |
const std::string & | getAlgorithmName () const throw () |
returns the algorithm's name | |
const std::string & | getOperationName () const throw () |
returns the name of the operation the algorithm belongs to | |
const std::string | getStatisticalMethodName () const throw () |
returns the name of the statistical method that is used for the algorithm | |
const std::string | getRecomputationHeuristicName () const throw () |
returns the name of the recomputation heuristic that is used for the algorithm | |
const std::string | getOptimizationCriterionName () const throw () |
returns the name of the optimization criterion of the operation the algorithm belongs to | |
Private Attributes | |
std::string | alg_name_ |
the algorithm's name | |
std::string | op_name_ |
name of the operation the algorithm belongs to | |
StatisticalMethod | stat_meth_ |
the statistical method that is used for the algorithm | |
RecomputationHeuristic | recomp_heur_ |
the recomputation heuristic that is used for the algorithm | |
OptimizationCriterion | opt_crit_ |
the optimization criterion of the operation the algorithm belongs to |
Definition at line 24 of file specification.hpp.
hype::core::AlgorithmSpecification::AlgorithmSpecification | ( | const std::string & | alg_name, |
const std::string & | op_name, | ||
StatisticalMethod | stat_meth = Least_Squares_1D , |
||
RecomputationHeuristic | recomp_heur = Periodic , |
||
OptimizationCriterion | opt_crit = Runtime_Configuration::instance().getDefaultOptimizationCriterion() |
||
) |
alg_name | name of the algorithm |
op_name | name of the operation the algorithms belongs to |
stat_meth | the statistical method used for learning the algorithms behavior (optional) |
recomp_heur | the recomputation heuristic used for adapting the algorithms approximation function (optional) |
opt_crit | the optimization criterion of the operation the algorithm belongs to (optional) |
Definition at line 22 of file specification.cpp.
const std::string & hype::core::AlgorithmSpecification::getAlgorithmName | ( | ) | const throw () |
Definition at line 37 of file specification.cpp.
References alg_name_.
Referenced by hype::core::Scheduler::addAlgorithm().
const std::string & hype::core::AlgorithmSpecification::getOperationName | ( | ) | const throw () |
Definition at line 42 of file specification.cpp.
References op_name_.
Referenced by hype::core::Scheduler::addAlgorithm().
const std::string hype::core::AlgorithmSpecification::getOptimizationCriterionName | ( | ) | const throw () |
Definition at line 47 of file specification.cpp.
References hype::util::getName(), and opt_crit_.
const std::string hype::core::AlgorithmSpecification::getRecomputationHeuristicName | ( | ) | const throw () |
Definition at line 52 of file specification.cpp.
References hype::util::getName(), and recomp_heur_.
Referenced by hype::core::Scheduler::addAlgorithm().
const std::string hype::core::AlgorithmSpecification::getStatisticalMethodName | ( | ) | const throw () |
Definition at line 57 of file specification.cpp.
References hype::util::getName(), and stat_meth_.
Referenced by hype::core::Scheduler::addAlgorithm().
std::string hype::core::AlgorithmSpecification::alg_name_ [private] |
Definition at line 60 of file specification.hpp.
Referenced by getAlgorithmName().
std::string hype::core::AlgorithmSpecification::op_name_ [private] |
Definition at line 62 of file specification.hpp.
Referenced by getOperationName().
Definition at line 68 of file specification.hpp.
Referenced by getOptimizationCriterionName().
Definition at line 66 of file specification.hpp.
Referenced by getRecomputationHeuristicName().
Definition at line 64 of file specification.hpp.
Referenced by getStatisticalMethodName().