Fawkes API  Fawkes Development Version
ConfigCLIPSFeature Class Reference

#include "feature_blackboard.h"

Inheritance diagram for ConfigCLIPSFeature:

Public Member Functions

 ConfigCLIPSFeature (fawkes::Logger *logger, fawkes::Configuration *config)
 Constructor. More...
 
virtual ~ConfigCLIPSFeature ()
 Destructor. More...
 
virtual void clips_context_init (const std::string &env_name, fawkes::LockPtr< CLIPS::Environment > &clips)
 
virtual void clips_context_destroyed (const std::string &env_name)
 
- 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 39 of file feature_config.h.

Constructor & Destructor Documentation

◆ ConfigCLIPSFeature()

ConfigCLIPSFeature::ConfigCLIPSFeature ( fawkes::Logger logger,
fawkes::Configuration config 
)

Constructor.

Parameters
loggermessage logger
configconfiguration to use for CLIPS commands

Definition at line 44 of file feature_config.cpp.

◆ ~ConfigCLIPSFeature()

ConfigCLIPSFeature::~ConfigCLIPSFeature ( )
virtual

Destructor.

Definition at line 50 of file feature_config.cpp.

Member Function Documentation

◆ clips_context_destroyed()

void ConfigCLIPSFeature::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 68 of file feature_config.cpp.

◆ clips_context_init()

void ConfigCLIPSFeature::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 56 of file feature_config.cpp.


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