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

legacy.c

Go to the documentation of this file.
00001 #include "soarkernel.h"
00002 #include "soar_core_api.h"
00003 #include "soar_ecore_api.h"
00004 
00005 /* Depreciated:
00006  * Use: 
00007  */
00008 
00009 /* Depreciated:
00010  * Use: soar_cCreateAgent
00011  */
00012 agent *create_soar_agent(char *name)
00013 {
00014     soar_cCreateAgent(name);
00015     return (agent *) soar_cGetAgentByName(name);
00016 }
00017 
00018 /* Depreciated:
00019  * Use: soar_cDestroyAgent
00020  */
00021 void destroy_soar_agent(agent * d)
00022 {
00023     soar_cDestroyAgentByAddress(d);
00024 }
00025 
00026 /* Depreciated:
00027  * Use: soar_cReInitSoar
00028  */
00029 void reinitialize_soar(void)
00030 {
00031     soar_cReInitSoar();
00032 }
00033 
00034 /* Depreciated:
00035  * Use: soar_cInitializeSoar
00036  */
00037 void init_soar(void)
00038 {
00039     soar_cInitializeSoar();
00040 }
00041 
00042 /* Depreciated:
00043  * Use: soar_cAddInputFunction
00044  */
00045 void add_input_function(agent * a, soar_callback_fn f,
00046                         soar_callback_data cb_data, soar_callback_free_fn free_fn, char *name)
00047 {
00048     soar_cAddInputFunction(a, f, cb_data, free_fn, name);
00049 }
00050 
00051 /* Depreciated:
00052  * Use: soar_cRemoveInputFunction
00053  */
00054 void remove_input_function(agent * a, char *name)
00055 {
00056     soar_cRemoveInputFunction(a, name);
00057 }
00058 
00059 /* Depreciated:
00060  * Use: soar_cAddOutputFunction
00061  */
00062 void add_output_function(agent * a, soar_callback_fn f,
00063                          soar_callback_data cb_data, soar_callback_free_fn free_fn, char *output_link_name)
00064 {
00065     soar_cAddOutputFunction(a, f, cb_data, free_fn, output_link_name);
00066 
00067 }
00068 
00069 /* Depreciated:
00070  * Use: soar_cRemoveOutputFunction
00071  */
00072 void remove_output_function(agent * a, char *name)
00073 {
00074 
00075     soar_cRemoveOutputFunction(a, name);
00076 }
00077 
00078 /* Depreciated:
00079  * Use: soar_cSetSysparam
00080  * moved from init_soar.c
00081  */
00082 /*
00083 void set_sysparam( int param_number, long new_val ) {
00084   soar_cSetSysparam( param_number, new_val );
00085 }
00086 */
00087 
00088 /* Depreciated:
00089  * Use: soar_ecExplainChunkTrace
00090  * moved from explain.c
00091  */
00092 void explain_trace_named_chunk(char *name)
00093 {
00094     soar_ecExplainChunkTrace(name);
00095 }
00096 
00097 /* Depreciated:
00098  * Use: soar_ecExplainChunkConditionList
00099  * moved from explain.c
00100  */
00101 
00102 void explain_cond_list(char *name)
00103 {
00104     soar_ecExplainChunkConditionList(name);
00105 }
00106 
00107 /* Depreciated:
00108  * Use: soar_ecExplainChunk
00109  * moved from explain.c
00110  */
00111 
00112 void explain_chunk(char *name, int cond_number)
00113 {
00114     soar_ecExplainChunkCondition(name, cond_number);
00115 }
00116 
00117 /* Depreciated:
00118  * Use: soar_cTestAllMonitorableCallbacks
00119  * moved from callback.c
00120  */
00121 void soar_test_all_monitorable_callbacks(soar_callback_agent a)
00122 {
00123     soar_cTestAllMonitorableCallbacks(a);
00124 }
00125 
00126 /* Depreciated:
00127  * Use: soar_cRemoveAllCallbacksForEvent
00128  * moved from callback.c
00129  */
00130 void soar_remove_all_callbacks_for_event(soar_callback_agent a, SOAR_CALLBACK_TYPE ct)
00131 {
00132     soar_cRemoveAllCallbacksForEvent(a, ct);
00133 }
00134 
00135 /* Depreciated:
00136  * Use: soar_cRemoveAllMonitorableCallbacks
00137  * moved from callback.c
00138  */
00139 void soar_remove_all_monitorable_callbacks(soar_callback_agent a)
00140 {
00141 
00142     soar_cRemoveAllMonitorableCallbacks(a);
00143 }
00144 
00145 /* Depreciated:
00146  * Use: soar_cListAllCallbacksForEvent
00147  * moved from callback.c
00148  */
00149 void soar_list_all_callbacks_for_event(soar_callback_agent a, SOAR_CALLBACK_TYPE ct)
00150 {
00151 
00152     soar_cListAllCallbacksForEvent(a, ct);
00153 }
00154 
00155 /* Depreciated:
00156  * Use: soar_cListAllCallbacks
00157  * moved from callback.c
00158  */
00159 
00160 void soar_list_all_callbacks(soar_callback_agent a, bool monitorable_only)
00161 {
00162 
00163     soar_cListAllCallbacks(a, monitorable_only);
00164 }
00165 
00166 /* Depreciated:
00167  * Use: soar_cCallbackNameToEnum
00168  * moved from callback.c
00169  */
00170 SOAR_CALLBACK_TYPE soar_callback_name_to_enum(char *name, bool monitorable_only)
00171 {
00172 
00173     return soar_cCallbackNameToEnum(name, monitorable_only);
00174 }
00175 
00176 /* Depreciated:
00177  * Use: soar_ecPrintReteStatistics
00178  * moved from rete.c
00179  */
00180 
00181 void print_rete_statistics(void)
00182 {
00183 
00184     soar_ecPrintReteStatistics();
00185 }
00186 
00187 /* Depreciated:
00188  * Use: soar_ecPrintMemoryStatistics
00189  * moved from rete.c
00190  */
00191 
00192 void print_memory_statistics(void)
00193 {
00194 
00195     soar_ecPrintMemoryStatistics();
00196 }
00197 
00198 /* Depreciated:
00199  * Use: soar_ecPrintMemoryPoolStatistics
00200  * moved from rete.c
00201  */
00202 void print_memory_pool_statistics(void)
00203 {
00204 
00205     soar_ecPrintMemoryPoolStatistics();
00206 }
00207 
00208 /* Depreciated:
00209  * Use: soar_ecPrintInternalSymbols
00210  * moved from symtab.c
00211  */
00212 void print_internal_symbols(void)
00213 {
00214 
00215     soar_ecPrintInternalSymbols();
00216 }
00217 
00218 void print_memories(int n, byte type[])
00219 {
00220     soar_ecPrintMemories(n, (int *) type);
00221 }

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