I think Graia, Hakim wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi > > I have problem with retracting facts I used retract and undefinstance but the fact >is till there > > Any one experience this problem ? >
You should let us know what version of Jess you're running, and also how your program gets to the state it's in -- in particular, if you've seen any error messages prior to this happening. Showing us the defclass and definstance calls might help, too. It's possible that your problem is related to problems with your objects's hashCode() and/or equals() method. If the hashCode of the object changes unexpectedly -- i.e., while it's installed in working memory as a definstance, without associated change events -- Jess's internal data structures can become corrupted. Furthermore, if your Bean class's equals and hashCode methods are not defined consistently -- i.e., you've overridden one, but not the other, so that their basic contract is violated -- again, Jess can become confused. Earlier versions of Jess were more prone to this than current ones. > > Hakim > > > Jess> (facts) > f-6 (MAIN::AlarmFaultData (assocEntityId1 1) (assocEntityId2 2) (assocEntityId3 0) >(class <External-Address:java.lang.Class>) (description "The Wave Interface of an >unprotected circuit is manually turned down. Caused by events: 11002 ONS540-00313 >11003 ONS540-00401 ") (devEntityId 2) (devEntityId2 0) (eventCode "ONS540-10004") >(eventIdentifier "") (leFsEntityId 0) (neEntityId 1) (nodeIp "") (nodeName "") >(parentUuid -1) (persisted FALSE) (rawEventData nil) (sequenceId -1) (serialId "1:2") >(serviceAffecting FALSE) (severity -1) (timeOfOccurance 1044305330739) (uuid 11005) >(OBJECT <External-Address:com.giantloop.util.tool.obj.fault.AlarmFaultData>) (active >TRUE) (eventSet <External-Address:java.util.LinkedList>) (inActive FALSE) (state 2) >(timeDuration 0)) > For a total of 1 facts. > Jess> (retract 6) > TRUE > Jess> (undefinstance *) > TRUE > Jess> (facts) > f-6 (MAIN::AlarmFaultData (assocEntityId1 1) (assocEntityId2 2) (assocEntityId3 0) >(class <External-Address:java.lang.Class>) (description "The Wave Interface of an >unprotected circuit is manually turned down. Caused by events: 11002 ONS540-00313 >11003 ONS540-00401 ") (devEntityId 2) (devEntityId2 0) (eventCode "ONS540-10004") >(eventIdentifier "") (leFsEntityId 0) (neEntityId 1) (nodeIp "") (nodeName "") >(parentUuid -1) (persisted FALSE) (rawEventData nil) (sequenceId -1) (serialId "1:2") >(serviceAffecting FALSE) (severity -1) (timeOfOccurance 1044305330739) (uuid 11005) >(OBJECT <External-Address:com.giantloop.util.tool.obj.fault.AlarmFaultData>) (active >TRUE) (eventSet <External-Address:java.util.LinkedList>) (inActive FALSE) (state 2) >(timeDuration 0)) > For a total of 1 facts. > Jess> > --------------------------------------------------------- Ernest Friedman-Hill Distributed Systems Research 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] --------------------------------------------------------------------
