Fawkes API
Fawkes Development Version
|
CLIPS blackboard feature. More...
#include "feature_blackboard.h"
Public Member Functions | |
BlackboardCLIPSFeature (fawkes::Logger *logger, fawkes::BlackBoard *blackboard) | |
Constructor. More... | |
virtual | ~BlackboardCLIPSFeature () |
Destructor. More... | |
virtual void | clips_context_init (const std::string &env_name, fawkes::LockPtr< CLIPS::Environment > &clips) |
Initialize a CLIPS context to use the provided feature. More... | |
virtual void | clips_context_destroyed (const std::string &env_name) |
Notification that a CLIPS environment has been destroyed. More... | |
![]() | |
CLIPSFeature (const char *feature_name) | |
Constructor. More... | |
virtual | ~CLIPSFeature () |
Virtual empty constructor. More... | |
Additional Inherited Members | |
![]() | |
const std::string | clips_feature_name |
CLIPS feature name. More... | |
CLIPS blackboard feature.
Definition at line 46 of file feature_blackboard.h.
BlackboardCLIPSFeature::BlackboardCLIPSFeature | ( | fawkes::Logger * | logger, |
fawkes::BlackBoard * | blackboard | ||
) |
Constructor.
logger | message logger |
blackboard | blackboard to use for opening interfaces |
Definition at line 45 of file feature_blackboard.cpp.
|
virtual |
Destructor.
Definition at line 53 of file feature_blackboard.cpp.
References fawkes::BlackBoard::close().
|
virtual |
Notification that a CLIPS environment has been destroyed.
At this time the CLIPS environment can no longer be accessed. But the event can be used to free internal resources that were associated with the environment.
env_name | name of destroyed CLIPS environment |
Implements fawkes::CLIPSFeature.
Definition at line 193 of file feature_blackboard.cpp.
References fawkes::BlackBoard::close(), fawkes::Interface::fields(), fawkes::Interface::fields_end(), fawkes::InterfaceFieldIterator::get_bool(), fawkes::InterfaceFieldIterator::get_length(), fawkes::InterfaceFieldIterator::get_name(), fawkes::Time::get_sec(), fawkes::InterfaceFieldIterator::get_type(), fawkes::InterfaceFieldIterator::get_typename(), fawkes::Time::get_usec(), fawkes::Interface::id(), fawkes::IFT_BOOL, fawkes::IFT_BYTE, fawkes::IFT_DOUBLE, fawkes::IFT_ENUM, fawkes::IFT_FLOAT, fawkes::IFT_INT16, fawkes::IFT_INT32, fawkes::IFT_INT64, fawkes::IFT_INT8, fawkes::IFT_STRING, fawkes::IFT_UINT16, fawkes::IFT_UINT32, fawkes::IFT_UINT64, fawkes::IFT_UINT8, fawkes::Interface::is_writer(), fawkes::BlackBoard::list_all(), fawkes::Logger::log_debug(), fawkes::Logger::log_error(), fawkes::Logger::log_info(), fawkes::Logger::log_warn(), fawkes::LockPtr< T_CppObject >::objmutex_ptr(), fawkes::BlackBoard::open_for_reading(), fawkes::BlackBoard::open_for_writing(), fawkes::InterfaceFieldIterator::set_bool(), fawkes::InterfaceFieldIterator::set_double(), fawkes::InterfaceFieldIterator::set_enum_string(), fawkes::InterfaceFieldIterator::set_float(), fawkes::InterfaceFieldIterator::set_int16(), fawkes::InterfaceFieldIterator::set_int32(), fawkes::InterfaceFieldIterator::set_int64(), fawkes::InterfaceFieldIterator::set_int8(), fawkes::InterfaceFieldIterator::set_string(), fawkes::InterfaceFieldIterator::set_uint16(), fawkes::InterfaceFieldIterator::set_uint32(), fawkes::InterfaceFieldIterator::set_uint64(), fawkes::InterfaceFieldIterator::set_uint8(), fawkes::str_join(), and fawkes::Interface::uid().
|
virtual |
Initialize a CLIPS context to use the provided feature.
This method must be implemented by threads with the CLIPSFeatureAspect. It is called to initialize a particular CLIPS environment that requests to use the provided feature.
env_name | name of CLIPS environment to initialized. |
clips | CLIPS environment to initialize |
Implements fawkes::CLIPSFeature.
Definition at line 73 of file feature_blackboard.cpp.