I think Anderson de Rezende Rocha wrote:
> 
> My problem is: I need get the values of a jess templates from any java
> application.
> 
> See,
> base.clp
> (deftemplate position(slot pos))
> 
> now, in one java application I need to get the 'pos' value each time they
> are changed!


It doesn't make sense to ask for the value of a slot in a template --
template-slots don't have values any more than the members of a class
in Java have values. In Java, only the members of *objects* have
values. In Jess, only Facts have slot values. Facts are instances of a
template in the way that objects are instances of a class.

Now, given that, being notified when Facts change is what Jess is all
about. You write a rule which matches the Facts of interest, and on
the right-hand-side you take whatever action you want to take when the
pattern is matched. Whenever the right facts exists, Jess fires the
rules. 




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