Soar Kernel
9.3.2 08-06-12
|
#include <portability.h>
#include <stdlib.h>
#include <map>
#include "agent.h"
#include "kernel.h"
#include "mem.h"
#include "lexer.h"
#include "symtab.h"
#include "gdatastructs.h"
#include "rhsfun.h"
#include "instantiations.h"
#include "production.h"
#include "gsysparam.h"
#include "init_soar.h"
#include "decide.h"
#include "print.h"
#include "recmem.h"
#include "backtrace.h"
#include "chunk.h"
#include "explain.h"
#include "rete.h"
#include "trace.h"
#include "callback.h"
#include "io_soar.h"
#include "xml.h"
#include "utilities.h"
#include "soar_module.h"
#include "exploration.h"
#include "reinforcement_learning.h"
#include "decision_manipulation.h"
#include "wma.h"
#include "episodic_memory.h"
#include "semantic_memory.h"
Go to the source code of this file.
Functions | |
agent * | create_soar_agent (char *agent_name) |
void | destroy_soar_agent (agent *delete_agent) |
void | init_soar_agent (agent *thisAgent) |
agent* create_soar_agent | ( | char * | agent_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 * | delete_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().
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.