Thank you. You were right! I indeed forgot to do this. Now it works.

Kind regards and a happy new year!

Paul


From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: JESS: Question
Date: Tue, 30 Dec 2003 07:03:54 -0800 (PST)

I think Paul Klapwijk wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hello,
>
> I can't get rules about unordered to work from Java [...] I've added
> a template:
>
> r = new Rete();
> dt = new Deftemplate("person","a person template",r);
> Value value0 = new Value("Paul", RU.STRING);
> dt.addSlot("name",value0, "STRING");
> Value value1 = new Value("male", RU.STRING);
> dt.addSlot("gender",value1, "STRING");
>

This code looks fine, so I'm guessing you've neglected to add the
Deftemplate you constructed to the Rete engine --

r.addDeftemplate(dt);

The examples in the manual actually use the much simpler
Rete.executeCommand("(deftemplate...)") so there's no example of doing
this.


--------------------------------------------------------- Ernest Friedman-Hill Science and Engineering PSEs Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
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]
--------------------------------------------------------------------


_________________________________________________________________ MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl

--------------------------------------------------------------------
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]
--------------------------------------------------------------------



Reply via email to