Hybrid Query Processing Engine for Coprocessing in Database Systems
HyPE
hype::core::AlgorithmSpecification Class Reference

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>

Collaboration diagram for hype::core::AlgorithmSpecification:

List of all members.

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

Detailed Description

Author:
Sebastian Breß
Version:
0.2
Date:
2013
Examples:
online_learning.cpp, and online_learning_manual_time_measurement.cpp.

Definition at line 24 of file specification.hpp.


Constructor & Destructor Documentation

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() 
)
Parameters:
alg_namename of the algorithm
op_namename of the operation the algorithms belongs to
stat_meththe statistical method used for learning the algorithms behavior (optional)
recomp_heurthe recomputation heuristic used for adapting the algorithms approximation function (optional)
opt_critthe optimization criterion of the operation the algorithm belongs to (optional)

Definition at line 22 of file specification.cpp.


Member Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

Definition at line 47 of file specification.cpp.

References hype::util::getName(), and opt_crit_.

Here is the call graph for this function:

Definition at line 52 of file specification.cpp.

References hype::util::getName(), and recomp_heur_.

Referenced by hype::core::Scheduler::addAlgorithm().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 57 of file specification.cpp.

References hype::util::getName(), and stat_meth_.

Referenced by hype::core::Scheduler::addAlgorithm().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 60 of file specification.hpp.

Referenced by getAlgorithmName().

Definition at line 62 of file specification.hpp.

Referenced by getOperationName().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines