I think Anderson de Rezende Rocha wrote:

> ; I have some templates
> (deftemplate position(slot xp)(slot yp))
> (deftemplate obstacle(slot xo)(slot yo))
> ...
> 
> Now I intend follow the facts changes from any java application. Then when
> the position-fact
> changes from xp=3,yp=5 to xp=4,yp=6 I need represent this change
> graphically using a GUI.
> But for this I need know how to get the facts changes from java. How I can
> do this?

Write a JessEventListener to handle FACT events. Remember that (modify)
is implemented as a (retract) followed by an (assert). Manual section
4.10 covers JessEvents, and includes a sample handler that counts
facts being asserted and removed.

In general, I recommend that people embarking on a Jess-based project
read the whole manual all the way through at least once, to get some
familiarity with all the concepts.

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