Fawkes API
Fawkes Development Version
cedar_thread.h
1
2
/***************************************************************************
3
* cedar_thread.h - CLIPS-based Error Detection, Analysis, and Recovery
4
*
5
* Created: Fri Aug 16 18:00:32 2013 +0200
6
* Copyright 2006-2011 Tim Niemueller [www.niemueller.de]
7
****************************************************************************/
8
9
/* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU Library General Public License for more details.
18
*
19
* Read the full text in the LICENSE.GPL file in the doc directory.
20
*/
21
22
#ifndef __PLUGINS_CEDAR_CEDAR_THREAD_H_
23
#define __PLUGINS_CEDAR_CEDAR_THREAD_H_
24
25
#include <aspect/blackboard.h>
26
#include <aspect/blocked_timing.h>
27
#include <aspect/clock.h>
28
#include <aspect/configurable.h>
29
#include <aspect/logging.h>
30
#include <core/threading/thread.h>
31
#include <plugins/clips/aspect/clips.h>
32
#include <utils/time/time.h>
33
34
#include <clipsmm.h>
35
#include <map>
36
#include <string>
37
38
class
CedarPluginDirectorThread
;
39
40
class
CedarThread
:
public
fawkes::Thread
,
41
public
fawkes::BlockedTimingAspect
,
42
public
fawkes::LoggingAspect
,
43
public
fawkes::BlackBoardAspect
,
44
public
fawkes::ConfigurableAspect
,
45
public
fawkes::ClockAspect
,
46
public
fawkes::CLIPSAspect
47
{
48
public
:
49
CedarThread
(
CedarPluginDirectorThread
*pdt);
50
virtual
~CedarThread
();
51
52
virtual
void
init
();
53
virtual
void
loop
();
54
virtual
void
finalize
();
55
56
/** Stub to see name in backtrace for easier debugging. @see Thread::run() */
57
protected
:
58
virtual
void
59
run
()
60
{
61
Thread::run();
62
}
63
64
private
:
65
void
clips_get_plugin_info();
66
67
private
:
68
CedarPluginDirectorThread
*pdt_;
69
};
70
71
#endif
CedarThread::init
virtual void init()
Initialize the thread.
Definition:
cedar_thread.cpp:51
CedarThread::CedarThread
CedarThread(CedarPluginDirectorThread *pdt)
Constructor.
Definition:
cedar_thread.cpp:37
CedarThread::loop
virtual void loop()
Code to execute in the thread.
Definition:
cedar_thread.cpp:87
CedarThread
Definition:
cedar_thread.h:39
fawkes::BlockedTimingAspect
Definition:
blocked_timing.h:54
CedarThread::finalize
virtual void finalize()
Finalize the thread.
Definition:
cedar_thread.cpp:82
fawkes::BlackBoardAspect
Definition:
blackboard.h:36
fawkes::LoggingAspect
Definition:
logging.h:36
CedarThread::~CedarThread
virtual ~CedarThread()
Destructor.
Definition:
cedar_thread.cpp:46
fawkes::CLIPSAspect
Definition:
clips.h:39
fawkes::Thread
Definition:
thread.h:44
fawkes::ConfigurableAspect
Definition:
configurable.h:36
fawkes::ClockAspect
Definition:
clock.h:38
CedarPluginDirectorThread
Definition:
plugin_director_thread.h:30
CedarThread::run
virtual void run()
Stub to see name in backtrace for easier debugging.
Definition:
cedar_thread.h:58
src
plugins
cedar
cedar_thread.h
Generated by
1.8.16