在断言新事实时保持 CLIPS 运行
It's possible to keep CLIPS running while asserting new facts?
It would be possible not to have to make (run) to test this program after each assert command? I mean, making only one (run) and then, fire the rules automatically when i insert new facts.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用辅助函数来执行断言和后续运行:
为了进行测试,您还可以创建一个包含命令的文件(如下所示),然后使用批处理命令自动执行文件中的所有命令。
You can use helper functions to perform both the assertion and the subsequent run:
For testing, you can also create a file containing the commands (as follows), and then use the batch command to automatically execute all the commands in your file.