Earnest wrote:
"Another neat new feature is that Jess will use Bean-like
Events to notify you of various occurrences: the ReteDIsplay class wil
disappear, replaced by a set of Listener interfaces. These Listeners
will be much more fine-grained and will be sufficient to, for example,
build a debugger or graphical interface on top of."
[alanm]
I am in the process of building a debugger and would like to see what your
proposed events are. I have been making mods to Jess for just this purpose
and would prefer to dump my work in favor of a Jess supplied facility.
To that end, does your event set provide context information, such as
current file/line number, so that a dubugger can do source level debugging?
I have been working on this for sometime now and have not found a clean way
to add this to Jess. My current thought is to supply a "code context"
handle (really just a long integer or a pointer to type Object) to be given
to Jess (via optional Jesp constructor parameter?) when loading from a
stream. This handle would be passed along with rule execution events and
allow the debugger to manage the code context itself.
In looking at jesp.java is seems that the parser keeps track line numbers
and filenames (via JessTokenStream) but I don't see how this information is
available at runtime (the parser and stream are not available?)
Unfortunately, I fear that the filename/lineno information is simply the
currently executing stream (probably the one calling the "reset" or "run"
function) which is not enouph since some rules may have been loaded via a
separate stream/parser combo.
Comments, suggestions?
Alan Moore mailto:[EMAIL PROTECTED]
Intel Corporation http://www.smart-tv.com
Disclaimer http://www.intel.com/tradmarx.htm
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------