Re: JESS: Java Beans and Jess

2006-08-15 Thread friedman_hill ernest j
I'm having a hard time understanding where this question is coming from. Jess lets you pattern-match on objects, if (and onoy if) that's what you want to do. If you want to match objects, then obviously, you have to create objects. If you don't have objects, then you shouldn't want to match them, b

Re: JESS: Java Beans and Jess

2006-08-15 Thread Chandler
Respected Sir, Gratefull always for your advice, tips, help and suggestions... One query/doubt I did had on the feedback rcvd was... If I have to insert like say 100 different values for a particular number into the working memory.. then as per instructed... that would mean I would have to do t

Re: JESS: Java Beans and Jess

2006-08-14 Thread friedman_hill ernest j
I think Chandler wrote: > (defrule rule1 > ( {< (call ?sb getValue) 5} ) > => ... What "defclass" does (as both the manual and the book explain; have you been reading the manual?) is create a template based on your Java class; "definstance" creates a fact using this template from your Java obje

Re: JESS: Java beans

2004-07-06 Thread ejfried
I think [EMAIL PROTECTED] wrote: > > (defclass a com.xyz.A ) > (defclass b com.xyz.B ) > (defrule assign > (a ?type) >(b ?type) Note, again, that this rule will never match instances of the defclasses described above, for reasons previously discussed; and again, that variables names have n

Re: JESS: Java beans compare

2004-06-24 Thread ejfried
I think [EMAIL PROTECTED] wrote: > > Hi All, > > I want to write a rule which gets executed when the two bean properties > match. > Any idea how to do? > Well, for the sake of argument, let's say it's the "name" properties of a Bean of class Foo, and one of class Bar, and you've defclassed them

RE: JESS: Java Beans

2004-05-21 Thread Alan Moore
Title: RE: JESS: Java Beans > If that is the case, why is the listener required in any scenario? If the bean's properties are changed by your java code, jess needs to know about it. Unless your java code calls Rete#modify(), not likely, your bean will need to inform jess via th

Re: JESS: Java Beans

2004-05-21 Thread Michael Knapik
riginal Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 21, 2004 1:49 PM Subject: Re: JESS: Java Beans > I think Brenda K Hamilton wrote: > > What I need is to have a Java program, may or may not be a bean, load > > Jess and a set of ru

RE: JESS: Java Beans

2004-05-21 Thread Alan Moore
Title: RE: JESS: Java Beans > What I need is to have a Java program, may or may not be a > bean, load Jess and a set of rules and 'pass' some object, a > DOM document is a good example, and have the rules process > the object. The manual has several places where t

Re: JESS: Java Beans

2004-05-21 Thread ejfried
I think Brenda K Hamilton wrote: > What I need is to have a Java program, may or may not be a bean, load > Jess and a set of rules and 'pass' some object, a DOM document is a good > example, and have the rules process the object. For a DOM document, the > processing would take the form of doing a