> Another question: If I have asserted some ordered/unordered facts before
> the rules, I should call (reset) at the very beginning of the program. Am I
> correct?
Yes you are. If you call (reset) after asserting the facts you'd remove them before
they could be processed. The normal structure is as follows:
;; Imports etc.
(import some.java.packet.*)
(batch myutils.clp)
;; Deftemplates and Defclasses
(deftemplate my-template ...)
(defclass the-class my.packet.TheClass)
;; Defrules
(defrule my-empty-lhs-rule-activated-by-reset
=>
(printout t "I'll fire only after (reset) is called" crlf))
;; Deffacts
(deffacts facts-asserted-by-reset-call
(a-fact ...)
(another-fact ...))
;; Main
(reset)
(assert (my-fact ...))
...
(run) ;; Now let'em rules fire ...
Greetings, Thomas
---------------------------------------------------------------------
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]
---------------------------------------------------------------------