I think Gang Liu wrote:
> 
> Acturally, the purpose of this application is very straigforward:
> 
> 1.When a fact comes, put it into Jess knowledge base.
> 
> 2. Run Jess' rules. This rule is to copy the value of one slot(attribute) of 
> this fact to an attribute of an event.
> 
> 3. Return this event to this application.
> 

If, at any time, there is only one "relevant" fact in your working
memory, and only one rule, and you know it will fire, then this really
isn't an appropriate rule-based application; it's not clear why you
don't just do the work entirely in Java. Proper rule-based
applications are situations where many facts and many rules are all in
play at once. If there is only one of each, there's no reason to use
Jess, and in fact, just writing whatever you want to do directly in
Java would always be much more efficient. Jess's strength lies in its
ability to reduce the redundant work that you'd do writing a nested
set of loops to process many combinations of many pieces of data in
many ways. If you're only processing one pice of information in a
fixed way, then filtering things through Jess's working memory and
Rete network is only going to slow you down.

Now, if you have a rule-based application with many facts and many
rules, with non-obvious flow of control, then it makes sense to talk
about optimizing it. If there's only one discrete thing that you know
will happen in a certain order, well, quibbling over assert() vs
(assert) vs. assertString() vs executeCommand() is really not of much
use.



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

Reply via email to