23#include "clips_thread.h"
25#include "feature_blackboard.h"
26#include "feature_config.h"
27#include "feature_redefine_warning.h"
29#include <plugins/clips/aspect/clips_env_manager.h>
55 std::string clips_dir = SRCDIR
"/clips/";
61 bool cfg_retract_early =
false;
70 clips_feature_aspect_inifin_.
set_manager(clips_env_mgr_);
71 clips_manager_aspect_inifin_.
set_manager(clips_env_mgr_);
82 clips_env_mgr_.
clear();
84 for (
auto f : features_) {
94const std::list<AspectIniFin *>
95CLIPSThread::inifin_list()
97 std::list<AspectIniFin *> rv;
98 rv.push_back(&clips_aspect_inifin_);
99 rv.push_back(&clips_feature_aspect_inifin_);
100 rv.push_back(&clips_manager_aspect_inifin_);
CLIPS blackboard feature.
virtual void init()
Initialize the thread.
virtual void finalize()
Finalize the thread.
virtual void loop()
Code to execute in the thread.
virtual ~CLIPSThread()
Destructor.
CLIPSThread()
Constructor.
CLIPS blackboard feature.
CLIPS warning on redefinition of names.
Thread aspect provide a new aspect.
BlackBoard * blackboard
This is the BlackBoard instance you can use to interact with the BlackBoard.
void set_manager(LockPtr< CLIPSEnvManager > &clips_env_mgr)
Set CLIPS environment manger.
CLIPS environment manager.
void add_features(const std::list< CLIPSFeature * > &features)
Add a feature by name.
void set_manager(LockPtr< CLIPSEnvManager > &clips_env_mgr)
Set CLIPS environment manger.
void set_manager(LockPtr< CLIPSEnvManager > &clips_env_mgr)
Set CLIPS environment manger.
Clock * clock
By means of this member access to the clock is given.
Configuration * config
This is the Configuration member used to access the configuration.
virtual bool get_bool(const char *path)=0
Get value from configuration which is of type bool.
virtual std::string get_string(const char *path)=0
Get value from configuration which is of type string.
Base class for exceptions in Fawkes.
void clear()
Set underlying instance to 0, decrementing reference count of existing instance appropriately.
Logger * logger
This is the Logger member used to access the logger.
Thread class encapsulation of pthreads.
Fawkes library namespace.