Fawkes API  Fawkes Development Version
BlackboardCLIPSFeature Class Reference

CLIPS blackboard feature. More...

#include "feature_blackboard.h"

Inheritance diagram for BlackboardCLIPSFeature:

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...
 
- Public Member Functions inherited from fawkes::CLIPSFeature
 CLIPSFeature (const char *feature_name)
 Constructor. More...
 
virtual ~CLIPSFeature ()
 Virtual empty constructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from fawkes::CLIPSFeature
const std::string clips_feature_name
 CLIPS feature name. More...
 

Detailed Description

CLIPS blackboard feature.

Author
Tim Niemueller

Definition at line 46 of file feature_blackboard.h.

Constructor & Destructor Documentation

◆ BlackboardCLIPSFeature()

BlackboardCLIPSFeature::BlackboardCLIPSFeature ( fawkes::Logger logger,
fawkes::BlackBoard blackboard 
)

Constructor.

Parameters
loggermessage logger
blackboardblackboard to use for opening interfaces

Definition at line 45 of file feature_blackboard.cpp.

◆ ~BlackboardCLIPSFeature()

BlackboardCLIPSFeature::~BlackboardCLIPSFeature ( )
virtual

Destructor.

Definition at line 53 of file feature_blackboard.cpp.

References fawkes::BlackBoard::close().

Member Function Documentation

◆ clips_context_destroyed()

void BlackboardCLIPSFeature::clips_context_destroyed ( const std::string &  env_name)
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.

Parameters
env_namename 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().

◆ clips_context_init()

void BlackboardCLIPSFeature::clips_context_init ( const std::string &  env_name,
fawkes::LockPtr< CLIPS::Environment > &  clips 
)
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.

Parameters
env_namename of CLIPS environment to initialized.
clipsCLIPS environment to initialize

Implements fawkes::CLIPSFeature.

Definition at line 73 of file feature_blackboard.cpp.


The documentation for this class was generated from the following files: