Fawkes API
Fawkes Development Version
skiller_simulator_plugin.cpp
1
/***************************************************************************
2
* skiller_simulator_plugin.cpp - Simulate the execution of a skill
3
*
4
* Created: Mon 06 May 2019 09:01:14 CEST 09:01
5
* Copyright 2019 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
#include "skiller_simulator_plugin.h"
22
23
#include "exec_thread.h"
24
25
using namespace
fawkes
;
26
27
/** @class SkillerSimulatorPlugin <plugins/skiller-simulator/skiller_simulator_plugin.cpp>
28
* Skill Simulated Execution Plugin.
29
* This plugin acts like the skiller plugin but only simulates skill execution.
30
*
31
* @author Till Hofmann
32
*/
33
34
/** Constructor.
35
* @param config Fawkes configuration to read config values from.
36
*/
37
SkillerSimulatorPlugin::SkillerSimulatorPlugin
(
Configuration
*config) :
Plugin
(config)
38
{
39
thread_list
.
push_back
(
new
SkillerSimulatorExecutionThread
());
40
}
41
42
PLUGIN_DESCRIPTION(
"Simulated Skill Execution"
)
43
EXPORT_PLUGIN(
SkillerSimulatorPlugin
)
fawkes::Plugin::thread_list
ThreadList thread_list
Thread list member.
Definition:
plugin.h:57
fawkes::ThreadList::push_back
void push_back(Thread *thread)
Add thread to the end.
Definition:
thread_list.cpp:777
SkillerSimulatorPlugin
Definition:
skiller_simulator_plugin.h:25
fawkes::Configuration
Definition:
config.h:68
SkillerSimulatorExecutionThread
Definition:
exec_thread.h:32
fawkes
fawkes::Plugin
Definition:
plugin.h:37
SkillerSimulatorPlugin::SkillerSimulatorPlugin
SkillerSimulatorPlugin(fawkes::Configuration *config)
Constructor.
Definition:
skiller_simulator_plugin.cpp:37
src
plugins
skiller-simulator
skiller_simulator_plugin.cpp
Generated by
1.8.16