I think Dusan Sormaz wrote:

> Jess> (fact-slot-value (fact-id 2) radius)
> 5.5
> Jess> (modify (fact-id 2) (radius 8.0) )
> <Fact-2>
> Jess> (fact-slot-value (fact-id 2) radius)
> 5.5
> Jess> (call (fact-slot-value (fact-id 2) OBJECT) getRadius)
> 8.0

Assuming this is a dynamic definstance (should be, or there's no
reason why these would be out of synch) Jess is relying here on a
proper implementation of PropertyChangeEvents in the JavaBean class,
so I'd check those for correct operation.

> Another related question. If I use shadow facts, and then Assert them in 
> RHS of the rule, is corresponding java object created autoimatically?

Nope, doesn't work that way.



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