Soar Kernel
9.3.2 08-06-12
|
#include "gsysparam.h"
#include "kernel.h"
#include "init_soar.h"
#include "mem.h"
#include "lexer.h"
#include "chunk.h"
#include "callback.h"
#include <map>
#include "soar_module.h"
#include "exploration.h"
#include "reinforcement_learning.h"
#include "wma.h"
#include "episodic_memory.h"
#include "semantic_memory.h"
#include <string>
Go to the source code of this file.
Data Structures | |
struct | agent_struct |
struct | alias_struct |
struct | dir_stack_struct |
struct | expansion_node |
Macros | |
#define | JUST_UPDATE_COUNT 2 |
#define | UPDATE_DISCONNECTED_IDS_LIST 1 |
#define | UPDATE_LINKS_NORMALLY 0 |
Typedefs | |
typedef struct agent_struct | agent |
typedef struct alias_struct | alias_struct |
typedef struct alpha_mem_struct | alpha_mem |
typedef struct backtrace_struct | backtrace_str |
typedef char | Bool |
typedef struct dir_stack_struct | dir_stack_struct |
typedef struct expansion_node | expansion_node |
typedef struct explain_chunk_struct | explain_chunk_str |
typedef signed short | goal_stack_level |
typedef struct hash_table_struct | hash_table |
typedef struct io_wme_struct | io_wme |
typedef struct lexer_source_file_struct | lexer_source_file |
typedef struct memory_pool_struct | memory_pool |
typedef struct multi_attributes_struct | multi_attribute |
typedef struct pi_struct | parent_inst |
typedef struct preference_struct | preference |
typedef struct production_struct | production |
typedef struct rhs_function_struct | rhs_function |
typedef struct select_info_struct | select_info |
typedef union symbol_union | Symbol |
typedef char * | test |
typedef struct token_struct | token |
typedef struct wme_struct | wme |
typedef void * | xml_handle |
Functions | |
template<typename T > | |
void | allocate_cons (agent *thisAgent, T *dest_cons_pointer) |
agent * | create_soar_agent (char *name) |
void | destroy_soar_agent (agent *soar_agent) |
template<typename T > | |
void | free_cons (agent *thisAgent, T *c) |
void | init_soar_agent (agent *thisAgent) |
template<typename P , typename T > | |
void | push (agent *thisAgent, P item, T *&list_header) |
Bool | reading_from_top_level (agent *soarAgent) |
#define JUST_UPDATE_COUNT 2 |
Definition at line 64 of file agent.h.
Referenced by do_demotion(), and post_link_removal().
#define UPDATE_DISCONNECTED_IDS_LIST 1 |
Definition at line 63 of file agent.h.
Referenced by do_demotion(), and post_link_removal().
#define UPDATE_LINKS_NORMALLY 0 |
Definition at line 62 of file agent.h.
Referenced by create_soar_agent(), and do_demotion().
typedef struct agent_struct agent |
Definition at line 345 of file callback.h.
typedef struct alias_struct alias_struct |
typedef struct alpha_mem_struct alpha_mem |
typedef struct backtrace_struct backtrace_str |
typedef struct dir_stack_struct dir_stack_struct |
typedef struct expansion_node expansion_node |
typedef struct explain_chunk_struct explain_chunk_str |
typedef signed short goal_stack_level |
typedef struct hash_table_struct hash_table |
typedef struct io_wme_struct io_wme |
typedef struct lexer_source_file_struct lexer_source_file |
typedef struct memory_pool_struct memory_pool |
typedef struct multi_attributes_struct multi_attribute |
typedef struct pi_struct parent_inst |
typedef struct preference_struct preference |
typedef struct production_struct production |
typedef struct rhs_function_struct rhs_function |
typedef struct select_info_struct select_info |
typedef union symbol_union Symbol |
typedef struct token_struct token |
typedef struct wme_struct wme |
typedef void* xml_handle |
|
inline |
Definition at line 984 of file agent.h.
References agent_struct::cons_cell_pool.
Referenced by add_if_not_member(), add_new_test_to_test(), add_var_to_varnames(), copy_rhs_value(), copy_rhs_value_and_substitute_varnames(), copy_symbol_list_adding_references(), copy_test_list(), instantiate_rhs_value(), parse_function_call_after_lparen(), push(), and simplify_test().
agent* create_soar_agent | ( | char * | name | ) |
Definition at line 145 of file agent.cpp.
References agent_struct::active_goal, agent_struct::active_level, agent_struct::actual, agent_struct::all_productions_of_type, agent_struct::all_wmes_in_rete, agent_struct::alpha_mem_id_counter, agent_struct::alternate_input_exit, agent_struct::alternate_input_string, agent_struct::alternate_input_suffix, agent_struct::applyPhase, agent_struct::attention_lapse_tracker, agent_struct::backtrace_number, agent_struct::beta_node_id_counter, agent_struct::bottom_goal, agent_struct::changed_slots, agent_struct::chunk_count, agent_struct::chunk_free_problem_spaces, agent_struct::chunk_name_prefix, agent_struct::chunky_problem_spaces, agent_struct::context_slots_with_changed_acceptable_preferences, agent_struct::current_file, agent_struct::current_phase, agent_struct::current_symbol_hash_id, agent_struct::current_tc_number, agent_struct::current_variable_gensym_number, agent_struct::current_wme_timetag, agent_struct::dc_stat_tracking, agent_struct::default_wme_depth, agent_struct::did_PE, dir_stack_struct::directory, agent_struct::disconnected_ids, agent_struct::dyn_counters, agent_struct::dyn_memory_pools, agent_struct::epmem_db, agent_struct::epmem_edge_maxes, agent_struct::epmem_edge_mins, agent_struct::epmem_edge_removals, agent_struct::epmem_first_switch, agent_struct::epmem_id_ref_counts, agent_struct::epmem_id_removes, agent_struct::epmem_id_replacement, agent_struct::epmem_id_repository, agent_struct::epmem_node_maxes, agent_struct::epmem_node_mins, agent_struct::epmem_node_removals, agent_struct::epmem_params, agent_struct::epmem_promotions, agent_struct::epmem_stats, agent_struct::epmem_stmts_common, agent_struct::epmem_stmts_graph, agent_struct::epmem_timers, agent_struct::epmem_validation, agent_struct::epmem_wme_adds, agent_struct::existing_output_links, exploration_add_parameter(), EXPLORATION_PARAM_EPSILON, EXPLORATION_PARAM_TEMPERATURE, agent_struct::exploration_params, exploration_validate_epsilon(), exploration_validate_temperature(), FALSE, agent_struct::FIRING_TYPE, lexeme_info::float_val, GO_DECISION, agent_struct::go_number, agent_struct::go_type, agent_struct::grounds_tc, agent_struct::highest_goal_whose_context_changed, lexeme_info::id_letter, lexeme_info::id_number, agent_struct::ids_with_unknown_level, IE_PRODS, agent_struct::if_no_merging, agent_struct::if_no_sharing, init_memory_utilities(), init_sysparams(), agent_struct::input_cycle_flag, agent_struct::input_period, INPUT_PHASE, lexeme_info::int_val, agent_struct::justification_count, lexeme_info::length, agent_struct::lex_alias, agent_struct::lexeme, agent_struct::link_update_mode, agent_struct::locals_tc, agent_struct::max_chunks_reached, agent_struct::mcs_counter, agent_struct::memory_pools_in_use, agent_struct::ms_assertions, agent_struct::ms_i_assertions, agent_struct::ms_o_assertions, agent_struct::ms_retractions, agent_struct::multi_attributes, agent_struct::name, dir_stack_struct::next, NIL, agent_struct::nil_goal_retractions, NULL_LEXEME, agent_struct::num_existing_wmes, NUM_PRODUCTION_TYPES, agent_struct::num_productions_of_type, agent_struct::num_wmes_in_rete, agent_struct::numeric_indifferent_mode, NUMERIC_INDIFFERENT_MODE_SUM, agent_struct::o_support_calculation_type, agent_struct::output_link_changed, agent_struct::postponed_assertions, agent_struct::potentials_tc, predict_init(), agent_struct::prediction, agent_struct::prev_top_state, agent_struct::previous_active_level, print(), agent_struct::print_prompt_flag, agent_struct::printer_output_column, agent_struct::production_being_fired, agent_struct::productions_being_traced, agent_struct::promoted_ids, agent_struct::real_time_tracker, agent_struct::reason_for_stopping, reset_max_stats(), reset_timers(), agent_struct::rhs_functions, rl_initialize_template_tracking(), agent_struct::rl_params, agent_struct::rl_prods, agent_struct::rl_stats, savestring(), agent_struct::select, select_init(), agent_struct::slots_for_possible_removal, agent_struct::smem_changed_ids, agent_struct::smem_db, agent_struct::smem_first_switch, agent_struct::smem_ignore_changes, agent_struct::smem_params, agent_struct::smem_stats, agent_struct::smem_timers, agent_struct::smem_validation, soar_init_callbacks(), agent_struct::soar_verbose_flag, agent_struct::stats_db, agent_struct::stop_soar, lexeme_info::string, agent_struct::substate_break_level, agent_struct::sysparams, agent_struct::system_halted, agent_struct::timers_cpu, TIMERS_ENABLED, agent_struct::timers_kernel, agent_struct::timers_phase, agent_struct::token_additions, agent_struct::top_dir_stack, agent_struct::top_goal, agent_struct::top_state, TRUE, lexeme_info::type, UPDATE_LINKS_NORMALLY, agent_struct::variables_set, agent_struct::waitsnc, agent_struct::waitsnc_detect, agent_struct::wma_forget_pq, agent_struct::wma_initialized, agent_struct::wma_params, agent_struct::wma_stats, agent_struct::wma_tc_counter, agent_struct::wma_timers, agent_struct::wma_touched_elements, agent_struct::wma_touched_sets, agent_struct::wme_filter_list, agent_struct::wmes_to_add, agent_struct::wmes_to_remove, and xml_create().
void destroy_soar_agent | ( | agent * | soar_agent | ) |
Definition at line 436 of file agent.cpp.
References wma_param_container::activation, agent_struct::alpha_hash_tables, rl_param_container::apoptosis, rl_param_container::apoptosis_none, agent_struct::current_file, dir_stack_struct::directory, agent_struct::dummy_top_node, agent_struct::dummy_top_token, agent_struct::dyn_counters, agent_struct::dyn_memory_pools, epmem_close(), agent_struct::epmem_db, agent_struct::epmem_edge_maxes, agent_struct::epmem_edge_mins, agent_struct::epmem_edge_removals, agent_struct::epmem_id_ref_counts, agent_struct::epmem_id_removes, agent_struct::epmem_id_replacement, agent_struct::epmem_id_repository, agent_struct::epmem_node_maxes, agent_struct::epmem_node_mins, agent_struct::epmem_node_removals, agent_struct::epmem_params, agent_struct::epmem_promotions, agent_struct::epmem_stats, agent_struct::epmem_timers, agent_struct::epmem_wme_adds, excise_all_productions(), EXPLORATION_PARAMS, agent_struct::exploration_params, FALSE, lexer_source_file_struct::filename, find_sym_constant(), agent_struct::float_constant_hash_table, FOR_ANYTHING_TF, FOR_OPERATORS_TF, FOR_STATES_TF, free_hash_table(), free_memory(), free_memory_block_for_string(), free_memory_pool(), HASH_TABLE_MEM_USAGE, agent_struct::identifier_hash_table, agent_struct::int_constant_hash_table, agent_struct::left_ht, agent_struct::memory_pools_in_use, MISCELLANEOUS_MEM_USAGE, agent_struct::multi_attributes, agent_struct::name, multi_attributes_struct::next, memory_pool_struct::next, NIL, agent_struct::object_tr_ht, soar_module::off, agent_struct::prediction, release_predefined_symbols(), remove_built_in_rhs_functions(), remove_trace_format(), agent_struct::rete_node_pool, agent_struct::rhs_variable_bindings, agent_struct::right_ht, agent_struct::rl_params, agent_struct::rl_prods, agent_struct::rl_stats, agent_struct::select, select_init(), wma_activation_param::set_value(), rl_apoptosis_param::set_value(), agent_struct::smem_changed_ids, smem_close(), agent_struct::smem_db, agent_struct::smem_params, agent_struct::smem_stats, agent_struct::smem_timers, soar_remove_all_monitorable_callbacks(), agent_struct::stack_tr_ht, stats_close(), agent_struct::stats_db, agent_struct::sym_constant_hash_table, symbol_remove_ref(), agent_struct::token_pool, agent_struct::top_dir_stack, TRUE, agent_struct::variable_hash_table, agent_struct::wma_forget_pq, agent_struct::wma_params, agent_struct::wma_stats, agent_struct::wma_timers, agent_struct::wma_touched_elements, agent_struct::wma_touched_sets, and xml_destroy().
|
inline |
Definition at line 990 of file agent.h.
References agent_struct::cons_cell_pool.
Referenced by build_chunk_conds_for_grounds_and_add_negateds(), deallocate_symbol_list_removing_references(), deallocate_test(), do_buffered_wm_changes(), do_promotion(), fill_in_new_instantiation_stuff(), find_compile_time_match_goal(), free_list(), get_nots_for_instantiated_conditions(), pop_bindings_and_deallocate_list_of_variables(), pop_var_binding(), remove_garbage_slots(), remove_output_link_tc_info(), simplify_test(), soar_pop_callback(), soar_remove_all_callbacks_for_event(), soar_remove_callback(), trace_grounded_potentials(), trace_locals(), trace_ungrounded_potentials(), unmark_identifiers_and_free_list(), and unmark_variables_and_free_list().
void init_soar_agent | ( | agent * | thisAgent | ) |
Definition at line 67 of file agent.cpp.
References add_trace_format(), smem_param_container::base_incremental_threshes, create_predefined_symbols(), agent_struct::epmem_info_pool, agent_struct::epmem_interval_pool, agent_struct::epmem_literal_pool, agent_struct::epmem_params, agent_struct::epmem_pedge_pool, agent_struct::epmem_uedge_pool, agent_struct::epmem_wmes_pool, epmem_param_container::exclusions, FALSE, FOR_ANYTHING_TF, FOR_OPERATORS_TF, FOR_STATES_TF, agent_struct::gds_pool, init_agent_memory(), init_built_in_rhs_functions(), init_chunker(), init_decider(), init_explain(), init_firer(), init_lexer(), init_memory_pool(), init_production_utilities(), init_rete(), init_soar_io(), init_symbol_tables(), init_tracing(), make_sym_constant(), NIL, predict_init(), reset_statistics(), agent_struct::rhs_functions, agent_struct::rl_et_pool, agent_struct::rl_info_pool, agent_struct::rl_rule_pool, select_init(), soar_module::primitive_set_param< T >::set_string(), soar_module::sym_set_param::set_value(), agent_struct::smem_info_pool, agent_struct::smem_params, agent_struct::smem_wmes_pool, symbol_remove_ref(), TRUE, agent_struct::wma_decay_element_pool, agent_struct::wma_decay_set_pool, agent_struct::wma_slot_refs_pool, and agent_struct::wma_wme_oset_pool.
|
inline |
Definition at line 996 of file agent.h.
References allocate_cons(), cons_struct::first, and cons_struct::rest.
Referenced by add_pwatch(), add_to_grounds(), add_to_locals(), add_to_potentials(), add_wme_to_wm(), backtrace_through_instantiation(), bind_variables_in_test(), build_prohibits_list(), dont_learn_rhs_function_code(), fill_in_new_instantiation_stuff(), find_compile_time_match_goal(), fixup_rhs_value_variable_references(), force_learn_rhs_function_code(), mark_identifier_if_unmarked(), mark_slot_for_possible_removal(), mark_variable_if_unmarked(), parse_attribute_path_in_brackets(), parse_disjunction_test(), post_link_addition(), push_var_binding(), remove_wme_from_wm(), report_local_negation(), reteload_node_and_children(), reteload_rete_test(), reteload_rhs_value(), reteload_varnames(), soar_add_callback(), and soar_push_callback().
Definition at line 1027 of file agent.h.
References agent_struct::current_file, and lexer_source_file_struct::parent_file.
Referenced by get_next_char(), lex_unknown(), print_location_of_most_recent_lexeme(), and stop_lex_from_file().