I think there is a problem with the reset command in Jess. Invoking the
reset function twice in Jess5.05a causes the engine to fire twice:
File: hello.clp:
----------------------------------------------------------
(deffacts hello-fact
(hello world) )
(defrule testRule
(hello ?var)
=>
(printout t "Hello " ?var crlf))
(reset)
(reset)
(run)
----------------------------------------------------------
Running the file produces:
Jess, the Java Expert System Shell
Copyright (C) 1998 E.J. Friedman Hill and the Sandia Corporation
Jess Version 5.0a5 5/27/99
Jess> (batch hello.clp)
Hello world
Hello world
2
Jess>
This behaviour doesn't appear in Jess4.4.
---------------------------------------------------------------------
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]
---------------------------------------------------------------------