Hybrid Query Processing Engine for Coprocessing in Database Systems
HyPE
loadchange_estimator.hpp
Go to the documentation of this file.
00001 /***********************************************************************************************************
00002  Copyright (c) 2012, Sebastian Breß, Otto-von-Guericke University of Magdeburg, Germany. All rights reserved.
00003  This program and accompanying materials are made available under the terms of the 
00004  GNU LESSER GENERAL PUBLIC LICENSE - Version 3, http://www.gnu.org/licenses/lgpl-3.0.txt
00005 ***********************************************************************************************************/
00006 //default includes
00007 #include <iostream>
00008 //HyPE includes
00009 #include <core/measurementpair.hpp>
00010 //boost includes
00011 #include <boost/circular_buffer.hpp>
00012 
00013 namespace hype{
00014    namespace core{
00015 
00016       class LoadChangeEstimator{
00017          public:
00018             LoadChangeEstimator(unsigned int size_of_circular_buffer=10);
00019 
00020             double getLoadModificator() const throw();
00021 
00022             void add(const MeasurementPair& mp) throw();
00023 
00024          private:
00025             boost::circular_buffer<double> last_load_factors_;
00026 
00027       };
00028 
00029    }; //end namespace core
00030 }; //end namespace hype
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines