I think Sander Rensen wrote:
> 
> The problem is I think, that when i delete all facts a automatically
> undefinstance of  (located (thing ?m) (location ?l2) (OBJECT ?o2))
> takes place.

Yes, retracting a shadow fact undefinstances the corresponding object.

> When the fact is asserted again, the fact
> is there, but the match with the deffinstance object is gone.
> So the (located (thing ?m) (location ?l2) (OBJECT ?o2)) appears in the
> factlist, but it is a shadowfact and there is no deffinstance object???

Yes, and as I understand it, you're asserting the Java Fact object
directly, which will have an internal flag set to indicate that there
SHOULD be a definstance object -- so you've got corrupted internal
state. 

> 
> My question is: Could this be the problem and how can i solve this ??
> I need to reset all facts !! (i think of using rete.listDeffinstances(), but
> how ??)

Well, can you define for me what you mean by "reset all facts" and
explain why neither reset() nor updateObject() do what you need?


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