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
29
class
ExecutionTimeEstimatorsThread
:
public
fawkes::Thread
,
30
public
fawkes::ConfigurableAspect
,
31
public
fawkes::AspectProviderAspect
32
{
33
public
:
34
ExecutionTimeEstimatorsThread
();
35
36
void
init
()
override
;
37
38
private
:
39
fawkes::ExecutionTimeEstimatorManager
execution_time_estimator_manager_;
40
fawkes::ExecutionTimeEstimatorsAspectIniFin
provider_inifin_;
41
constexpr
static
char
cfg_prefix_[] =
"/plugins/execution-time-estimator/static/"
;
42
};
ExecutionTimeEstimatorsThread::init
void init() override
Initialize the thread.
Definition:
execution_time_estimator_thread.cpp:41
fawkes::ExecutionTimeEstimatorsAspectIniFin
The Aspect IniFin for the ExecutionTimeEstimatorsAspect.
Definition:
execution_time_estimator_inifin.h:31
fawkes::AspectProviderAspect
Thread aspect provide a new aspect.
Definition:
aspect_provider.h:36
fawkes::ExecutionTimeEstimatorManager
A manager for execution time providers.
Definition:
execution_time_estimator.h:32
fawkes::Thread
Thread class encapsulation of pthreads.
Definition:
thread.h:46
fawkes::ConfigurableAspect
Thread aspect to access configuration data.
Definition:
configurable.h:33
ExecutionTimeEstimatorsThread
The plugin thread, initializes the aspect.
Definition:
execution_time_estimator_thread.h:32
src
plugins
execution-time-estimator
execution_time_estimator_thread.h
Generated by
1.8.20