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

io.c File Reference

Go to the source code of this file.

Functions

void gds_invalid_so_remove_goal (wme *w)
void calculate_output_link_tc_info (output_link *ol)
Symbolget_new_io_identifier (char first_letter)
Symbolget_io_sym_constant (char *name)
Symbolget_io_int_constant (long value)
Symbolget_io_float_constant (float value)
void release_io_symbol (Symbol *sym)
wmeadd_input_wme (Symbol *id, Symbol *attr, Symbol *value)
bool remove_input_wme (wme *w)
void do_input_cycle (void)
void update_for_top_state_wme_addition (wme *w)
void update_for_top_state_wme_removal (wme *w)
void update_for_io_wme_change (wme *w)
void inform_output_module_of_wm_changes (list *wmes_being_added, list *wmes_being_removed)
void remove_output_link_tc_info (output_link *ol)
void add_id_to_output_link_tc (Symbol *id)
void add_wme_to_collected_io_wmes (wme *w)
io_wmeget_io_wmes_for_output_link (output_link *ol)
void deallocate_io_wme_list (io_wme *iw)
void do_output_cycle (void)
Symbolget_output_value (io_wme *outputs, Symbol *id, Symbol *attr)
Symbolget_io_symbol_from_tio_constituent_string (char *input_string)
Symbolget_next_io_symbol_from_text_input_line (char **text_read_position)
void init_soar_io (void)

Variables

output_call_info output_call_data
bool tio_constituent_char [256]
bool tio_whitespace [256]
char extra_tio_constituents [] = "+-._"


Function Documentation

void add_id_to_output_link_tc Symbol id  ) 
 

Definition at line 505 of file io.c.

References identifier_struct::associated_output_links, symbol_union::id, identifier_struct::input_wmes, slot_struct::next, wme_struct::next, slot, identifier_struct::slots, Symbol, identifier_struct::tc_num, wme_struct::value, wme, and slot_struct::wmes.

Referenced by calculate_output_link_tc_info().

wme* add_input_wme Symbol id,
Symbol attr,
Symbol value
 

Definition at line 126 of file io.c.

References add_wme_to_wm(), symbol_union::id, identifier_struct::input_wmes, make_wme(), print(), Symbol, and wme.

Referenced by do_input_cycle().

void add_wme_to_collected_io_wmes wme w  ) 
 

Definition at line 558 of file io.c.

References wme_struct::attr, wme_struct::id, io_wme, wme_struct::value, and wme.

Referenced by get_io_wmes_for_output_link().

void calculate_output_link_tc_info output_link ol  ) 
 

Definition at line 536 of file io.c.

References add_id_to_output_link_tc(), get_new_tc_number(), output_link_struct::link_wme, output_link, and wme_struct::value.

Referenced by do_output_cycle().

void deallocate_io_wme_list io_wme iw  ) 
 

Definition at line 590 of file io.c.

References io_wme, and io_wme_struct::next.

Referenced by do_output_cycle().

void do_input_cycle void   ) 
 

Definition at line 207 of file io.c.

References add_input_wme(), do_buffered_wm_and_ownership_changes(), get_new_io_identifier(), INPUT_PHASE_CALLBACK, make_sym_constant(), print(), release_io_symbol(), soar_agent, soar_call_data, soar_invoke_callbacks(), and wme.

Referenced by do_one_top_level_phase(), and run_preference_semantics().

void do_output_cycle void   ) 
 

Definition at line 614 of file io.c.

References calculate_output_link_tc_info(), output_link_struct::cb, callback_struct::data, deallocate_io_wme_list(), callback_struct::function, get_io_wmes_for_output_link(), io_wme, output_link_struct::link_wme, output_call_info_struct::mode, output_link_struct::next, output_call_data, output_link, output_call_info_struct::outputs, print(), remove_output_link_tc_info(), soar_agent, and output_link_struct::status.

Referenced by do_one_top_level_phase(), and run_preference_semantics().

void gds_invalid_so_remove_goal wme w  ) 
 

Symbol* get_io_float_constant float  value  ) 
 

Definition at line 116 of file io.c.

References make_float_constant(), and Symbol.

Referenced by get_io_symbol_from_tio_constituent_string().

Symbol* get_io_int_constant long  value  ) 
 

Definition at line 111 of file io.c.

References make_int_constant(), and Symbol.

Referenced by get_io_symbol_from_tio_constituent_string().

Symbol* get_io_sym_constant char *  name  ) 
 

Definition at line 106 of file io.c.

References make_sym_constant(), and Symbol.

Referenced by get_io_symbol_from_tio_constituent_string(), and get_next_io_symbol_from_text_input_line().

Symbol* get_io_symbol_from_tio_constituent_string char *  input_string  ) 
 

Definition at line 749 of file io.c.

References determine_possible_symbol_types_for_string(), get_io_float_constant(), get_io_int_constant(), get_io_sym_constant(), print(), and Symbol.

Referenced by get_next_io_symbol_from_text_input_line().

io_wme* get_io_wmes_for_output_link output_link ol  ) 
 

Definition at line 570 of file io.c.

References add_wme_to_collected_io_wmes(), cons, cons_struct::first, symbol_union::id, output_link_struct::ids_in_tc, identifier_struct::input_wmes, io_wme, output_link_struct::link_wme, slot_struct::next, wme_struct::next, output_link, cons_struct::rest, slot, identifier_struct::slots, Symbol, wme, and slot_struct::wmes.

Referenced by do_output_cycle().

Symbol* get_new_io_identifier char  first_letter  ) 
 

Definition at line 100 of file io.c.

References make_new_identifier(), and Symbol.

Referenced by do_input_cycle().

Symbol* get_next_io_symbol_from_text_input_line char **  text_read_position  ) 
 

Definition at line 790 of file io.c.

References get_io_sym_constant(), get_io_symbol_from_tio_constituent_string(), Symbol, tio_constituent_char, and tio_whitespace.

Referenced by accept_rhs_function_code().

Symbol* get_output_value io_wme outputs,
Symbol id,
Symbol attr
 

Definition at line 715 of file io.c.

References io_wme_struct::attr, io_wme_struct::id, io_wme, io_wme_struct::next, Symbol, and io_wme_struct::value.

void inform_output_module_of_wm_changes list wmes_being_added,
list wmes_being_removed
 

Definition at line 424 of file io.c.

References identifier_struct::associated_output_links, cons, cons_struct::first, wme_struct::id, symbol_union::id, list, print(), cons_struct::rest, symbol_to_string(), update_for_io_wme_change(), update_for_top_state_wme_addition(), update_for_top_state_wme_removal(), and wme.

Referenced by do_buffered_wm_changes().

void init_soar_io void   ) 
 

Definition at line 835 of file io.c.

References extra_tio_constituents, init_memory_pool(), io_wme, output_link, tio_constituent_char, and tio_whitespace.

Referenced by init_soar_agent().

void release_io_symbol Symbol sym  ) 
 

Definition at line 121 of file io.c.

References Symbol.

Referenced by accept_rhs_function_code(), and do_input_cycle().

bool remove_input_wme wme w  ) 
 

Definition at line 152 of file io.c.

References wme_struct::gds, gds_invalid_so_remove_goal(), gds_struct::goal, wme_struct::id, symbol_union::id, identifier_struct::input_wmes, identifier_struct::level, wme_struct::next, print(), remove_wme_from_wm(), and wme.

void remove_output_link_tc_info output_link ol  ) 
 

Definition at line 474 of file io.c.

References abort_with_fatal_error(), identifier_struct::associated_output_links, cons, cons_struct::first, symbol_union::id, output_link_struct::ids_in_tc, output_link, cons_struct::rest, and Symbol.

Referenced by do_output_cycle().

void update_for_io_wme_change wme w  ) 
 

Definition at line 405 of file io.c.

References identifier_struct::associated_output_links, cons, cons_struct::first, symbol_union::id, wme_struct::id, output_link, cons_struct::rest, output_link_struct::status, wme_struct::value, and wme.

Referenced by inform_output_module_of_wm_changes().

void update_for_top_state_wme_addition wme w  ) 
 

Definition at line 346 of file io.c.

References identifier_struct::associated_output_links, wme_struct::attr, output_link_struct::cb, get_new_tc_number(), symbol_union::id, output_link_struct::ids_in_tc, output_link_struct::link_wme, wme_struct::output_link, output_link, OUTPUT_PHASE_CALLBACK, soar_agent, soar_callback, soar_exists_callback_id(), output_link_struct::status, symbol_to_string(), identifier_struct::tc_num, wme_struct::value, and wme.

Referenced by inform_output_module_of_wm_changes().

void update_for_top_state_wme_removal wme w  ) 
 

Definition at line 398 of file io.c.

References wme_struct::output_link, output_link_struct::status, and wme.

Referenced by inform_output_module_of_wm_changes().


Variable Documentation

char extra_tio_constituents[] = "+-._"
 

Definition at line 833 of file io.c.

Referenced by init_soar_io().

output_call_info output_call_data
 

Definition at line 610 of file io.c.

Referenced by do_output_cycle().

bool tio_constituent_char[256]
 

Definition at line 746 of file io.c.

Referenced by get_next_io_symbol_from_text_input_line(), and init_soar_io().

bool tio_whitespace[256]
 

Definition at line 747 of file io.c.

Referenced by get_next_io_symbol_from_text_input_line(), and init_soar_io().


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