DACLIPS::Environment Class Reference

#include <environment.h>

Inheritance diagram for DACLIPS::Environment:

Inheritance graph
[legend]
Collaboration diagram for DACLIPS::Environment:

Collaboration graph
[legend]

List of all members.

Public Types

typedef CLIPSPointer< Environmentpointer
typedef CLIPSPointer< Environmentpointer

Public Member Functions

 Environment ()
 ~Environment ()
bool batch_evaluate (const std::string &filename)
bool binary_load (const std::string &filename)
bool binary_save (const std::string &filename)
bool build (const std::string &construct)
void clear ()
Values evaluate (const std::string &expression)
Values function (const std::string &function_name, const std::string &arguments=std::string())
int load (const std::string &filename)
void reset ()
bool save (const std::string &filename)
bool auto_float_dividend_enabled ()
bool use_auto_float_dividend (bool use=true)
bool dynamic_constraint_checking_enabled ()
bool use_dynamic_constraint_checking (bool use=true)
bool sequence_operator_recognition_enabled ()
bool use_sequence_operator_recognition (bool use=true)
bool static_constraint_checking_enabled ()
bool use_static_constraint_checking (bool use=true)
bool fact_duplication_enabled ()
bool use_fact_duplication (bool use=true)
bool incremental_reset_enabled ()
bool use_incremental_reset (bool use=true)
bool global_reset_enable ()
bool use_global_reset (bool use=true)
bool is_dribble_active ()
bool dribble_off ()
bool dribble_on (const std::string &dribble_file)
int is_watched (const std::string &item)
bool watch (const std::string &item)
bool unwatch (const std::string &item)
void set_as_current ()
Fact::pointer assert_fact (const std::string &factstring)
void clear_focus_stack ()
DefaultFacts::pointer get_default_facts (const std::string &default_facts_name)
std::vector< std::string > get_default_facts_names ()
std::vector< std::string > get_default_facts_names (const Module &module)
std::vector< std::string > get_default_facts_names (Module::pointer module)
DefaultFacts::pointer get_default_facts_list_head ()
Template::pointer get_template (const std::string &template_name)
std::vector< std::string > get_template_names ()
std::vector< std::string > get_template_names (const Module &module)
std::vector< std::string > get_template_names (Module::pointer module)
Template::pointer get_template_list_head ()
Rule::pointer get_rule (const std::string &rule_name)
std::vector< std::string > get_rule_names ()
std::vector< std::string > get_rule_names (const Module &module)
std::vector< std::string > get_rule_names (Module::pointer module)
Rule::pointer get_rule_list_head ()
void remove_rules ()
Module::pointer get_module (const std::string &module_name)
Module::pointer get_current_module ()
std::vector< std::string > get_module_names ()
Module::pointer get_module_list_head ()
void refresh_agenda ()
void refresh_agenda (const Module &module)
void refresh_agenda (Module::pointer module)
void reorder_agenda ()
void reorder_agenda (const Module &module)
void reorder_agenda (Module::pointer module)
long int run (long int runlimit=-1)
void run_threaded (long int runlimit=-1, int priority=0)
void join_run_thread ()
sigc::signal< void, long int > signal_run ()
SalienceEvaluation get_salience_evaluation ()
SalienceEvaluation set_salience_evaluation (SalienceEvaluation se)
ConflictResolution get_conflict_resolution_strategy ()
ConflictResolution set_conflict_resolution_strategy (ConflictResolution cr)
bool check_agenda_changed ()
Module::pointer get_focused_module ()
std::vector< std::string > get_focus_stack ()
Activation::pointer get_activation_list_head ()
Global::pointer get_global (const std::string &global_name)
Global::pointer get_global_list_head ()
std::vector< std::string > get_globals_names ()
std::vector< std::string > get_globals_names (const Module &module)
std::vector< std::string > get_globals_names (Module::pointer module)
bool check_globals_changed ()
Function::pointer get_function (const std::string &function_name)
Function::pointer get_function_list_head ()
std::vector< std::string > get_function_names ()
std::vector< std::string > get_function_names (const Module &module)
std::vector< std::string > get_function_names (Module::pointer module)
sigc::signal< void > signal_clear ()
sigc::signal< void > signal_periodic ()
sigc::signal< void > signal_reset ()
sigc::signal< void > signal_rule_firing ()
sigc::signal< void > signal_agenda_changed ()
sigc::signal< void > signal_globals_changed ()
template<typename T_return>
bool add_function (std::string name, const sigc::slot0< T_return > &slot)
template<typename T_return, typename T_arg1>
bool add_function (std::string name, const sigc::slot1< T_return, T_arg1 > &slot)
template<typename T_return, typename T_arg1, typename T_arg2>
bool add_function (std::string name, const sigc::slot2< T_return, T_arg1, T_arg2 > &slot)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3>
bool add_function (std::string name, const sigc::slot3< T_return, T_arg1, T_arg2, T_arg3 > &slot)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
bool add_function (std::string name, const sigc::slot4< T_return, T_arg1, T_arg2, T_arg3, T_arg4 > &slot)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
bool add_function (std::string name, const sigc::slot5< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 > &slot)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
bool add_function (std::string name, const sigc::slot6< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 > &slot)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
bool add_function (std::string name, const sigc::slot7< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > &slot)
bool remove_function (std::string name)
 Environment ()
 ~Environment ()
bool batch_evaluate (const std::string &filename)
bool binary_load (const std::string &filename)
bool binary_save (const std::string &filename)
bool build (const std::string &construct)
void clear ()
Values evaluate (const std::string &expression)
Values function (const std::string &function_name, const std::string &arguments=std::string())
int load (const std::string &filename)
void reset ()
bool save (const std::string &filename)
bool auto_float_dividend_enabled ()
bool use_auto_float_dividend (bool use=true)
bool dynamic_constraint_checking_enabled ()
bool use_dynamic_constraint_checking (bool use=true)
bool sequence_operator_recognition_enabled ()
bool use_sequence_operator_recognition (bool use=true)
bool static_constraint_checking_enabled ()
bool use_static_constraint_checking (bool use=true)
bool fact_duplication_enabled ()
bool use_fact_duplication (bool use=true)
bool incremental_reset_enabled ()
bool use_incremental_reset (bool use=true)
bool global_reset_enable ()
bool use_global_reset (bool use=true)
bool is_dribble_active ()
bool dribble_off ()
bool dribble_on (const std::string &dribble_file)
int is_watched (const std::string &item)
bool watch (const std::string &item)
bool unwatch (const std::string &item)
void set_as_current ()
Fact::pointer assert_fact (const std::string &factstring)
void clear_focus_stack ()
DefaultFacts::pointer get_default_facts (const std::string &default_facts_name)
std::vector< std::string > get_default_facts_names ()
std::vector< std::string > get_default_facts_names (const Module &module)
std::vector< std::string > get_default_facts_names (Module::pointer module)
DefaultFacts::pointer get_default_facts_list_head ()
Template::pointer get_template (const std::string &template_name)
std::vector< std::string > get_template_names ()
std::vector< std::string > get_template_names (const Module &module)
std::vector< std::string > get_template_names (Module::pointer module)
Template::pointer get_template_list_head ()
Rule::pointer get_rule (const std::string &rule_name)
std::vector< std::string > get_rule_names ()
std::vector< std::string > get_rule_names (const Module &module)
std::vector< std::string > get_rule_names (Module::pointer module)
Rule::pointer get_rule_list_head ()
void remove_rules ()
Module::pointer get_module (const std::string &module_name)
Module::pointer get_current_module ()
std::vector< std::string > get_module_names ()
Module::pointer get_module_list_head ()
void refresh_agenda ()
void refresh_agenda (const Module &module)
void refresh_agenda (Module::pointer module)
void reorder_agenda ()
void reorder_agenda (const Module &module)
void reorder_agenda (Module::pointer module)
long int run (long int runlimit=-1)
void run_threaded (long int runlimit=-1, int priority=0)
void join_run_thread ()
sigc::signal< void, long int > signal_run ()
SalienceEvaluation get_salience_evaluation ()
SalienceEvaluation set_salience_evaluation (SalienceEvaluation se)
ConflictResolution get_conflict_resolution_strategy ()
ConflictResolution set_conflict_resolution_strategy (ConflictResolution cr)
bool check_agenda_changed ()
Module::pointer get_focused_module ()
std::vector< std::string > get_focus_stack ()
Activation::pointer get_activation_list_head ()
Global::pointer get_global (const std::string &global_name)
Global::pointer get_global_list_head ()
std::vector< std::string > get_globals_names ()
std::vector< std::string > get_globals_names (const Module &module)
std::vector< std::string > get_globals_names (Module::pointer module)
bool check_globals_changed ()
Function::pointer get_function (const std::string &function_name)
Function::pointer get_function_list_head ()
std::vector< std::string > get_function_names ()
std::vector< std::string > get_function_names (const Module &module)
std::vector< std::string > get_function_names (Module::pointer module)
sigc::signal< void > signal_clear ()
sigc::signal< void > signal_periodic ()
sigc::signal< void > signal_reset ()
sigc::signal< void > signal_rule_firing ()
sigc::signal< void > signal_agenda_changed ()
sigc::signal< void > signal_globals_changed ()
template<typename T_return>
bool add_function (std::string name, const sigc::slot0< T_return > &slot)
template<typename T_return, typename T_arg1>
bool add_function (std::string name, const sigc::slot1< T_return, T_arg1 > &slot)
template<typename T_return, typename T_arg1, typename T_arg2>
bool add_function (std::string name, const sigc::slot2< T_return, T_arg1, T_arg2 > &slot)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3>
bool add_function (std::string name, const sigc::slot3< T_return, T_arg1, T_arg2, T_arg3 > &slot)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
bool add_function (std::string name, const sigc::slot4< T_return, T_arg1, T_arg2, T_arg3, T_arg4 > &slot)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
bool add_function (std::string name, const sigc::slot5< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 > &slot)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
bool add_function (std::string name, const sigc::slot6< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 > &slot)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
bool add_function (std::string name, const sigc::slot7< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > &slot)
bool remove_function (std::string name)

Protected Types

typedef struct
DACLIPS::Environment::Job 
Job
typedef struct
DACLIPS::Environment::Job 
Job

Protected Member Functions

void threaded_run ()
int(* get_callback (const sigc::slot0< std::string > &slot))(void *)
template<typename T_arg1>
int(* get_callback (const sigc::slot1< std::string, T_arg1 > &slot))(void *)
template<typename T_arg1, typename T_arg2>
int(* get_callback (const sigc::slot2< std::string, T_arg1, T_arg2 > &slot))(void *)
template<typename T_arg1, typename T_arg2, typename T_arg3>
int(* get_callback (const sigc::slot3< std::string, T_arg1, T_arg2, T_arg3 > &slot))(void *)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
int(* get_callback (const sigc::slot4< std::string, T_arg1, T_arg2, T_arg3, T_arg4 > &slot))(void *)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
int(* get_callback (const sigc::slot5< std::string, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 > &slot))(void *)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
int(* get_callback (const sigc::slot6< std::string, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 > &slot))(void *)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
int(* get_callback (const sigc::slot7< std::string, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > &slot))(void *)
template<typename T_return>
int(* get_callback (const sigc::slot0< T_return > &slot))(void *)
template<typename T_return, typename T_arg1>
int(* get_callback (const sigc::slot1< T_return, T_arg1 > &slot))(void *)
template<typename T_return, typename T_arg1, typename T_arg2>
int(* get_callback (const sigc::slot2< T_return, T_arg1, T_arg2 > &slot))(void *)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3>
int(* get_callback (const sigc::slot3< T_return, T_arg1, T_arg2, T_arg3 > &slot))(void *)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
int(* get_callback (const sigc::slot4< T_return, T_arg1, T_arg2, T_arg3, T_arg4 > &slot))(void *)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
int(* get_callback (const sigc::slot5< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 > &slot))(void *)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
int(* get_callback (const sigc::slot6< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 > &slot))(void *)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
int(* get_callback (const sigc::slot7< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > &slot))(void *)
void threaded_run ()
int(* get_callback (const sigc::slot0< std::string > &slot))(void *)
template<typename T_arg1>
int(* get_callback (const sigc::slot1< std::string, T_arg1 > &slot))(void *)
template<typename T_arg1, typename T_arg2>
int(* get_callback (const sigc::slot2< std::string, T_arg1, T_arg2 > &slot))(void *)
template<typename T_arg1, typename T_arg2, typename T_arg3>
int(* get_callback (const sigc::slot3< std::string, T_arg1, T_arg2, T_arg3 > &slot))(void *)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
int(* get_callback (const sigc::slot4< std::string, T_arg1, T_arg2, T_arg3, T_arg4 > &slot))(void *)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
int(* get_callback (const sigc::slot5< std::string, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 > &slot))(void *)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
int(* get_callback (const sigc::slot6< std::string, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 > &slot))(void *)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
int(* get_callback (const sigc::slot7< std::string, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > &slot))(void *)
template<typename T_return>
int(* get_callback (const sigc::slot0< T_return > &slot))(void *)
template<typename T_return, typename T_arg1>
int(* get_callback (const sigc::slot1< T_return, T_arg1 > &slot))(void *)
template<typename T_return, typename T_arg1, typename T_arg2>
int(* get_callback (const sigc::slot2< T_return, T_arg1, T_arg2 > &slot))(void *)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3>
int(* get_callback (const sigc::slot3< T_return, T_arg1, T_arg2, T_arg3 > &slot))(void *)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
int(* get_callback (const sigc::slot4< T_return, T_arg1, T_arg2, T_arg3, T_arg4 > &slot))(void *)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
int(* get_callback (const sigc::slot5< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 > &slot))(void *)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
int(* get_callback (const sigc::slot6< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 > &slot))(void *)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
int(* get_callback (const sigc::slot7< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > &slot))(void *)

Static Protected Member Functions

static void clear_callback (void *env)
static void periodic_callback (void *env)
static void reset_callback (void *env)
static void rule_firing_callback (void *end)
static void * strcallback (void *theEnv)
template<typename T_arg1>
static void * strcallback (void *theEnv)
template<typename T_arg1, typename T_arg2>
static void * strcallback (void *theEnv)
template<typename T_arg1, typename T_arg2, typename T_arg3>
static void * strcallback (void *theEnv)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
static void * strcallback (void *theEnv)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
static void * strcallback (void *theEnv)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
static void * strcallback (void *theEnv)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
static void * strcallback (void *theEnv)
template<typename T_return>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1, typename T_arg2>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
static T_return callback (void *theEnv)
static int get_arg_count (void *env)
static void * get_function_context (void *env)
static void * add_symbol (const char *s)
static void clear_callback (void *env)
static void periodic_callback (void *env)
static void reset_callback (void *env)
static void rule_firing_callback (void *end)
static void * strcallback (void *theEnv)
template<typename T_arg1>
static void * strcallback (void *theEnv)
template<typename T_arg1, typename T_arg2>
static void * strcallback (void *theEnv)
template<typename T_arg1, typename T_arg2, typename T_arg3>
static void * strcallback (void *theEnv)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
static void * strcallback (void *theEnv)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
static void * strcallback (void *theEnv)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
static void * strcallback (void *theEnv)
template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
static void * strcallback (void *theEnv)
template<typename T_return>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1, typename T_arg2>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
static T_return callback (void *theEnv)
template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
static T_return callback (void *theEnv)
static int get_arg_count (void *env)
static void * get_function_context (void *env)
static void * add_symbol (const char *s)

Protected Attributes

std::map< std::string, anym_slots
sigc::signal< void > m_signal_clear
sigc::signal< void > m_signal_periodic
sigc::signal< void > m_signal_reset
sigc::signal< void > m_signal_rule_firing
sigc::signal< void > m_signal_agenda_changed
sigc::signal< void > m_signal_globals_changed
Glib::Thread * m_run_thread
std::priority_queue< Jobm_run_queue
Glib::Mutex m_mutex_run_queue
Glib::Mutex m_mutex_run
Glib::Mutex m_mutex_threaded_run
Glib::Mutex m_mutex_run_signal
sigc::signal< void, long int > m_signal_run

Static Protected Attributes

static std::map< void
*, Environment * > 
m_environment_map

Classes

struct  Job


Detailed Description

Author:
Rick L. Vinyard, Jr. <rvinyard@cs.nmsu.edu>

Definition at line 58 of file environment.h.


Member Typedef Documentation

Reimplemented from DACLIPS::Object.

Definition at line 60 of file environment.h.

Encapsulates the concept of a CLIPS job. Has a priority for comparison and a runlimit

Reimplemented from DACLIPS::Object.

Definition at line 60 of file environment.h.

Encapsulates the concept of a CLIPS job. Has a priority for comparison and a runlimit


Constructor & Destructor Documentation

DACLIPS::Environment::Environment (  ) 

Definition at line 33 of file environment.cpp.

DACLIPS::Environment::~Environment (  ) 

Definition at line 50 of file environment.cpp.

DACLIPS::Environment::Environment (  ) 

DACLIPS::Environment::~Environment (  ) 


Member Function Documentation

bool DACLIPS::Environment::batch_evaluate ( const std::string &  filename  ) 

Evaluates a series of commands in the specified file

Returns:
false if an error occurred, true otherwise

Definition at line 62 of file environment.cpp.

bool DACLIPS::Environment::binary_load ( const std::string &  filename  ) 

Loads a binary image of constructs into the CLIPS data base

Returns:
false if an error occurred, true otherwise

Definition at line 66 of file environment.cpp.

bool DACLIPS::Environment::binary_save ( const std::string &  filename  ) 

Saves a binary image of constructs from the CLIPS data base

Returns:
false if an error occurred, true on success

Definition at line 70 of file environment.cpp.

bool DACLIPS::Environment::build ( const std::string &  construct  ) 

Allows a construct to be defined

Returns:
false if the construct could not be parsed, true on success

Definition at line 74 of file environment.cpp.

void DACLIPS::Environment::clear (  ) 

Clears the environment

Definition at line 78 of file environment.cpp.

Values DACLIPS::Environment::evaluate ( const std::string &  expression  ) 

Evaluates and expression and returns a vector of the results. If the expression could not be evaluated a zero-length vector is returned.

Definition at line 546 of file environment.cpp.

Values DACLIPS::Environment::function ( const std::string &  function_name,
const std::string &  arguments = std::string() 
)

Evaluates a CLIPS function. If the function could not be evaluated a zero-length vector is returned.

Definition at line 557 of file environment.cpp.

int DACLIPS::Environment::load ( const std::string &  filename  ) 

Loads a set of constructs into the CLIPS data base

Returns:
Zero if the file couldn’t be opened, -1 if the file was opened but an error occurred while loading, and 1 if the file was opened and no errors occurred while loading.
If syntactic errors are in the constructs, load still will attempt to read the entire file and error notices will be sent to werror.

Definition at line 82 of file environment.cpp.

void DACLIPS::Environment::reset (  ) 

Resets the CLIPS environment

Definition at line 87 of file environment.cpp.

bool DACLIPS::Environment::save ( const std::string &  filename  ) 

Saves a set of constructs to the specified file

Returns:
false if an error occurred, true on success

Definition at line 92 of file environment.cpp.

bool DACLIPS::Environment::auto_float_dividend_enabled (  ) 

Returns the current state of the auto-float dividend behavior. When enabled, the dividend of the division function is automatically converted to a floating point number.

Returns:
true if enabled, false if disabled

Definition at line 219 of file environment.cpp.

bool DACLIPS::Environment::use_auto_float_dividend ( bool  use = true  ) 

Sets the auto-float dividend behavior. When enabled, the dividend of the division function is automatically converted to a floating point number. Default is enabled.

Returns:
the new value for the behavior; true if enabled, false if disabled

Definition at line 223 of file environment.cpp.

bool DACLIPS::Environment::dynamic_constraint_checking_enabled (  ) 

Returns the current state of the dynamic constraint checking behavior. When enabled, slot values for newly created data objects are checked for constraint violations.

Returns:
true if enabled, false if disabled

Definition at line 227 of file environment.cpp.

bool DACLIPS::Environment::use_dynamic_constraint_checking ( bool  use = true  ) 

Sets the dynamic constraint checking behavior. When enabled, slot values for newly created data objects are checked for constraint violations. Default is disabled.

Returns:
the new value for the behavior; true if enabled, false if disabled

Definition at line 231 of file environment.cpp.

bool DACLIPS::Environment::sequence_operator_recognition_enabled (  ) 

Returns the current state of the sequence operator recognition behavior. When enabled, multifield variables are expanded and passed as separate arguments in the function call.

Returns:
true if enabled, false if disabled

Definition at line 235 of file environment.cpp.

bool DACLIPS::Environment::use_sequence_operator_recognition ( bool  use = true  ) 

Sets the sequence operator recognition behavior. When enabled, multifield variables are expanded and passed as separate arguments in the function call. Default is disabled.

Returns:
the new value for the behavior; true if enabled, false if disabled

Definition at line 239 of file environment.cpp.

bool DACLIPS::Environment::static_constraint_checking_enabled (  ) 

Returns the current state of the static constraint checking behavior. When enabled, constraint violations are checked when function calls and constructs are parsed.

Returns:
true if enabled, false if disabled

Definition at line 243 of file environment.cpp.

bool DACLIPS::Environment::use_static_constraint_checking ( bool  use = true  ) 

Sets the static constraint checking behavior. When enabled, constraint violations are checked when function calls and constructs are parsed.

Returns:
the new value for the behavior; true if enabled, false if disabled

Definition at line 247 of file environment.cpp.

bool DACLIPS::Environment::fact_duplication_enabled (  ) 

Returns the current state of the fact duplication behavior. When disabled, asserting a duplicate of a fact in the fact-list will result in no effect. When enabled, a duplicate fact is asserted with a new fact-index. Default is disabled.

Returns:
true if enabled, false if disabled

Definition at line 251 of file environment.cpp.

bool DACLIPS::Environment::use_fact_duplication ( bool  use = true  ) 

Sets the static constraint checking behavior. When enabled, constraint violations are checked when function calls and constructs are parsed.

Returns:
the new value for the behavior; true if enabled, false if disabled

Definition at line 255 of file environment.cpp.

bool DACLIPS::Environment::incremental_reset_enabled (  ) 

Definition at line 425 of file environment.cpp.

bool DACLIPS::Environment::use_incremental_reset ( bool  use = true  ) 

Definition at line 430 of file environment.cpp.

bool DACLIPS::Environment::global_reset_enable (  ) 

Definition at line 259 of file environment.cpp.

bool DACLIPS::Environment::use_global_reset ( bool  use = true  ) 

Definition at line 263 of file environment.cpp.

bool DACLIPS::Environment::is_dribble_active (  ) 

Determines if the storing of dribble information is active.

Returns:
true if dribbling is active, false if it is inactive

Definition at line 97 of file environment.cpp.

bool DACLIPS::Environment::dribble_off (  ) 

Turns off the storing of dribble information

Returns:
false if an error occurred closing the file; true on success.

Definition at line 101 of file environment.cpp.

bool DACLIPS::Environment::dribble_on ( const std::string &  dribble_file  ) 

Allows the dribble function of CLIPS to be turned on

Returns:
false if an error occurred opening the file; true on success.

Definition at line 105 of file environment.cpp.

int DACLIPS::Environment::is_watched ( const std::string &  item  ) 

Determine if an item is being watched

Parameters:
item must be one of the following strings: facts, rules, activations, focus, compilations, statistics, globals, instances, slots, messages, message-handlers, generic-functions, method, or deffunctions.
Returns:
1 if the item is watched, 0 if the item is not watched, -1 if the item doesn't exist

Definition at line 110 of file environment.cpp.

bool DACLIPS::Environment::watch ( const std::string &  item  ) 

Definition at line 114 of file environment.cpp.

bool DACLIPS::Environment::unwatch ( const std::string &  item  ) 

Definition at line 119 of file environment.cpp.

void DACLIPS::Environment::set_as_current (  ) 

Definition at line 209 of file environment.cpp.

Fact::pointer DACLIPS::Environment::assert_fact ( const std::string &  factstring  ) 

Definition at line 416 of file environment.cpp.

void DACLIPS::Environment::clear_focus_stack (  ) 

Definition at line 214 of file environment.cpp.

DefaultFacts::pointer DACLIPS::Environment::get_default_facts ( const std::string &  default_facts_name  ) 

TODO Facts

Definition at line 267 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_default_facts_names (  ) 

Gets a list of default facts names from all modules

Definition at line 277 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_default_facts_names ( const Module module  ) 

Gets a list of default facts names from a specific module

Definition at line 284 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_default_facts_names ( Module::pointer  module  ) 

Gets a list of default facts names from a specific module

Definition at line 294 of file environment.cpp.

DefaultFacts::pointer DACLIPS::Environment::get_default_facts_list_head (  ) 

Definition at line 304 of file environment.cpp.

Template::pointer DACLIPS::Environment::get_template ( const std::string &  template_name  ) 

Definition at line 314 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_template_names (  ) 

Gets a list of template names from all modules

Definition at line 327 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_template_names ( const Module module  ) 

Gets a list of template names from a specific module

Definition at line 334 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_template_names ( Module::pointer  module  ) 

Gets a list of template names from a specific module

Definition at line 344 of file environment.cpp.

Template::pointer DACLIPS::Environment::get_template_list_head (  ) 

Definition at line 354 of file environment.cpp.

Rule::pointer DACLIPS::Environment::get_rule ( const std::string &  rule_name  ) 

Definition at line 364 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_rule_names (  ) 

Gets a list of rule names from all modules

Definition at line 374 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_rule_names ( const Module module  ) 

Gets a list of rule names from a specific module

Definition at line 381 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_rule_names ( Module::pointer  module  ) 

Gets a list of rule names from a specific module

Definition at line 391 of file environment.cpp.

Rule::pointer DACLIPS::Environment::get_rule_list_head (  ) 

Definition at line 401 of file environment.cpp.

void DACLIPS::Environment::remove_rules (  ) 

Definition at line 411 of file environment.cpp.

Module::pointer DACLIPS::Environment::get_module ( const std::string &  module_name  ) 

Definition at line 435 of file environment.cpp.

Module::pointer DACLIPS::Environment::get_current_module (  ) 

Definition at line 445 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_module_names (  ) 

Definition at line 529 of file environment.cpp.

Module::pointer DACLIPS::Environment::get_module_list_head (  ) 

Definition at line 536 of file environment.cpp.

void DACLIPS::Environment::refresh_agenda (  ) 

Refreshes the agenda for all modules. Recomputes the salience values for all activations on the agenda and then reorders the agenda.

Definition at line 481 of file environment.cpp.

void DACLIPS::Environment::refresh_agenda ( const Module module  ) 

Refreshes the agenda for a specific module. Recomputes the salience values for all activations on the agenda and then reorders the agenda.

Definition at line 485 of file environment.cpp.

void DACLIPS::Environment::refresh_agenda ( Module::pointer  module  ) 

Refreshes the agenda for a specific module. Recomputes the salience values for all activations on the agenda and then reorders the agenda.

Definition at line 490 of file environment.cpp.

void DACLIPS::Environment::reorder_agenda (  ) 

Reorders the agenda for all modules. Reorders the agenda based on the current conflict resolution strategy and current activation saliences.

Definition at line 495 of file environment.cpp.

void DACLIPS::Environment::reorder_agenda ( const Module module  ) 

Reorders the agenda for a specific module. Reorders the agenda based on the current conflict resolution strategy and current activation saliences.

Definition at line 499 of file environment.cpp.

void DACLIPS::Environment::reorder_agenda ( Module::pointer  module  ) 

Reorders the agenda for a specific module. Reorders the agenda based on the current conflict resolution strategy and current activation saliences.

Definition at line 504 of file environment.cpp.

long int DACLIPS::Environment::run ( long int  runlimit = -1  ) 

Allows rules to execute

Returns:
The number of rules that fired
Parameters:
runlimit How many rules should fire If runlimit is negative, rules will fire until the agenda is empty.
If a threaded execution is active, this call will block until the threaded execution queue is empty.

Definition at line 124 of file environment.cpp.

void DACLIPS::Environment::run_threaded ( long int  runlimit = -1,
int  priority = 0 
)

Executes rules in a separate thread.

If an execution thread is already running, the job will be added to the run queue at the priority level specified. The higher the priority, the higher in the queue. After each execution, the run queue is checked and the next highest priority job is executed.

If the normal run() method is executing, the execution thread will be created, but will block until the previously executing call to run() is completed. After run() completes, the execution thread will unblock and start execution.

The methods of environment are not threadsafe yet. This is just an early look at threading, but making it threadsafe will not be too difficult. For now, to be safe, join the run thread before changing anything in the environment.

Definition at line 136 of file environment.cpp.

void DACLIPS::Environment::join_run_thread (  ) 

Waits until the execution thread is finished

Definition at line 157 of file environment.cpp.

sigc::signal< void, long int > DACLIPS::Environment::signal_run (  ) 

Signal emitted when the rules are executed. The signal emits the number of rules executed.

Definition at line 177 of file environment.cpp.

SalienceEvaluation DACLIPS::Environment::get_salience_evaluation (  ) 

Gets the salience evaluation mode

Definition at line 509 of file environment.cpp.

SalienceEvaluation DACLIPS::Environment::set_salience_evaluation ( SalienceEvaluation  se  ) 

Sets the salience evaluation mode.

Returns:
the old salience evaluation mode

Definition at line 514 of file environment.cpp.

ConflictResolution DACLIPS::Environment::get_conflict_resolution_strategy (  ) 

Gets the current conflict resolution strategy

Definition at line 519 of file environment.cpp.

ConflictResolution DACLIPS::Environment::set_conflict_resolution_strategy ( ConflictResolution  cr  ) 

Sets the conflict resolution strategy.

Returns:
the old conflict resolution strategy

Definition at line 524 of file environment.cpp.

bool DACLIPS::Environment::check_agenda_changed (  ) 

TODO ListDefmodules Checks whether the agenda has changed and emits the agenda changed signal if it has. The agenda does not include any callbacks when the agenda is changed. This method returns true if the agenda has changed and emits the agenda changed signal.

Definition at line 693 of file environment.cpp.

Module::pointer DACLIPS::Environment::get_focused_module (  ) 

Definition at line 455 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_focus_stack (  ) 

Definition at line 465 of file environment.cpp.

Activation::pointer DACLIPS::Environment::get_activation_list_head (  ) 

Definition at line 471 of file environment.cpp.

Global::pointer DACLIPS::Environment::get_global ( const std::string &  global_name  ) 

Definition at line 579 of file environment.cpp.

Global::pointer DACLIPS::Environment::get_global_list_head (  ) 

Definition at line 587 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_globals_names (  ) 

Gets a list of global names from all modules

Definition at line 597 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_globals_names ( const Module module  ) 

Gets a list of global names from a specific module

Definition at line 604 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_globals_names ( Module::pointer  module  ) 

Gets a list of global names from a specific module

Definition at line 615 of file environment.cpp.

bool DACLIPS::Environment::check_globals_changed (  ) 

Definition at line 708 of file environment.cpp.

Function::pointer DACLIPS::Environment::get_function ( const std::string &  function_name  ) 

Definition at line 626 of file environment.cpp.

Function::pointer DACLIPS::Environment::get_function_list_head (  ) 

Definition at line 634 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_function_names (  ) 

Gets a list of function names from all modules

Definition at line 644 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_function_names ( const Module module  ) 

Gets a list of function names from a specific module

Definition at line 651 of file environment.cpp.

std::vector< std::string > DACLIPS::Environment::get_function_names ( Module::pointer  module  ) 

Gets a list of function names from a specific module

Definition at line 662 of file environment.cpp.

sigc::signal< void > DACLIPS::Environment::signal_clear (  ) 

Definition at line 673 of file environment.cpp.

sigc::signal< void > DACLIPS::Environment::signal_periodic (  ) 

Definition at line 678 of file environment.cpp.

sigc::signal< void > DACLIPS::Environment::signal_reset (  ) 

Definition at line 683 of file environment.cpp.

sigc::signal< void > DACLIPS::Environment::signal_rule_firing (  ) 

Definition at line 688 of file environment.cpp.

sigc::signal< void > DACLIPS::Environment::signal_agenda_changed (  ) 

Definition at line 703 of file environment.cpp.

sigc::signal< void > DACLIPS::Environment::signal_globals_changed (  ) 

Definition at line 718 of file environment.cpp.

template<typename T_return>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot0< T_return > &  slot 
) [inline]

Definition at line 1001 of file environment.h.

template<typename T_return, typename T_arg1>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot1< T_return, T_arg1 > &  slot 
) [inline]

Definition at line 1018 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot2< T_return, T_arg1, T_arg2 > &  slot 
) [inline]

Definition at line 1036 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot3< T_return, T_arg1, T_arg2, T_arg3 > &  slot 
) [inline]

Definition at line 1055 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot4< T_return, T_arg1, T_arg2, T_arg3, T_arg4 > &  slot 
) [inline]

Definition at line 1077 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot5< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 > &  slot 
) [inline]

Definition at line 1100 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot6< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 > &  slot 
) [inline]

Definition at line 1125 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot7< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > &  slot 
) [inline]

Definition at line 1151 of file environment.h.

bool DACLIPS::Environment::remove_function ( std::string  name  ) 

Definition at line 572 of file environment.cpp.

void DACLIPS::Environment::threaded_run (  )  [protected]

Protected method that does the actual work

Definition at line 181 of file environment.cpp.

void DACLIPS::Environment::clear_callback ( void *  env  )  [static, protected]

Definition at line 723 of file environment.cpp.

void DACLIPS::Environment::periodic_callback ( void *  env  )  [static, protected]

Definition at line 728 of file environment.cpp.

void DACLIPS::Environment::reset_callback ( void *  env  )  [static, protected]

Definition at line 733 of file environment.cpp.

void DACLIPS::Environment::rule_firing_callback ( void *  end  )  [static, protected]

Definition at line 738 of file environment.cpp.

void * DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

Definition at line 826 of file environment.h.

template<typename T_arg1>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_arg1, typename T_arg2>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_arg1, typename T_arg2, typename T_arg3>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

Definition at line 659 of file environment.h.

template<typename T_return, typename T_arg1>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

int( * DACLIPS::Environment::get_callback ( const sigc::slot0< std::string > &  slot  )  [inline, protected]

Definition at line 587 of file environment.h.

template<typename T_arg1>
int( * DACLIPS::Environment::get_callback ( const sigc::slot1< std::string, T_arg1 > &  slot  )  [inline, protected]

Definition at line 591 of file environment.h.

template<typename T_arg1, typename T_arg2>
int( * DACLIPS::Environment::get_callback ( const sigc::slot2< std::string, T_arg1, T_arg2 > &  slot  )  [inline, protected]

Definition at line 595 of file environment.h.

template<typename T_arg1, typename T_arg2, typename T_arg3>
int( * DACLIPS::Environment::get_callback ( const sigc::slot3< std::string, T_arg1, T_arg2, T_arg3 > &  slot  )  [inline, protected]

Definition at line 599 of file environment.h.

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
int( * DACLIPS::Environment::get_callback ( const sigc::slot4< std::string, T_arg1, T_arg2, T_arg3, T_arg4 > &  slot  )  [inline, protected]

Definition at line 603 of file environment.h.

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
int( * DACLIPS::Environment::get_callback ( const sigc::slot5< std::string, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 > &  slot  )  [inline, protected]

Definition at line 607 of file environment.h.

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
int( * DACLIPS::Environment::get_callback ( const sigc::slot6< std::string, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 > &  slot  )  [inline, protected]

Definition at line 611 of file environment.h.

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
int( * DACLIPS::Environment::get_callback ( const sigc::slot7< std::string, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > &  slot  )  [inline, protected]

Definition at line 615 of file environment.h.

template<typename T_return>
int( * DACLIPS::Environment::get_callback ( const sigc::slot0< T_return > &  slot  )  [inline, protected]

Definition at line 619 of file environment.h.

template<typename T_return, typename T_arg1>
int( * DACLIPS::Environment::get_callback ( const sigc::slot1< T_return, T_arg1 > &  slot  )  [inline, protected]

Definition at line 623 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2>
int( * DACLIPS::Environment::get_callback ( const sigc::slot2< T_return, T_arg1, T_arg2 > &  slot  )  [inline, protected]

Definition at line 627 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3>
int( * DACLIPS::Environment::get_callback ( const sigc::slot3< T_return, T_arg1, T_arg2, T_arg3 > &  slot  )  [inline, protected]

Definition at line 631 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
int( * DACLIPS::Environment::get_callback ( const sigc::slot4< T_return, T_arg1, T_arg2, T_arg3, T_arg4 > &  slot  )  [inline, protected]

Definition at line 635 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
int( * DACLIPS::Environment::get_callback ( const sigc::slot5< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 > &  slot  )  [inline, protected]

Definition at line 639 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
int( * DACLIPS::Environment::get_callback ( const sigc::slot6< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 > &  slot  )  [inline, protected]

Definition at line 643 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
int( * DACLIPS::Environment::get_callback ( const sigc::slot7< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > &  slot  )  [inline, protected]

Definition at line 647 of file environment.h.

int DACLIPS::Environment::get_arg_count ( void *  env  )  [static, protected]

Definition at line 743 of file environment.cpp.

void * DACLIPS::Environment::get_function_context ( void *  env  )  [static, protected]

Definition at line 747 of file environment.cpp.

void * DACLIPS::Environment::add_symbol ( const char *  s  )  [static, protected]

Definition at line 752 of file environment.cpp.

bool DACLIPS::Environment::batch_evaluate ( const std::string &  filename  ) 

Evaluates a series of commands in the specified file

Returns:
false if an error occurred, true otherwise

bool DACLIPS::Environment::binary_load ( const std::string &  filename  ) 

Loads a binary image of constructs into the CLIPS data base

Returns:
false if an error occurred, true otherwise

bool DACLIPS::Environment::binary_save ( const std::string &  filename  ) 

Saves a binary image of constructs from the CLIPS data base

Returns:
false if an error occurred, true on success

bool DACLIPS::Environment::build ( const std::string &  construct  ) 

Allows a construct to be defined

Returns:
false if the construct could not be parsed, true on success

void DACLIPS::Environment::clear (  ) 

Clears the environment

Values DACLIPS::Environment::evaluate ( const std::string &  expression  ) 

Evaluates and expression and returns a vector of the results. If the expression could not be evaluated a zero-length vector is returned.

Values DACLIPS::Environment::function ( const std::string &  function_name,
const std::string &  arguments = std::string() 
)

Evaluates a CLIPS function. If the function could not be evaluated a zero-length vector is returned.

int DACLIPS::Environment::load ( const std::string &  filename  ) 

Loads a set of constructs into the CLIPS data base

Returns:
Zero if the file couldn’t be opened, -1 if the file was opened but an error occurred while loading, and 1 if the file was opened and no errors occurred while loading.
If syntactic errors are in the constructs, load still will attempt to read the entire file and error notices will be sent to werror.

void DACLIPS::Environment::reset (  ) 

Resets the CLIPS environment

bool DACLIPS::Environment::save ( const std::string &  filename  ) 

Saves a set of constructs to the specified file

Returns:
false if an error occurred, true on success

bool DACLIPS::Environment::auto_float_dividend_enabled (  ) 

Returns the current state of the auto-float dividend behavior. When enabled, the dividend of the division function is automatically converted to a floating point number.

Returns:
true if enabled, false if disabled

bool DACLIPS::Environment::use_auto_float_dividend ( bool  use = true  ) 

Sets the auto-float dividend behavior. When enabled, the dividend of the division function is automatically converted to a floating point number. Default is enabled.

Returns:
the new value for the behavior; true if enabled, false if disabled

bool DACLIPS::Environment::dynamic_constraint_checking_enabled (  ) 

Returns the current state of the dynamic constraint checking behavior. When enabled, slot values for newly created data objects are checked for constraint violations.

Returns:
true if enabled, false if disabled

bool DACLIPS::Environment::use_dynamic_constraint_checking ( bool  use = true  ) 

Sets the dynamic constraint checking behavior. When enabled, slot values for newly created data objects are checked for constraint violations. Default is disabled.

Returns:
the new value for the behavior; true if enabled, false if disabled

bool DACLIPS::Environment::sequence_operator_recognition_enabled (  ) 

Returns the current state of the sequence operator recognition behavior. When enabled, multifield variables are expanded and passed as separate arguments in the function call.

Returns:
true if enabled, false if disabled

bool DACLIPS::Environment::use_sequence_operator_recognition ( bool  use = true  ) 

Sets the sequence operator recognition behavior. When enabled, multifield variables are expanded and passed as separate arguments in the function call. Default is disabled.

Returns:
the new value for the behavior; true if enabled, false if disabled

bool DACLIPS::Environment::static_constraint_checking_enabled (  ) 

Returns the current state of the static constraint checking behavior. When enabled, constraint violations are checked when function calls and constructs are parsed.

Returns:
true if enabled, false if disabled

bool DACLIPS::Environment::use_static_constraint_checking ( bool  use = true  ) 

Sets the static constraint checking behavior. When enabled, constraint violations are checked when function calls and constructs are parsed.

Returns:
the new value for the behavior; true if enabled, false if disabled

bool DACLIPS::Environment::fact_duplication_enabled (  ) 

Returns the current state of the fact duplication behavior. When disabled, asserting a duplicate of a fact in the fact-list will result in no effect. When enabled, a duplicate fact is asserted with a new fact-index. Default is disabled.

Returns:
true if enabled, false if disabled

bool DACLIPS::Environment::use_fact_duplication ( bool  use = true  ) 

Sets the static constraint checking behavior. When enabled, constraint violations are checked when function calls and constructs are parsed.

Returns:
the new value for the behavior; true if enabled, false if disabled

bool DACLIPS::Environment::incremental_reset_enabled (  ) 

bool DACLIPS::Environment::use_incremental_reset ( bool  use = true  ) 

bool DACLIPS::Environment::global_reset_enable (  ) 

bool DACLIPS::Environment::use_global_reset ( bool  use = true  ) 

bool DACLIPS::Environment::is_dribble_active (  ) 

Determines if the storing of dribble information is active.

Returns:
true if dribbling is active, false if it is inactive

bool DACLIPS::Environment::dribble_off (  ) 

Turns off the storing of dribble information

Returns:
false if an error occurred closing the file; true on success.

bool DACLIPS::Environment::dribble_on ( const std::string &  dribble_file  ) 

Allows the dribble function of CLIPS to be turned on

Returns:
false if an error occurred opening the file; true on success.

int DACLIPS::Environment::is_watched ( const std::string &  item  ) 

Determine if an item is being watched

Parameters:
item must be one of the following strings: facts, rules, activations, focus, compilations, statistics, globals, instances, slots, messages, message-handlers, generic-functions, method, or deffunctions.
Returns:
1 if the item is watched, 0 if the item is not watched, -1 if the item doesn't exist

bool DACLIPS::Environment::watch ( const std::string &  item  ) 

bool DACLIPS::Environment::unwatch ( const std::string &  item  ) 

void DACLIPS::Environment::set_as_current (  ) 

Fact::pointer DACLIPS::Environment::assert_fact ( const std::string &  factstring  ) 

void DACLIPS::Environment::clear_focus_stack (  ) 

DefaultFacts::pointer DACLIPS::Environment::get_default_facts ( const std::string &  default_facts_name  ) 

TODO Facts

std::vector<std::string> DACLIPS::Environment::get_default_facts_names (  ) 

Gets a list of default facts names from all modules

std::vector<std::string> DACLIPS::Environment::get_default_facts_names ( const Module module  ) 

Gets a list of default facts names from a specific module

std::vector<std::string> DACLIPS::Environment::get_default_facts_names ( Module::pointer  module  ) 

Gets a list of default facts names from a specific module

DefaultFacts::pointer DACLIPS::Environment::get_default_facts_list_head (  ) 

Template::pointer DACLIPS::Environment::get_template ( const std::string &  template_name  ) 

std::vector<std::string> DACLIPS::Environment::get_template_names (  ) 

Gets a list of template names from all modules

std::vector<std::string> DACLIPS::Environment::get_template_names ( const Module module  ) 

Gets a list of template names from a specific module

std::vector<std::string> DACLIPS::Environment::get_template_names ( Module::pointer  module  ) 

Gets a list of template names from a specific module

Template::pointer DACLIPS::Environment::get_template_list_head (  ) 

Rule::pointer DACLIPS::Environment::get_rule ( const std::string &  rule_name  ) 

std::vector<std::string> DACLIPS::Environment::get_rule_names (  ) 

Gets a list of rule names from all modules

std::vector<std::string> DACLIPS::Environment::get_rule_names ( const Module module  ) 

Gets a list of rule names from a specific module

std::vector<std::string> DACLIPS::Environment::get_rule_names ( Module::pointer  module  ) 

Gets a list of rule names from a specific module

Rule::pointer DACLIPS::Environment::get_rule_list_head (  ) 

void DACLIPS::Environment::remove_rules (  ) 

Module::pointer DACLIPS::Environment::get_module ( const std::string &  module_name  ) 

Module::pointer DACLIPS::Environment::get_current_module (  ) 

std::vector<std::string> DACLIPS::Environment::get_module_names (  ) 

Module::pointer DACLIPS::Environment::get_module_list_head (  ) 

void DACLIPS::Environment::refresh_agenda (  ) 

Refreshes the agenda for all modules. Recomputes the salience values for all activations on the agenda and then reorders the agenda.

void DACLIPS::Environment::refresh_agenda ( const Module module  ) 

Refreshes the agenda for a specific module. Recomputes the salience values for all activations on the agenda and then reorders the agenda.

void DACLIPS::Environment::refresh_agenda ( Module::pointer  module  ) 

Refreshes the agenda for a specific module. Recomputes the salience values for all activations on the agenda and then reorders the agenda.

void DACLIPS::Environment::reorder_agenda (  ) 

Reorders the agenda for all modules. Reorders the agenda based on the current conflict resolution strategy and current activation saliences.

void DACLIPS::Environment::reorder_agenda ( const Module module  ) 

Reorders the agenda for a specific module. Reorders the agenda based on the current conflict resolution strategy and current activation saliences.

void DACLIPS::Environment::reorder_agenda ( Module::pointer  module  ) 

Reorders the agenda for a specific module. Reorders the agenda based on the current conflict resolution strategy and current activation saliences.

long int DACLIPS::Environment::run ( long int  runlimit = -1  ) 

Allows rules to execute

Returns:
The number of rules that fired
Parameters:
runlimit How many rules should fire If runlimit is negative, rules will fire until the agenda is empty.
If a threaded execution is active, this call will block until the threaded execution queue is empty.

void DACLIPS::Environment::run_threaded ( long int  runlimit = -1,
int  priority = 0 
)

Executes rules in a separate thread.

If an execution thread is already running, the job will be added to the run queue at the priority level specified. The higher the priority, the higher in the queue. After each execution, the run queue is checked and the next highest priority job is executed.

If the normal run() method is executing, the execution thread will be created, but will block until the previously executing call to run() is completed. After run() completes, the execution thread will unblock and start execution.

The methods of environment are not threadsafe yet. This is just an early look at threading, but making it threadsafe will not be too difficult. For now, to be safe, join the run thread before changing anything in the environment.

void DACLIPS::Environment::join_run_thread (  ) 

Waits until the execution thread is finished

sigc::signal<void, long int> DACLIPS::Environment::signal_run (  ) 

Signal emitted when the rules are executed. The signal emits the number of rules executed.

SalienceEvaluation DACLIPS::Environment::get_salience_evaluation (  ) 

Gets the salience evaluation mode

SalienceEvaluation DACLIPS::Environment::set_salience_evaluation ( SalienceEvaluation  se  ) 

Sets the salience evaluation mode.

Returns:
the old salience evaluation mode

ConflictResolution DACLIPS::Environment::get_conflict_resolution_strategy (  ) 

Gets the current conflict resolution strategy

ConflictResolution DACLIPS::Environment::set_conflict_resolution_strategy ( ConflictResolution  cr  ) 

Sets the conflict resolution strategy.

Returns:
the old conflict resolution strategy

bool DACLIPS::Environment::check_agenda_changed (  ) 

TODO ListDefmodules Checks whether the agenda has changed and emits the agenda changed signal if it has. The agenda does not include any callbacks when the agenda is changed. This method returns true if the agenda has changed and emits the agenda changed signal.

Module::pointer DACLIPS::Environment::get_focused_module (  ) 

std::vector<std::string> DACLIPS::Environment::get_focus_stack (  ) 

Activation::pointer DACLIPS::Environment::get_activation_list_head (  ) 

Global::pointer DACLIPS::Environment::get_global ( const std::string &  global_name  ) 

Global::pointer DACLIPS::Environment::get_global_list_head (  ) 

std::vector<std::string> DACLIPS::Environment::get_globals_names (  ) 

Gets a list of global names from all modules

std::vector<std::string> DACLIPS::Environment::get_globals_names ( const Module module  ) 

Gets a list of global names from a specific module

std::vector<std::string> DACLIPS::Environment::get_globals_names ( Module::pointer  module  ) 

Gets a list of global names from a specific module

bool DACLIPS::Environment::check_globals_changed (  ) 

Function::pointer DACLIPS::Environment::get_function ( const std::string &  function_name  ) 

Function::pointer DACLIPS::Environment::get_function_list_head (  ) 

std::vector<std::string> DACLIPS::Environment::get_function_names (  ) 

Gets a list of function names from all modules

std::vector<std::string> DACLIPS::Environment::get_function_names ( const Module module  ) 

Gets a list of function names from a specific module

std::vector<std::string> DACLIPS::Environment::get_function_names ( Module::pointer  module  ) 

Gets a list of function names from a specific module

sigc::signal<void> DACLIPS::Environment::signal_clear (  ) 

sigc::signal<void> DACLIPS::Environment::signal_periodic (  ) 

sigc::signal<void> DACLIPS::Environment::signal_reset (  ) 

sigc::signal<void> DACLIPS::Environment::signal_rule_firing (  ) 

sigc::signal<void> DACLIPS::Environment::signal_agenda_changed (  ) 

sigc::signal<void> DACLIPS::Environment::signal_globals_changed (  ) 

template<typename T_return>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot0< T_return > &  slot 
) [inline]

template<typename T_return, typename T_arg1>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot1< T_return, T_arg1 > &  slot 
) [inline]

template<typename T_return, typename T_arg1, typename T_arg2>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot2< T_return, T_arg1, T_arg2 > &  slot 
) [inline]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot3< T_return, T_arg1, T_arg2, T_arg3 > &  slot 
) [inline]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot4< T_return, T_arg1, T_arg2, T_arg3, T_arg4 > &  slot 
) [inline]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot5< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 > &  slot 
) [inline]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot6< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 > &  slot 
) [inline]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
bool DACLIPS::Environment::add_function ( std::string  name,
const sigc::slot7< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > &  slot 
) [inline]

bool DACLIPS::Environment::remove_function ( std::string  name  ) 

void DACLIPS::Environment::threaded_run (  )  [protected]

Protected method that does the actual work

static void DACLIPS::Environment::clear_callback ( void *  env  )  [static, protected]

static void DACLIPS::Environment::periodic_callback ( void *  env  )  [static, protected]

static void DACLIPS::Environment::reset_callback ( void *  env  )  [static, protected]

static void DACLIPS::Environment::rule_firing_callback ( void *  end  )  [static, protected]

static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [static, protected]

template<typename T_arg1>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_arg1, typename T_arg2>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_arg1, typename T_arg2, typename T_arg3>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
static void* DACLIPS::Environment::strcallback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
static T_return DACLIPS::Environment::callback ( void *  theEnv  )  [inline, static, protected]

int( * DACLIPS::Environment::get_callback ( const sigc::slot0< std::string > &  slot  )  [inline, protected]

Definition at line 587 of file environment.h.

template<typename T_arg1>
int( * DACLIPS::Environment::get_callback ( const sigc::slot1< std::string, T_arg1 > &  slot  )  [inline, protected]

Definition at line 591 of file environment.h.

template<typename T_arg1, typename T_arg2>
int( * DACLIPS::Environment::get_callback ( const sigc::slot2< std::string, T_arg1, T_arg2 > &  slot  )  [inline, protected]

Definition at line 595 of file environment.h.

template<typename T_arg1, typename T_arg2, typename T_arg3>
int( * DACLIPS::Environment::get_callback ( const sigc::slot3< std::string, T_arg1, T_arg2, T_arg3 > &  slot  )  [inline, protected]

Definition at line 599 of file environment.h.

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
int( * DACLIPS::Environment::get_callback ( const sigc::slot4< std::string, T_arg1, T_arg2, T_arg3, T_arg4 > &  slot  )  [inline, protected]

Definition at line 603 of file environment.h.

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
int( * DACLIPS::Environment::get_callback ( const sigc::slot5< std::string, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 > &  slot  )  [inline, protected]

Definition at line 607 of file environment.h.

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
int( * DACLIPS::Environment::get_callback ( const sigc::slot6< std::string, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 > &  slot  )  [inline, protected]

Definition at line 611 of file environment.h.

template<typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
int( * DACLIPS::Environment::get_callback ( const sigc::slot7< std::string, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > &  slot  )  [inline, protected]

Definition at line 615 of file environment.h.

template<typename T_return>
int( * DACLIPS::Environment::get_callback ( const sigc::slot0< T_return > &  slot  )  [inline, protected]

Definition at line 619 of file environment.h.

template<typename T_return, typename T_arg1>
int( * DACLIPS::Environment::get_callback ( const sigc::slot1< T_return, T_arg1 > &  slot  )  [inline, protected]

Definition at line 623 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2>
int( * DACLIPS::Environment::get_callback ( const sigc::slot2< T_return, T_arg1, T_arg2 > &  slot  )  [inline, protected]

Definition at line 627 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3>
int( * DACLIPS::Environment::get_callback ( const sigc::slot3< T_return, T_arg1, T_arg2, T_arg3 > &  slot  )  [inline, protected]

Definition at line 631 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4>
int( * DACLIPS::Environment::get_callback ( const sigc::slot4< T_return, T_arg1, T_arg2, T_arg3, T_arg4 > &  slot  )  [inline, protected]

Definition at line 635 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5>
int( * DACLIPS::Environment::get_callback ( const sigc::slot5< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5 > &  slot  )  [inline, protected]

Definition at line 639 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6>
int( * DACLIPS::Environment::get_callback ( const sigc::slot6< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6 > &  slot  )  [inline, protected]

Definition at line 643 of file environment.h.

template<typename T_return, typename T_arg1, typename T_arg2, typename T_arg3, typename T_arg4, typename T_arg5, typename T_arg6, typename T_arg7>
int( * DACLIPS::Environment::get_callback ( const sigc::slot7< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > &  slot  )  [inline, protected]

Definition at line 647 of file environment.h.

static int DACLIPS::Environment::get_arg_count ( void *  env  )  [static, protected]

static void* DACLIPS::Environment::get_function_context ( void *  env  )  [static, protected]

static void* DACLIPS::Environment::add_symbol ( const char *  s  )  [static, protected]


Member Data Documentation

std::map< std::string, any > DACLIPS::Environment::m_slots [protected]

Holds any dynamically created slots. Type any is used to hold different smart pointers, each of which hold different slots. When a slot is undefined, or at destruction when the map goes out of scope, the memory is reclaimed through the smart pointer.

Definition at line 494 of file environment.h.

sigc::signal< void > DACLIPS::Environment::m_signal_clear [protected]

Definition at line 496 of file environment.h.

sigc::signal< void > DACLIPS::Environment::m_signal_periodic [protected]

Definition at line 497 of file environment.h.

sigc::signal< void > DACLIPS::Environment::m_signal_reset [protected]

Definition at line 498 of file environment.h.

sigc::signal< void > DACLIPS::Environment::m_signal_rule_firing [protected]

Definition at line 499 of file environment.h.

sigc::signal< void > DACLIPS::Environment::m_signal_agenda_changed [protected]

Definition at line 500 of file environment.h.

sigc::signal< void > DACLIPS::Environment::m_signal_globals_changed [protected]

Definition at line 501 of file environment.h.

Glib::Thread * DACLIPS::Environment::m_run_thread [protected]

A pointer to the currently running thread

Definition at line 521 of file environment.h.

std::priority_queue< Job > DACLIPS::Environment::m_run_queue [protected]

A priority queue of jobs to run

Definition at line 522 of file environment.h.

Glib::Mutex DACLIPS::Environment::m_mutex_run_queue [protected]

Mutex that protects access to the run queue

Definition at line 523 of file environment.h.

Glib::Mutex DACLIPS::Environment::m_mutex_run [protected]

Mutex that protects against multiple executions

Definition at line 524 of file environment.h.

Mutex that locks when a threaded run is executing

Definition at line 525 of file environment.h.

Mutex that protects against multiple signal emits

Definition at line 526 of file environment.h.

sigc::signal< void, long int > DACLIPS::Environment::m_signal_run [protected]

Signal emitted when a job is run

Definition at line 527 of file environment.h.

std::map< void *, Environment * > DACLIPS::Environment::m_environment_map [static, protected]

Definition at line 532 of file environment.h.


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

Generated on Mon Jan 10 22:33:44 2011 by  doxygen 1.5.6