Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

soar_ecore_utils.h File Reference

Go to the source code of this file.

Data Structures

struct  production_memory_use_struct
struct  replayed_id_map_struct
struct  wme_filter_struct

Typedefs

typedef production_memory_use_struct production_memory_use
typedef wme_filter_struct wme_filter
typedef replayed_id_map_struct replayed_id_map

Functions

void cb_soar_PrintToFile (soar_callback_agent a, soar_callback_data d, soar_call_data c)
void capture_input_wme (enum captured_action_type action, soarapi_wme *sw, wme *w)
void replay_input_wme (soar_callback_agent agent, soar_callback_data dummy, soar_call_data mode)
int compare_firing_counts (const void *e1, const void *e2)
production_memory_useprint_memories_insert_in_list (production_memory_use *n, production_memory_use *l)
int read_wme_filter_component (const char *s, Symbol **sym)
void soar_alternate_input (agent *ai_agent, const char *ai_string, const char *ai_suffix, bool ai_exit)
int read_attribute_from_string (Symbol *id, const char *the_lexeme, Symbol **attr)
void print_preference_and_source (preference *pref, bool print_source, wme_trace_type wtt)
unsigned long int hash_soar_id_string (void *id, short nbits)
char * replayed_hash_contains_id (char *fromid)


Typedef Documentation

typedef struct production_memory_use_struct production_memory_use
 

Referenced by print_memories_insert_in_list(), and soar_ecPrintMemories().

typedef struct replayed_id_map_struct replayed_id_map
 

typedef struct wme_filter_struct wme_filter
 

Referenced by passes_wme_filtering(), soar_ecAddWmeFilter(), soar_ecListWmeFilters(), soar_ecRemoveWmeFilter(), and soar_ecResetWmeFilters().


Function Documentation

void capture_input_wme enum captured_action_type  action,
soarapi_wme sw,
wme w
 

Definition at line 67 of file soar_ecore_utils.c.

References action, ADD_WME, wme_struct::attr, sapiwme_st::attr, wme_struct::id, sapiwme_st::id, REMOVE_WME, soarapi_wme, symbol_to_string(), sapiwme_st::timetag, wme_struct::value, sapiwme_st::value, and wme.

Referenced by soar_cAddWme(), and soar_cRemoveWme().

void cb_soar_PrintToFile soar_callback_agent  a,
soar_callback_data  d,
soar_call_data  c
 

Definition at line 6 of file soar_ecore_utils.c.

References soar_call_data, soar_callback_agent, and soar_callback_data.

Referenced by soar_ecOpenLog().

int compare_firing_counts const void *  e1,
const void *  e2
 

Definition at line 177 of file soar_ecore_utils.c.

References production_struct::firing_count, and production.

Referenced by soar_ecPrintTopProductionFirings().

unsigned long int hash_soar_id_string void *  id,
short  nbits
 

production_memory_use* print_memories_insert_in_list production_memory_use n,
production_memory_use l
 

Definition at line 191 of file soar_ecore_utils.c.

References list, production_memory_use_struct::mem, production_memory_use_struct::next, and production_memory_use.

Referenced by soar_ecPrintMemories().

void print_preference_and_source preference pref,
bool  print_source,
wme_trace_type  wtt
 

Definition at line 331 of file soar_ecore_utils.c.

References preference_struct::inst, preference_struct::o_supported, preference, preference_type_indicator(), print(), print_instantiation_with_wmes(), print_object_trace(), print_string(), preference_struct::referent, preference_struct::type, preference_struct::value, and wme_trace_type.

Referenced by soar_ecPrintPreferences().

int read_attribute_from_string Symbol id,
const char *  the_lexeme,
Symbol **  attr
 

Definition at line 273 of file soar_ecore_utils.c.

References find_float_constant(), find_identifier(), find_int_constant(), find_slot(), find_sym_constant(), FLOAT_CONSTANT_LEXEME, get_lexeme_from_string(), IDENTIFIER_LEXEME, INT_CONSTANT_LEXEME, read_identifier_or_context_variable(), slot, SOAR_ERROR, SOAR_OK, SYM_CONSTANT_LEXEME, Symbol, and VARIABLE_LEXEME.

Referenced by soar_ecPrintPreferences(), and soar_Preferences().

int read_wme_filter_component const char *  s,
Symbol **  sym
 

Definition at line 218 of file soar_ecore_utils.c.

References find_identifier(), get_lexeme_from_string(), IDENTIFIER_LEXEME, make_symbol_for_current_lexeme(), and Symbol.

Referenced by soar_ecAddWmeFilter(), and soar_ecRemoveWmeFilter().

void replay_input_wme soar_callback_agent  agent,
soar_callback_data  dummy,
soar_call_data  mode
 

Definition at line 95 of file soar_ecore_utils.c.

References captured_action_struct::action, ADD_WME, agent, captured_action_struct::args, sapiwme_st::attr, captured_action, sapiwme_st::id, captured_action_struct::next, print(), psoar_wme, REMOVE_WME, soar_cAddWme(), soar_call_data, soar_callback_agent, soar_callback_data, soar_cRemoveWmeUsingTimetag(), soarapi_wme, sapiwme_st::timetag, and sapiwme_st::value.

Referenced by soar_ecReplayInput().

char* replayed_hash_contains_id char *  fromid  ) 
 

void soar_alternate_input agent ai_agent,
const char *  ai_string,
const char *  ai_suffix,
bool  ai_exit
 

Definition at line 250 of file soar_ecore_utils.c.

References agent, agent_struct::alternate_input_exit, agent_struct::alternate_input_string, agent_struct::alternate_input_suffix, and agent_struct::current_char.

Referenced by soar_ecSp(), and soar_Print().


Generated on Thu Dec 11 13:00:32 2003 for Soar Kernel by doxygen 1.3.5