John --
After looking at your code, I see that your class JessHandler's
"add()" method looks like this:
public void add(Object obj)throws JessException {
/* Remove any previous data */
engine.resetToMark(marker);
/* Add user instance */
engine.add(obj); //Mporw na kanw add opoiodhpote Object.
}
That "resetToMark()" method removes any previously asserted objects;
your working memory will therefore never contain more than one object.
That's why only rules that match a single object will ever fire!
On Oct 31, 2008, at 10:39 AM, John Chrysakis wrote:
You are right. here you are the file,
I am sorry for this omission
On Fri, 31 Oct 2008, Ernest Friedman-Hill wrote:
This code is looking for a file name TestProblem.clp which is not
supplied in the zip file.
On Oct 31, 2008, at 10:28 AM, John Chrysakis wrote:
I specify the problem into the attached simple code.
Please tell me if you found why for both LHS conditions
the rule never fires, while if I test each one seperately
everything goes fine.
thanks a lot for your real support!!!
John.
-----------------------------------------------------
<newarch.zip>
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.com
<TestProblem.clp>
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.com
--------------------------------------------------------------------
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]
--------------------------------------------------------------------