Hi,
(facts) is written in Jess code, in the file jess/scriptlib.clp. When
you create a Rete object, this file is not loaded automatically - you
have to do it yourself. If you want Jess to do it for you, use the
class jess.Main. An easy way to do this is just to do this:
Rete r = /* whatever */;
Main m = new Main();
m.initialize(new String[] {}, r);
>From here on,you can simply forget about the 'm' object. It has done
its job of initializing the Rete object, including loading in the
script library (and arranging to have it re-loaded when the (clear)
command is issued.)
See manual sections 4.4.3 and 6.1 for more information.
I think Calicrates Policroniades Borraz wrote:
>
> Hi. I'm writting a program that uses a Rete object and in a moment I want
> to know wich facts are activated in the KB so I use:
>
> rete.executeCommand("(facts)");
>
> But I got the next message error:
>
> Jess reported an error in routine Funcall.execute while executing (facts).
> Message: Unimplemented function facts.
> Program text: ( facts ) at line 0.
>
> Does somebody know what is wrong?
>
> Thank you in advance...
>
> Calicrates
>
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
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]
---------------------------------------------------------------------