I think Skeptic 2000 wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> 
> Oh, now I feel bad, but I was in the "Java mindset", can it be done with the 
> SetStrategy method?

Yes, you could use the Rete.setStrategy() method, if you had an
instance of the class you wanted Jess to use; but the ones that
implement depth and breadth aren't actually public, so in practice you
can only do this with your own implementations.

Just say (Jess 7)

Rete engine = ...
engine.eval("(set-strategy breadth)");

In Jess 6, you have to use "executeCommand()" instead of "eval()".

> 
> A new question : the descripton of the two defaults strategy talk about 
> choosing the rule according to the order in which they have been activated. 
> But when we implement Strategy, we must compare two Activation object and I 
> don't see a method that give us a way to know which one is the more recent.

The needed methods in the Token class are not public. There's actually
a comment in the Jess 7 source wondering whether they should  be made
so; perhaps they should.

The Fact class has a public getTime() method, which see; it returns a
number related to the recency of the fact's last modification.



---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          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]
--------------------------------------------------------------------

Reply via email to