Soar Kernel
9.3.2 08-06-12
|
#include "instantiations.h"
Go to the source code of this file.
Typedefs | |
typedef struct agent_struct | agent |
typedef char | Bool |
typedef signed short | goal_stack_level |
typedef struct instantiation_struct | instantiation |
typedef struct preference_struct | preference |
typedef struct wme_struct | wme |
Functions | |
void | build_prohibits_list (agent *thisAgent, instantiation *inst) |
void | deallocate_instantiation (agent *thisAgent, instantiation *inst) |
void | do_preference_phase (agent *thisAgent) |
void | fill_in_new_instantiation_stuff (agent *thisAgent, instantiation *inst, Bool need_to_do_support_calculations) |
preference * | find_clone_for_level (preference *p, goal_stack_level level) |
void | init_firer (agent *thisAgent) |
Symbol * | instantiate_rhs_value (agent *thisAgent, rhs_value rv, goal_stack_level new_id_level, char new_id_letter, struct token_struct *tok, wme *w) |
void | possibly_deallocate_instantiation (agent *thisAgent, instantiation *inst) |
Variables | |
wme * | glbDeepCopyWMEs |
typedef struct agent_struct agent |
typedef signed short goal_stack_level |
typedef struct instantiation_struct instantiation |
typedef struct preference_struct preference |
typedef struct wme_struct wme |
void build_prohibits_list | ( | agent * | thisAgent, |
instantiation * | inst | ||
) |
Definition at line 83 of file recmem.cpp.
References condition_struct::bt, find_clone_for_level(), preference_struct::in_tm, preference_struct::inst, instantiation_struct::match_goal_level, preference_struct::next, condition_struct::next, NIL, POSITIVE_CONDITION, preference_add_ref(), slot_struct::preferences, PROHIBIT_PREFERENCE_TYPE, bt_info_struct::prohibits, push(), preference_struct::slot, instantiation_struct::top_of_instantiated_conditions, bt_info_struct::trace, and condition_struct::type.
Referenced by create_instantiation().
void deallocate_instantiation | ( | agent * | thisAgent, |
instantiation * | inst | ||
) |
Definition at line 842 of file recmem.cpp.
References preference_struct::attr, condition_struct::bt, deallocate_condition_list(), deallocate_list_of_nots(), deallocate_preference(), cons_struct::first, free_list(), preference_struct::id, symbol_union::id, instantiation_struct::in_ms, preference_struct::inst, agent_struct::instantiation_pool, instantiation_struct::match_goal, instantiation_struct::match_goal_level, production_struct::name, multi_attributes_struct::next, condition_struct::next, preference_struct::next_clone, NIL, instantiation_struct::nots, preference_struct::on_goal_list, POSITIVE_CONDITION, preference_is_binary(), agent_struct::preference_pool, preference_remove_ref(), identifier_struct::preferences_from_goal, instantiation_struct::preferences_generated, preference_struct::prev_clone, print_with_symbols(), instantiation_struct::prod, production_remove_ref(), bt_info_struct::prohibits, preference_struct::reference_count, preference_struct::referent, remove_from_dll, cons_struct::rest, symbol_remove_ref(), TOP_GOAL_LEVEL, instantiation_struct::top_of_instantiated_conditions, bt_info_struct::trace, preference_struct::type, condition_struct::type, preference_struct::value, preference_struct::wma_o_set, wma_remove_pref_o_set(), bt_info_struct::wme_, and wme_remove_ref().
Referenced by possibly_deallocate_instantiation().
void do_preference_phase | ( | agent * | thisAgent | ) |
Definition at line 1293 of file recmem.cpp.
References agent_struct::active_goal, agent_struct::active_level, AFTER_HALT_SOAR_CALLBACK, APPLY_PHASE, assert_new_preferences(), agent_struct::change_level, consume_last_postponed_assertion(), create_instantiation(), agent_struct::current_phase, FALSE, agent_struct::FIRING_TYPE, get_next_nil_goal_retraction(), get_next_retraction(), agent_struct::highest_active_goal, highest_active_goal_apply(), highest_active_goal_propose(), agent_struct::highest_active_level, symbol_union::id, IE_PRODS, agent_struct::inner_e_cycle_count, JUSTIFICATION_PRODUCTION_TYPE, identifier_struct::level, identifier_struct::lower_goal, agent_struct::max_chunks_reached, agent_struct::newly_created_instantiations, agent_struct::next_change_level, NIL, agent_struct::nil_goal_retractions, PE_PRODS, postpone_assertion(), preference_remove_ref(), print(), print_with_symbols(), PROPOSE_PHASE, restore_postponed_assertions(), retract_instantiation(), shouldCreateInstantiation(), soar_invoke_callbacks(), agent_struct::sysparams, agent_struct::system_halted, TRACE_PHASES_SYSPARAM, TRACE_WATERFALL_SYSPARAM, TRUE, production_struct::type, token_struct::w, wma_activate_wmes_tested_in_prods(), wma_enabled(), xml_att_val(), xml_begin_tag(), and xml_end_tag().
Referenced by do_one_top_level_phase(), and reinitialize_soar().
void fill_in_new_instantiation_stuff | ( | agent * | thisAgent, |
instantiation * | inst, | ||
Bool | need_to_do_support_calculations | ||
) |
Definition at line 418 of file recmem.cpp.
References instantiation_struct::backtrace_number, condition_struct::bt, calculate_support_for_instantiation_preferences(), DECLARED_I_SUPPORT, DECLARED_O_SUPPORT, production_struct::declared_support, destructively_reverse_list(), dougs_calculate_support_for_instantiation_preferences(), FALSE, find_clone_for_level(), find_match_goal(), cons_struct::first, free_cons(), symbol_union::id, insert_at_head_of_dll, preference_struct::inst, preference_struct::inst_next, instantiation_struct::match_goal, instantiation_struct::match_goal_level, production_struct::name, condition_struct::next, NIL, agent_struct::o_support_calculation_type, preference_struct::o_supported, preference_struct::on_goal_list, POSITIVE_CONDITION, preference_add_ref(), identifier_struct::preferences_from_goal, instantiation_struct::preferences_generated, print_with_symbols(), instantiation_struct::prod, production_add_ref(), push(), cons_struct::rest, TOP_GOAL_LEVEL, instantiation_struct::top_of_instantiated_conditions, bt_info_struct::trace, TRUE, condition_struct::type, bt_info_struct::wme_, and wme_add_ref().
Referenced by chunk_instantiation(), and create_instantiation().
preference* find_clone_for_level | ( | preference * | p, |
goal_stack_level | level | ||
) |
Definition at line 123 of file recmem.cpp.
References preference_struct::inst, instantiation_struct::match_goal_level, preference_struct::next_clone, NIL, and preference_struct::prev_clone.
Referenced by build_prohibits_list(), fill_in_new_instantiation_stuff(), trace_locals(), and trace_ungrounded_potentials().
void init_firer | ( | agent * | thisAgent | ) |
Definition at line 552 of file recmem.cpp.
References init_memory_pool(), and agent_struct::instantiation_pool.
Referenced by init_soar_agent().
Symbol* instantiate_rhs_value | ( | agent * | thisAgent, |
rhs_value | rv, | ||
goal_stack_level | new_id_level, | ||
char | new_id_letter, | ||
struct token_struct * | tok, | ||
wme * | w | ||
) |
Definition at line 208 of file recmem.cpp.
|
inline |
Definition at line 65 of file recmem.h.
References deallocate_instantiation().
Referenced by deallocate_preference(), and retract_instantiation().
wme* glbDeepCopyWMEs |
Definition at line 76 of file recmem.cpp.
Referenced by create_instantiation(), and recursive_wme_copy().