Dusan Sormaz
At 12:59 AM 3/16/2004 +0800, you wrote:
Hello
How can I have the same value of ?i and ?slot between rule (matching-similar-case) and rule(idea-combination)? (see the following two rules)
Could anyone help me?
thanks
lai
(defmodule casebase)
(defrule matching-similar-case
(declare (salience 290))
(answer (ident q2)(text ?i))
(answer (ident q3)(text ?c))
?fact <- (idea (issue ?i)(concept ?c))
=>
(printout t "Design ideas are " ?fact crlf)
(bind ?slot (fact-slot-value ?fact solution))
(printout t ?slot crlf)
(retract ?fact)
(save-facts idea2 MAIN::idea))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Module matching
(defmodule matching)
(defrule idea-combination
(answer (ident q2)(text ?i))
?fact <- (idea (issue ?i)(concept ?slot))
=>
(printout t "Combined idea is " ?fact crlf)
(bind ?slot (fact-slot-value ?fact concept))
(printout t ?slot crlf))
--------------------------------------------------------------------
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]
--------------------------------------------------------------------
* Du�an �ormaz, PhD, Associate Professor
* Ohio University
* Industrial and Manufacturing Systems Engineering Department
* 277 Stocker Center, Athens, OH 45701-2979
* phone: (740) 593-1545
* fax: (740) 593-0778
* e-mail: [EMAIL PROTECTED]
* url: http://www.ent.ohiou.edu/~sormaz
***************************************************************************
