Fawkes API
Fawkes Development Version
|
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_) {
94 const std::list<AspectIniFin *>
95 CLIPSThread::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_);
void set_manager(LockPtr< CLIPSEnvManager > &clips_env_mgr)
Set CLIPS environment manger.
void set_manager(LockPtr< CLIPSEnvManager > &clips_env_mgr)
Set CLIPS environment manger.
CLIPS blackboard feature.
virtual void init()
Initialize the thread.
virtual bool get_bool(const char *path)=0
Get value from configuration which is of type bool.
CLIPS environment manager.
CLIPS warning on redefinition of names.
virtual ~CLIPSThread()
Destructor.
Thread aspect provide a new aspect.
Clock * clock
By means of this member access to the clock is given.
CLIPS blackboard feature.
void set_manager(LockPtr< CLIPSEnvManager > &clips_env_mgr)
Set CLIPS environment manger.
Logger * logger
This is the Logger member used to access the logger.
Fawkes library namespace.
void clear()
Set underlying instance to 0, decrementing reference count of existing instance appropriately.
CLIPSThread()
Constructor.
Configuration * config
This is the Configuration member used to access the configuration.
void add_features(const std::list< CLIPSFeature * > &features)
Add a feature by name.
Thread class encapsulation of pthreads.
BlackBoard * blackboard
This is the BlackBoard instance you can use to interact with the BlackBoard.
virtual std::string get_string(const char *path)=0
Get value from configuration which is of type string.
virtual void loop()
Code to execute in the thread.
virtual void finalize()
Finalize the thread.
Base class for exceptions in Fawkes.