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

init_soar.c File Reference

Go to the source code of this file.

Functions

void determine_highest_active_production_level_in_stack ()
void determine_highest_active_production_level_in_stack_apply ()
void determine_highest_active_production_level_in_stack_propose ()
void initialize_consistency_calculations_for_new_decision ()
void just_before_exit_soar (void)
void exit_soar (void)
void abort_with_fatal_error (char *msg)
void init_real_time (void)
void wake_from_attention_lapse (void)
void init_attention_lapse (void)
void start_attention_lapse (long duration)
void init_sysparams (void)
void add_pwatch (production *prod)
bool remove_pwatch_test_fn (cons *c)
void remove_pwatch (production *prod)
void reset_production_firing_counts (void)
void reset_statistics (void)
void do_one_top_level_phase (void)
void run_forever (void)
void run_for_n_phases (long n)
void run_for_n_elaboration_cycles (long n)
void run_for_n_modifications_of_output (long n)
void run_for_n_decision_cycles (long n)
Symbolattr_of_slot_just_decided (void)
void run_for_n_selections_of_slot (long n, Symbol *attr_of_slot)
void run_for_n_selections_of_slot_at_level (long n, Symbol *attr_of_slot, goal_stack_level level)
void print_startup_banner (void)
char * getenv ()
int terminate_soar (void)

Variables

int soar_agent_ids [MAX_SIMULTANEOUS_AGENTS]
soar_global_callback_array soar_global_callbacks
unsigned long soar_global_callback_error
timeval * current_real_time
long lapse_duration
productionprod_to_remove_pwatch_of
char * soar_news_string


Function Documentation

void abort_with_fatal_error char *  msg  ) 
 

Definition at line 109 of file init_soar.c.

References print(), soar_agent, soar_call_data, soar_invoke_callbacks(), stop_log_file(), and SYSTEM_TERMINATION_CALLBACK.

Referenced by add_rete_test_list_to_tests(), add_rete_tests_for_test(), allocate_memory(), copy_of_equality_test_found_in_test(), deallocate_preference(), deallocate_production(), deallocate_rete_node(), deallocate_symbol(), error_rete_test_routine(), find_goal_for_match_set_change_assertion(), get_next_assertion(), get_next_char(), hash_condition(), hash_test(), highest_active_goal_apply(), highest_active_goal_propose(), init_memory_pool(), make_symbol_for_current_lexeme(), merge_into_mp_node(), next_available_agent_id(), p_node_left_removal(), print(), print_trace_format_list(), promote_id_and_tc(), remove_output_link_tc_info(), remove_token_and_subtree(), rete_error_left(), rete_error_right(), reteload_am_from_index(), reteload_node_and_children(), reteload_rhs_value(), reteload_symbol_from_index(), retesave_rete_node_and_children(), reverse_direction_of_relational_test(), run_preference_semantics(), single_rete_tests_are_identical(), soar_default_destroy_agent_procedure(), trace_format_list_to_string(), update_node_with_matches_from_above(), var_bound_in_reconstructed_conds(), and variablize_nots_and_insert_into_conditions().

void add_pwatch production prod  ) 
 

Definition at line 235 of file init_soar.c.

References production, and production_struct::trace_firings.

Symbol* attr_of_slot_just_decided void   ) 
 

Definition at line 1160 of file init_soar.c.

References Symbol.

Referenced by run_for_n_selections_of_slot(), and run_for_n_selections_of_slot_at_level().

void determine_highest_active_production_level_in_stack  ) 
 

void determine_highest_active_production_level_in_stack_apply  ) 
 

void determine_highest_active_production_level_in_stack_propose  ) 
 

void do_one_top_level_phase void   ) 
 

Definition at line 415 of file init_soar.c.

References AFTER_DECISION_CYCLE_CALLBACK, AFTER_DECISION_PHASE_CALLBACK, AFTER_HALT_SOAR_CALLBACK, AFTER_INPUT_PHASE_CALLBACK, AFTER_OUTPUT_PHASE_CALLBACK, AFTER_PREFERENCE_PHASE_CALLBACK, AFTER_WM_PHASE_CALLBACK, any_assertions_or_retractions_ready(), BEFORE_DECISION_CYCLE_CALLBACK, BEFORE_DECISION_PHASE_CALLBACK, BEFORE_INPUT_PHASE_CALLBACK, BEFORE_OUTPUT_PHASE_CALLBACK, BEFORE_PREFERENCE_PHASE_CALLBACK, BEFORE_WM_PHASE_CALLBACK, create_top_goal(), current_real_time, DECISION_PHASE, determine_highest_active_production_level_in_stack_apply(), determine_highest_active_production_level_in_stack_propose(), DETERMINE_LEVEL_PHASE, do_decision_phase(), do_input_cycle(), do_output_cycle(), do_preference_phase(), do_working_memory_phase(), init_lapse_duration(), initialize_consistency_calculations_for_new_decision(), INPUT_PHASE, lapse_duration, OUTPUT_PHASE, PREFERENCE_PHASE, print(), print_lowest_slot_in_context_stack(), print_string(), soar_agent, soar_call_data, soar_invoke_callbacks(), start_attention_lapse(), start_timer(), stop_timer(), wake_from_attention_lapse(), and WM_PHASE.

Referenced by run_for_n_decision_cycles(), run_for_n_elaboration_cycles(), run_for_n_modifications_of_output(), run_for_n_phases(), run_for_n_selections_of_slot(), run_for_n_selections_of_slot_at_level(), and run_forever().

void exit_soar void   ) 
 

Definition at line 101 of file init_soar.c.

References just_before_exit_soar().

Referenced by terminate_soar().

char* getenv  ) 
 

void init_attention_lapse void   ) 
 

Definition at line 152 of file init_soar.c.

References current_real_time, and wake_from_attention_lapse().

Referenced by init_soar_agent().

void init_real_time void   ) 
 

Definition at line 133 of file init_soar.c.

References current_real_time.

Referenced by init_soar_agent().

void init_sysparams void   ) 
 

Definition at line 181 of file init_soar.c.

Referenced by init_soar_agent().

void initialize_consistency_calculations_for_new_decision  ) 
 

void just_before_exit_soar void   ) 
 

Definition at line 85 of file init_soar.c.

References agent, all_soar_agents, cons, cons_struct::first, cons_struct::rest, soar_call_data, soar_invoke_callbacks(), stop_log_file(), and SYSTEM_TERMINATION_CALLBACK.

Referenced by exit_soar(), and soar_cQuit().

void print_startup_banner void   ) 
 

Definition at line 1263 of file init_soar.c.

References print(), soar_news_string, and soar_version_string.

void remove_pwatch production prod  ) 
 

Definition at line 250 of file init_soar.c.

References extract_list_elements(), free_list(), prod_to_remove_pwatch_of, production, remove_pwatch_test_fn(), and production_struct::trace_firings.

bool remove_pwatch_test_fn cons c  ) 
 

Definition at line 245 of file init_soar.c.

References cons, cons_struct::first, and prod_to_remove_pwatch_of.

Referenced by remove_pwatch().

void reset_production_firing_counts void   ) 
 

Definition at line 270 of file init_soar.c.

References production_struct::firing_count, production_struct::next, and production.

Referenced by reset_statistics().

void reset_statistics void   ) 
 

Definition at line 281 of file init_soar.c.

References DECISION_PHASE, DETERMINE_LEVEL_PHASE, INPUT_PHASE, OUTPUT_PHASE, PREFERENCE_PHASE, reset_production_firing_counts(), reset_timer(), and WM_PHASE.

Referenced by init_soar_agent(), and soar_cReInitSoar().

void run_for_n_decision_cycles long  n  ) 
 

Definition at line 1125 of file init_soar.c.

References do_one_top_level_phase(), run_forever(), start_timer(), and stop_timer().

Referenced by execute_go_selection(), run_current_agent(), and soar_cRun().

void run_for_n_elaboration_cycles long  n  ) 
 

Definition at line 1046 of file init_soar.c.

References do_one_top_level_phase(), run_forever(), start_timer(), and stop_timer().

Referenced by execute_go_selection(), run_current_agent(), and soar_cRun().

void run_for_n_modifications_of_output long  n  ) 
 

Definition at line 1084 of file init_soar.c.

References do_one_top_level_phase(), OUTPUT_PHASE, run_forever(), start_timer(), and stop_timer().

Referenced by execute_go_selection(), run_current_agent(), and soar_cRun().

void run_for_n_phases long  n  ) 
 

Definition at line 1022 of file init_soar.c.

References do_one_top_level_phase(), run_forever(), start_timer(), and stop_timer().

Referenced by execute_go_selection(), run_current_agent(), and soar_cRun().

void run_for_n_selections_of_slot long  n,
Symbol attr_of_slot
 

Definition at line 1167 of file init_soar.c.

References attr_of_slot_just_decided(), DECISION_PHASE, do_one_top_level_phase(), run_forever(), start_timer(), stop_timer(), and Symbol.

Referenced by execute_go_selection(), run_current_agent(), and soar_cRun().

void run_for_n_selections_of_slot_at_level long  n,
Symbol attr_of_slot,
goal_stack_level  level
 

Definition at line 1198 of file init_soar.c.

References attr_of_slot_just_decided(), DECISION_PHASE, do_one_top_level_phase(), goal_stack_level, run_forever(), start_timer(), stop_timer(), and Symbol.

Referenced by execute_go_selection(), and run_current_agent().

void run_forever void   ) 
 

Definition at line 1005 of file init_soar.c.

References do_one_top_level_phase(), start_timer(), and stop_timer().

Referenced by run_for_n_decision_cycles(), run_for_n_elaboration_cycles(), run_for_n_modifications_of_output(), run_for_n_phases(), run_for_n_selections_of_slot(), and run_for_n_selections_of_slot_at_level().

void start_attention_lapse long  duration  ) 
 

Definition at line 161 of file init_soar.c.

References start_timer().

Referenced by do_one_top_level_phase().

int terminate_soar void   ) 
 

Definition at line 1279 of file init_soar.c.

References exit_soar(), and soar_agent.

void wake_from_attention_lapse void   ) 
 

Definition at line 145 of file init_soar.c.

References start_timer().

Referenced by do_one_top_level_phase(), and init_attention_lapse().


Variable Documentation

struct timeval* current_real_time
 

Definition at line 67 of file init_soar.c.

Referenced by do_one_top_level_phase(), init_attention_lapse(), init_lapse_duration(), and init_real_time().

long lapse_duration
 

Definition at line 73 of file init_soar.c.

Referenced by do_one_top_level_phase().

production* prod_to_remove_pwatch_of
 

Definition at line 243 of file init_soar.c.

Referenced by remove_pwatch(), and remove_pwatch_test_fn().

int soar_agent_ids[MAX_SIMULTANEOUS_AGENTS]
 

Definition at line 59 of file init_soar.c.

unsigned long soar_global_callback_error
 

Definition at line 61 of file init_soar.c.

soar_global_callback_array soar_global_callbacks
 

Definition at line 60 of file init_soar.c.

char* soar_news_string
 

Initial value:

 "\
General questions and topics for discussion should be sent to\n\
soar-group@umich.edu. Bug reports should be sent to soar-bugs@umich.edu\n\
The current bug-list may be obtained by sending mail to\n\
soar-bugs@umich.edu with the Subject: line \"bug list\".\n\
The Soar Home Page URL is:  http://ai.eecs.umich.edu/soar\n\
\n\
Copyright (c) 1995-1999 Carnegie Mellon University,\n\
                         University of Michigan,\n\
                         University of Southern California/Information\n\
                         Sciences Institute.  All rights reserved.\n\
The Soar consortium proclaims this software is in the public domain, and\n\
is made available AS IS.  Carnegie Mellon University, The University of \n\
Michigan, and The University of Southern California/Information Sciences \n\
Institute make no warranties about the software or its performance,\n\
implied or otherwise.\n\
\n\
Type \"help\" for information on various topics.\n\
Type \"quit\" to exit Soar.  Use ctrl-c to stop a Soar run.\n\
Type \"soarnews\" to repeat this information.\n\
Type \"version\" for Soar version information.\
"

Definition at line 1240 of file init_soar.c.

Referenced by print_startup_banner().


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