0

I'm using constructs-to-c command in top-level to convert my constructs to c code. Till the moment I know how to use these source files as black boxes. I think in these files, CLIPS implement the RETE algorithm, right? I'd like to know how can I understand the name convention and the contents of these files? I found no explanation to this in the reference manuals. This is the only explanation I found to this point but I didn't understand a lot from the second point. I have a good understanding of RETE algorithm, though. Also is there someway to visualize the RETE network CLIPS creates for my constructs? Thanks

4

1 回答 1

0

构建到 c 生成的文件只是用于表示 CLIPS 构造的 C 数据结构的转储,因此它们不是 rete 算法的表示,而是算法操作的数据。生成文件中的数组使用的命名约定旨在保持从一个数组到另一个数组的指针引用简短而独特——不是为了使它们易于阅读。要可视化网络,您需要自己手动绘制连接。我想说通过向 CLIPS 添加简单/单一规则并使用调试器逐步执行代码以查看断言和撤回是如何处理的,这样做更容易。

于 2017-06-15T16:40:32.553 回答