Fawkes API  Fawkes Development Version
cedar_plugin.cpp
1 
2 /***************************************************************************
3  * cedar_plugin.cpp - CLIPS-based Error Detection, Analysis, and Recovery
4  *
5  * Created: Fri Aug 16 18:00:32 2013 +0200
6  * Copyright 2006-2013 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 #include "cedar_thread.h"
23 #include "plugin_director_thread.h"
24 
25 #include <core/plugin.h>
26 
27 using namespace fawkes;
28 
29 /** CLIPS agent plugin.
30  * @author Tim Niemueller
31  */
33 {
34 public:
35  /** Constructor.
36  * @param config Fawkes configuration
37  */
38  explicit CedarPlugin(Configuration *config) : Plugin(config)
39  {
41  thread_list.push_back(pdt);
42  thread_list.push_back(new CedarThread(pdt));
43  }
44 };
45 
46 PLUGIN_DESCRIPTION("CLIPS-based Error Detection, Analysis, and Recovery")
47 EXPORT_PLUGIN(CedarPlugin)
CedarPlugin::CedarPlugin
CedarPlugin(Configuration *config)
Constructor.
Definition: cedar_plugin.cpp:38
CedarThread
Definition: cedar_thread.h:39
fawkes::Configuration
Definition: config.h:68
fawkes
CedarPlugin
CLIPS agent plugin.
Definition: cedar_plugin.cpp:32
fawkes::Plugin
Definition: plugin.h:37
CedarPluginDirectorThread
Definition: plugin_director_thread.h:30