Hello,

I find that toString does not return accurate descriptions of facts:  these 
descriptions refer to all the other facts as <Fact--1> (without regard to the 
actual Fact id numbers).

I think this is because I am:
1. Instantiating all my Facts without asserting them.
2. Populating all these facts with data.
3. Asserting all the facts.

These toString results are wrong even though getFactId returns sensible values 
that are different for each Fact instance. It appears that toString is using 
cached labels that are defined at Fact creation based on the count of Facts in 
the Rete.

I'm instantiating the Facts all at once because the Facts may hold on to other 
Facts (perhaps even cyclically).  I don't think I could assert the facts during 
step 1 (and later update the asserted facts with data) because there would be 
nothing to distinguish the instances.

Is there some way to re-cache the descriptions? Using modify(Fact fact, 
java.lang.String[] slotNames, Value[] slotValues)  with empty collections does 
not work. 

In my experiments so far the engine does seem to function correctly despite the 
mixed up labels... the messed up strings just make debugging harder.

Thank you,
Art

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