Hi,
I have following wme types:
(deftemplate student (slot name) (multislot courses))
(deftemplate class (slot name) (multislot students))
(deftemplate course (slot name) (slot prof))
(do-backward-chaining student)
(do-backward-chaining class)
(do-backward-chaining course)
(assert (student))
(assert (need-class))
(defrule rule1
(need-course)
?student <- (student
(courses ))
=>
(bind ?c3 (assert (course (name X))))
(modify ?student (courses ?c3))
)
(defrule rule2
(need-class)
?student <- (student
(courses $?c1 ?c $?c2))
?c <- (course
(name X))
=>
(bind ?class (assert (class (students
?student))))
(printout t "Rule2 fired")
)
Then when i say (run) none of the rules fire.
is there any way i can fire the rules?
Also how do i specify a default value for a multislot?
Acme.
________________________________________________________________________
Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.com
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------