Fawkes API  Fawkes Development Version
execution_time_estimator_thread.h
1 /***************************************************************************
2  * execution_time_estimator_thread.h - Estimate execution times
3  *
4  * Created: Thu 23 Apr 2020 17:07:11 CEST 17:07
5  * Copyright 2020 Till Hofmann <hofmann@kbsg.rwth-aachen.de>
6  ****************************************************************************/
7 
8 /* This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Library General Public License for more details.
17  *
18  * Read the full text in the LICENSE.GPL file in the doc directory.
19  */
20 
21 #pragma once
22 
23 #include <aspect/aspect_provider.h>
24 #include <aspect/configurable.h>
25 #include <core/threading/thread.h>
26 #include <execution_time_estimator/aspect/execution_time_estimator.h>
27 #include <execution_time_estimator/aspect/execution_time_estimator_inifin.h>
28 
32 {
33 public:
35 
36  void init() override;
37 
38 private:
39  fawkes::ExecutionTimeEstimatorManager execution_time_estimator_manager_;
41  constexpr static char cfg_prefix_[] = "/plugins/execution-time-estimator/static/";
42 };
The plugin thread, initializes the aspect.
void init() override
Initialize the thread.
Thread aspect provide a new aspect.
Thread aspect to access configuration data.
Definition: configurable.h:33
A manager for execution time providers.
The Aspect IniFin for the ExecutionTimeEstimatorsAspect.
Thread class encapsulation of pthreads.
Definition: thread.h:46