JESS: rete reset exception

2004-10-25 Thread bhaskar yallala
I am getting this exception while calling rete.reset() after executing the rules! Jess reported an error in routine DefinstanceList.updateShadowFact. Message: Object not a definstance: ... I over rode the hashCode method. Is this the problem? Thanks Bhaskar Thanks and

Re: JESS: few questions

2004-08-17 Thread bhaskar yallala
Thanks Ernest Friedman! I removed m_name, it worked fine! [EMAIL PROTECTED] wrote: I think [EMAIL PROTECTED] wrote: Is there a way to call one rule from another., instead of recreating non-similar conditions in another rule too? If you're worried about duplication on the right-hand-side of

Re: JESS: writing priorities

2004-07-18 Thread bhaskar yallala
loops in java better. Does rule engine solve these kind of problems in simpe way? Thanks Bhaskar [EMAIL PROTECTED] wrote: I think bhaskar yallala wrote: But I want to write a rule such that for the given demands only cusPriority highest should be matched first and cusFactor highest should

JESS: writing priorities

2004-07-16 Thread bhaskar yallala
Hi All, I have demand pool bean which has demands as an array. Demand has customerPriority, cusFactor, wantedDate, quantity etc. I have been able to write to match supply with a demand in the demand pool. But I want to write a rule such that for the given demands only cusPriority highest should

Re: JESS: writing priorities

2004-07-16 Thread bhaskar yallala
Why this doesnt fire? I am passing demandPool with three demand objects and customerPriority set 1 for each of them? (demandPool (OBJECT ?demandPool)) (demandPool (demands $?demands:(member$ (eq customerPriority 1) $?demands ) ) ) I am calling rete.run(); Thanks Bhaskar bhaskar yallala [EMAIL

Re: JESS: writing priorities

2004-07-16 Thread bhaskar yallala
[EMAIL PROTECTED] wrote: I think bhaskar yallala wrote: Why this doesnt fire? I am passing demandPool with three demand objects and customerPriority set 1 for each of them? (demandPool (OBJECT ?demandPool)) (demandPool (demands $?demands:(member$ (eq customerPriority 1) $?demands ) ) )I don't really

Re: JESS: multi slot example

2004-07-12 Thread bhaskar yallala
bove rule, if I want to get all the matching demands as list on RHS,how can I get them? Right now, I only get first demand that's matched. Thanks Bhaskar [EMAIL PROTECTED] wrote: I think bhaskar yallala wrote: Secondly, In (demandPool (demands $?first ?demand:(eq (get-member ?demand) "x&quo

JESS: breaking complex rules

2004-07-12 Thread bhaskar yallala
Hi folks, Is there a way to break a complex rule in to simpel rules JESS? How can I make it to fire a rule LHS of defrule? Is it by assert? I was trying this but it says bad slot value! Any ideas? Thanks BhaskarThanks and regards,Bhaskar [EMAIL PROTECTED][EMAIL PROTECTED] Do you Yahoo!?

Re: JESS: multi slot example

2004-07-11 Thread bhaskar yallala
rthly,if I want to bind the matching demand/s how can I do that? Is it like (demandPool (demands $?first (bind ?matchedDemand (?demand:(eq (get-member ?demand) "x") )$?rest)) Thanks Bhaskar [EMAIL PROTECTED] wrote: I think bhaskar yallala wrote: class DeandPool{ int[] types; Deman

JESS: multi slot example

2004-07-10 Thread bhaskar yallala
Hello All Does any body have complete example of multislot example? I have JIA.I am just learning things.I didnt find any complete example anywhere. Ihave class DeandPool{ int[] types; Demand[] demands; } class Demand{ String type; } Ihave rule file like this: (watch all) (defclass demandPool