I think =?ISO-8859-1?Q?Antonio_Avi=F1a?= wrote:
> 

First, let me suggest you read chapter 8 of the manual or
(coincidentally) the chapter with the same number in "Jess in Action",
because they answer all these questions. The rest of the manual (and
especially of the book) contains lots more information about how Jess
works. 

> Q1.  What kind of data structure Jess uses for partially storing the 
> facts (foo p q) (bar q w) activating r1?

The jess.Token class; this is why when you do a query, you get back
Tokens, and why the Strategy interface deals in Tokens, etc. The
jess.Activation class associates a Token and a Defrule activated by
it. 

> Q2. Given that the facts  (foo p q) (bar q t) activate r1 as well, 
> which  Jess' method (class) is in charge of iterating over the working 
> memory for finding more facts, like (bar q t),  that activate r1 as well?

Nothing ever iterates over all of working memory. Jess uses the Rete
algorithm, as described in the above-mentioned references.

> Q3. How, tecnically speaking,  Jess manages for not testing again facts 
> which were already used for activating a rule?

Ch. 8, Op Cit.

> 
> Q4. By looking at this example one can see that the fact (foo p q) is in 
> some sense partially kept in Jess' mind  in order to test facts like 
> (bar q w) and (bar q t) which can activate rule r1. Therefore my 
> question is which strategy, tecnically speaking, is implemented in Jess 
> for partially keeping in mind facts such as (foo p q) in order to test 
> complementary facts such as (bar q w), (bar q t)  that could potencially 
> activate a given rule?

Ibid.

> 
> Finally, regarding Q4 I know that the overall proccess can be explained 
> via a forward chaining. Nevertheless, how Jess under the hood deals with 
> this issues?

Forward chaining has nothing to do with pattern-matching, so I don't
understand this last question. Anyway, go read the manual.


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

Reply via email to