I called, in this order,
engine.setFocus("UPDATE");
engine.setFocus("MAIN");
engine.setFocus("CLEAN-UP");
engine.run();
from a Java program. I had understood from JIA (p.127) that I could
push the MAIN module onto the focus stack in this way (though it would
always be on the bottom of the stack as well). In my Jess program,
rules firing in the MAIN module activate rules in the UPDATE module but,
at least in some cases, the latter do not fire unless I move them to the
MAIN module. It appears that the MAIN module ONLY gets focus last.
This seems at odds with the JIA description -- unless, of course, I am
doing something wrong.
--
Scott Moss
Professor of Social Simulation
Centre for Policy Modelling
Manchester Metropolitan University
Aytoun Building
Manchester M1 3GH
http://cfpm.org/~scott
(t) +44 (0)161 247 3886
(f) +44 (0)161 247 6802
(m) +44 (0)7740 942564
--------------------------------------------------------------------
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]
--------------------------------------------------------------------