| 519 | **************************************************************************/ |
| 520 | |
| 521 | void explain_chunk(agent* thisAgent, char* chunk_name, int cond_number) |
| 522 | { |
| 523 | |
| 524 | explain_chunk_str* chunk; |
| 525 | condition* ground; |
| 526 | |
| 527 | chunk = find_chunk(thisAgent, thisAgent->explain_chunk_list, chunk_name); |
| 528 | /* AGR 564 In previous statement, current_agent(...) was added. 2-May-94 */ |
| 529 | |
| 530 | if (chunk == NULL) |
| 531 | { |
| 532 | return; |
| 533 | } |
| 534 | |
| 535 | ground = find_ground(thisAgent, chunk, cond_number); |
| 536 | if (ground == NIL) |
| 537 | { |
| 538 | return; |
| 539 | } |
| 540 | |
| 541 | explain_trace(thisAgent, chunk_name, chunk->backtrace, ground); |
| 542 | } |
| 543 | |
| 544 | /*************************************************************************** |
| 545 | * Function : explain_cond_list |
nothing calls this directly
no test coverage detected