【发布时间】:2018-09-12 19:28:00
【问题描述】:
我有这个剪辑程序,它使用显着性来获取消息“欢迎使用建议系统”。总是首先出现,但我想知道如何在不使用显着性的情况下使用控制事实来做到这一点。
1 (deffacts prerequisites
2 (after COP1000 take COP2000)
3 (after COP1001 take COP2001)
4 (after MAC1000 take MAC2000)
5 (after MAC1001 take MAC2001)
6 (after ENG1000 and ENG1001 take ENG2000))
7
8 (defrule welcome
9 (declare (salience 10000))
10 =>
11 (printout t "Welcome to the advising system." crlf))
12
13 (defrule rule2
14 (after ?course1 take ?course2)
15 (student ?name $? ?course1 $?)
16 =>
17 (printout t "Since " ?name " has taken " ?course1 " , I suggest taking " ?course2 "." crlf))
【问题讨论】:
标签: clips