Fawkes API
Fawkes Development Version
|
Thread aspect to get access to a CLIPS environment. More...
#include <>>
Public Member Functions | |
CLIPSAspect (const char *env_name, const char *log_component_name=0) | |
Constructor. More... | |
virtual | ~CLIPSAspect () |
Virtual empty destructor. More... | |
![]() | |
const std::list< const char * > & | get_aspects () const |
Get list of aspect names attached to a aspected thread. More... | |
Protected Attributes | |
const std::string | clips_env_name |
CLIPS environment name. More... | |
LockPtr< CLIPS::Environment > | clips |
CLIPS environment for exclusive usage. More... | |
Additional Inherited Members | |
![]() | |
void | add_aspect (const char *name) |
Add an aspect to a thread. More... | |
Thread aspect to get access to a CLIPS environment.
Give this aspect to your thread to get a CLIPS environment for exclusive usage.
fawkes::CLIPSAspect::CLIPSAspect | ( | const char * | env_name, |
const char * | log_component_name = 0 |
||
) |
Constructor.
env_name | CLIPS environment name, the environment name is unique, if you request an environment already occupied by another the exclusive parameter defines whether an error is thrown or if the environment is shared |
log_component_name | a component name that is shown in log messages. It is strongly recommended to set this to something unique. If left out will be set to "CLIPS[env_name]". |
Definition at line 56 of file clips.cpp.
References fawkes::Aspect::add_aspect().
|
virtual |
|
protected |
CLIPS environment for exclusive usage.
Definition at line 50 of file clips.h.
Referenced by ClipsAgentThread::finalize(), ClipsExecutiveThread::finalize(), CedarThread::init(), ClipsAgentThread::init(), ClipsExecutiveThread::init(), fawkes::CLIPSAspectIniFin::init(), CedarThread::loop(), ClipsAgentThread::loop(), and ClipsExecutiveThread::loop().
|
protected |
CLIPS environment name.
Definition at line 49 of file clips.h.
Referenced by fawkes::CLIPSAspectIniFin::finalize(), and fawkes::CLIPSAspectIniFin::init().