| 326 | **************************************************************************/ |
| 327 | |
| 328 | void explain_trace_chunk(agent* thisAgent, explain_chunk_str* chunk) |
| 329 | { |
| 330 | |
| 331 | backtrace_str* prod; |
| 332 | |
| 333 | print(thisAgent, "Chunk : %s\n", chunk->name); |
| 334 | prod = chunk->backtrace; |
| 335 | while (prod != NULL) |
| 336 | { |
| 337 | print(thisAgent, "Backtrace production : %s\n", prod->prod_name); |
| 338 | print(thisAgent, "Result : %d\n", prod->result); |
| 339 | if (prod->trace_cond != NULL) |
| 340 | { |
| 341 | print(thisAgent, "Trace condition : "); |
| 342 | print_condition(thisAgent, prod->trace_cond); |
| 343 | } |
| 344 | else |
| 345 | { |
| 346 | print(thisAgent, "The result preference is not stored, sorry.\n"); |
| 347 | } |
| 348 | print_string(thisAgent, "\nGrounds:\n"); |
| 349 | print_list_of_conditions(thisAgent, prod->grounds); |
| 350 | print_string(thisAgent, "\nPotentials:\n"); |
| 351 | print_list_of_conditions(thisAgent, prod->potentials); |
| 352 | print_string(thisAgent, "\nLocals:\n"); |
| 353 | print_list_of_conditions(thisAgent, prod->locals); |
| 354 | print_string(thisAgent, "\nNegateds:\n"); |
| 355 | print_list_of_conditions(thisAgent, prod->negated); |
| 356 | prod = prod -> next_backtrace; |
| 357 | print(thisAgent, "\n\n"); |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | /*************************************************************************** |
| 362 | * Function : explain_trace_named_chunk |
no test coverage detected