Re: JESS: Backward Chaining DOUBT

2006-09-06 Thread Chandler
My objective behind the example was to print all the values.. and if any values were missing then 1.First determine the missing values 2.Through backward chaining get those values which are missing and insert them into working memory eventually activating my main rule which prints out all the valu

Re: JESS: Backward Chaining DOUBT

2006-09-06 Thread friedman_hill ernest j
I think Chandler wrote: > > Here I have a doubt that why is it my Rule FIRES ?? because I still require > value for v1 for the rule to fire, NOT SO ?? Not so. All that is required is a fact that matches the rule. Backward chaining has nothing at all to do with this! You asserted a fact that match

JESS: Backward Chaining DOUBT

2006-09-06 Thread Chandler
Hello All, I had a little doubt on backward chaining, for which I wrote myself a little program (deftemplate Values (declare (backchain-reactive TRUE)) (slot v1) (slot v2) (slot v3)) Jess> (defrule printValues (Values (v1 ?n1)(v2 ?n2)(v3 ?n3)) => (printout t "Value 1 : " ?n1 crlf ) (printout