Is it a typo, or do you set ?st and undefinstance ?stinst ?

Anyway, do you still see the remove facts with (facts)?
Do you still see the facts if you match them with a rule?

Florian

Bogdan Werth wrote:
Hello Jess-list,
since I didn't get any reply on my previous email and couldn't solve the problem on my own I post my question again. What do I need to viper all possible links to the shadow fact object so that it is cleaned by java garbage collector. I am running a joined RePast-Jess simulation and creation lots and lots of agents represented by shadow facts. After they died I need somehow to remove all the links to these objects in order to give it free for the destruction. Here is what I do:

engine.executeCommand("(bind ?st (new Storage))");
engine.executeCommand("(definstance storage ?st)");

and this is how they suppose to disappear forever

engine.executeCommand("(undefinstance ?stinst  )");
engine.executeCommand("(bind ?st nil) ");

Apparently the simulation gets slower and slower towards the end. I assume that I am leaving something which still holds these objects. I might be wrong however and the reason for performance loss lies somewhere else.

Kind regards for all the efforts in beforehand



--
Florian Fischer
Service d'Informatique Midicale
Htpitaux Universitaires de Genhve
Til: 022 37 28861
[EMAIL PROTECTED]


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