Hi, I need some help!
I defined two templates
(deftemplate position(slot x-position)(slot y-position))
and
(deftemplate dirty(slot x-pos)(slot y-pos))
Now, I need compare x-pos and y-pos with x-position and y-position
to verify DIRTY in one specific region! Then I tried
(defrule have-dirty
(position(x-position ?xp)(y-position ?yp)
(dirty(x-pos ?a)(y-pos ?b)
=>
; something like "HAVE dirty here"
)
But this fires to all cases(all dirties in knowledg-base)! And I need
for one case for each "position"!
How to solve this problem? And how to compare the templates "position" and
"dirty"??
---------------------------------------------------------------------
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]
---------------------------------------------------------------------