Soar Kernel
9.3.2 08-06-12
|
Go to the source code of this file.
Data Structures | |
struct | chunk_cond_set_struct |
struct | chunk_cond_struct |
Macros | |
#define | CHUNK_COND_HASH_TABLE_SIZE 1024 |
#define | LOG_2_CHUNK_COND_HASH_TABLE_SIZE 10 |
Typedefs | |
typedef struct agent_struct | agent |
typedef char | Bool |
typedef struct chunk_cond_struct | chunk_cond |
typedef struct chunk_cond_set_struct | chunk_cond_set |
typedef struct condition_struct | condition |
typedef struct instantiation_struct | instantiation |
typedef union symbol_union | Symbol |
Functions | |
void | add_results_for_id (agent *thisAgent, Symbol *id) |
Bool | add_to_chunk_cond_set (agent *thisAgent, chunk_cond_set *set, chunk_cond *new_cc) |
void | chunk_instantiation (agent *thisAgent, instantiation *inst, bool variablize, instantiation **custom_inst_list) |
void | init_chunker (agent *thisAgent) |
chunk_cond * | make_chunk_cond_for_condition (agent *thisAgent, condition *cond) |
void | variablize_condition_list (agent *thisAgent, condition *cond) |
void | variablize_nots_and_insert_into_conditions (agent *thisAgent, not_struct *nots, condition *conds) |
void | variablize_symbol (agent *thisAgent, Symbol **sym) |
#define CHUNK_COND_HASH_TABLE_SIZE 1024 |
Definition at line 25 of file chunk.h.
Referenced by init_chunk_cond_set().
#define LOG_2_CHUNK_COND_HASH_TABLE_SIZE 10 |
Definition at line 26 of file chunk.h.
Referenced by make_chunk_cond_for_condition().
typedef struct agent_struct agent |
typedef struct chunk_cond_struct chunk_cond |
typedef struct chunk_cond_set_struct chunk_cond_set |
typedef struct condition_struct condition |
typedef struct instantiation_struct instantiation |
typedef union symbol_union Symbol |
Definition at line 123 of file chunk.cpp.
References add_pref_to_results(), add_results_if_needed(), preference_struct::all_of_slot_next, slot_struct::all_preferences, agent_struct::extra_result_prefs_from_instantiation, wme_struct::id, preference_struct::id, symbol_union::id, identifier_struct::input_wmes, preference_struct::inst_next, wme_struct::next, slot_struct::next, NIL, agent_struct::results_tc_number, identifier_struct::slots, wme_struct::value, and slot_struct::wmes.
Referenced by add_results_if_needed().
Bool add_to_chunk_cond_set | ( | agent * | thisAgent, |
chunk_cond_set * | set, | ||
chunk_cond * | new_cc | ||
) |
Definition at line 364 of file chunk.cpp.
References agent_struct::chunk_cond_pool, chunk_cond_struct::compressed_hash_value, chunk_cond_struct::cond, conditions_are_equal(), FALSE, chunk_cond_struct::hash_value, insert_at_head_of_dll, chunk_cond_struct::next_in_bucket, NIL, and TRUE.
Referenced by backtrace_through_instantiation().
void chunk_instantiation | ( | agent * | thisAgent, |
instantiation * | inst, | ||
bool | variablize, | ||
instantiation ** | custom_inst_list | ||
) |
Definition at line 973 of file chunk.cpp.
References explain_chunk_struct::actions, add_goal_or_impasse_tests(), add_production_to_rete(), explain_chunk_struct::all_grounds, identifier_struct::allow_bottom_up_chunks, explain_chunk_struct::backtrace, agent_struct::backtrace_number, backtrace_through_instantiation(), instantiation_struct::bottom_of_instantiated_conditions, build_chunk_conds_for_grounds_and_add_negateds(), agent_struct::chunk_cond_pool, chunk_instantiation(), CHUNK_PRODUCTION_TYPE, agent_struct::chunks_this_d_cycle, explain_chunk_struct::conds, copy_and_variablize_result_list(), copy_condition_list(), agent_struct::current_phase, deallocate_action_list(), deallocate_condition_list(), DUPLICATE_PRODUCTION, excise_production(), explain_add_temp_to_chunk_list(), EXPLAIN_CHUNK_STRUCT_NAME_BUFFER_SIZE, EXPLAIN_SYSPARAM, FALSE, fill_in_new_instantiation_stuff(), free_list(), instantiation_struct::GDS_evaluated_already, generate_chunk_name_sym_constant(), generate_new_sym_constant(), get_new_tc_number(), get_nots_for_instantiated_conditions(), get_printer_output_column(), get_results_for_instantiation(), agent_struct::grounds, agent_struct::grounds_tc, identifier_struct::higher_goal, preference_struct::id, symbol_union::id, instantiation_struct::in_ms, preference_struct::inst, preference_struct::inst_next, chunk_cond_struct::instantiated_cond, agent_struct::instantiation_pool, agent_struct::instantiations_with_nots, agent_struct::justification_count, JUSTIFICATION_PRODUCTION_TYPE, identifier_struct::level, agent_struct::locals, agent_struct::locals_tc, make_clones_of_results(), make_production(), instantiation_struct::match_goal, instantiation_struct::match_goal_level, agent_struct::max_chunks_reached, MAX_CHUNKS_SYSPARAM, explain_chunk_struct::name, sym_constant_struct::name, chunk_cond_struct::next, instantiation_struct::next, explain_chunk_struct::next_chunk, preference_struct::next_result, NIL, instantiation_struct::nots, agent_struct::positive_potentials, agent_struct::potentials_tc, instantiation_struct::preferences_generated, print(), print_action_list(), print_condition_list(), print_preference(), print_production(), print_string(), PRINT_WARNINGS_SYSPARAM, print_with_symbols(), instantiation_struct::prod, REFRACTED_INST_DID_NOT_MATCH, REFRACTED_INST_MATCHED, instantiation_struct::reliable, reorder_instantiated_conditions(), reset_backtrace_list(), reset_variable_generator(), symbol_union::sc, should_variablize(), smem_valid_production(), agent_struct::stop_soar, symbol_remove_ref(), agent_struct::sysparams, agent_struct::system_halted, TIMERS_ENABLED, instantiation_struct::top_of_instantiated_conditions, TRACE_BACKTRACING_SYSPARAM, TRACE_CHUNK_NAMES_SYSPARAM, TRACE_CHUNKS_SYSPARAM, trace_grounded_potentials(), TRACE_JUSTIFICATION_NAMES_SYSPARAM, TRACE_JUSTIFICATIONS_SYSPARAM, trace_locals(), trace_ungrounded_potentials(), TRUE, agent_struct::variablization_tc, variablize_condition_list(), variablize_nots_and_insert_into_conditions(), chunk_cond_struct::variablized_cond, xml_att_val(), xml_begin_tag(), xml_end_tag(), and xml_generate_warning().
Referenced by _epmem_process_buffered_wme_list(), _smem_process_buffered_wme_list(), chunk_instantiation(), and create_instantiation().
void init_chunker | ( | agent * | thisAgent | ) |
Definition at line 1371 of file chunk.cpp.
References agent_struct::chunk_cond_pool, init_chunk_cond_set(), init_memory_pool(), and agent_struct::negated_set.
Referenced by init_soar_agent().
chunk_cond* make_chunk_cond_for_condition | ( | agent * | thisAgent, |
condition * | cond | ||
) |
Definition at line 346 of file chunk.cpp.
References agent_struct::chunk_cond_pool, chunk_cond_struct::compressed_hash_value, chunk_cond_struct::cond, hash_condition(), chunk_cond_struct::hash_value, LOG_2_CHUNK_COND_HASH_TABLE_SIZE, masks_for_n_low_order_bits, and uint32_t().
Referenced by backtrace_through_instantiation().
void variablize_nots_and_insert_into_conditions | ( | agent * | thisAgent, |
not_struct * | nots, | ||
condition * | conds | ||
) |
Definition at line 576 of file chunk.cpp.
Definition at line 179 of file chunk.cpp.