In Jess, you can ask the active Rete instance (available in Jess from the "(engine)" function) to iterate over all the facts, then filter the result, perhaps using the jess.FilteringIterator class. For definstances, you can use Rete.listObjects(), which can take a jess.Filter as an argument. So there are a number of different ways to do these things.

On Dec 27, 2006, at 4:09 PM, rim wrote:


Hi
I would like to know the equivalent in jess of the following clips
statements

do-for-fact
do-for-all-facts
any-factp

I would like to iterate on facts and modify some of their slots
cheers



---------------------------------------------------------
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://www.jessrules.com

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