JESS: ppdefrule doesn't make sense - is this a Jess 6.1 bug?

2006-01-18 Thread Hector Urroz
Hello,
 
Jess version = 6.1
For the rule...
(defrule MAIN::clear-need-answer "Clear need-answer if question has been answered"
 ;; If we need an answer ... ?r <- (MAIN::need-answer (ident ?id))
 ;; ... but already have the answer (MAIN::answer (ident ?id))
 =>
 ;; Print info (printout t "Retracting need-answer for question: " ?id crlf)
 ;; Retract need-answer for this question (retract ?r))
... Jess pretty-prints as:
Jess> (ppdefrule MAIN::clear-need-answer)"(defrule MAIN::clear-need-answer   \"Clear need-answer if question has been answered\"   ?r <- (MAIN::need-answer (ident ?id))   (not (MAIN::answer (ident ?id)))
   (MAIN::answer (ident ?id))   =>   (printout t \"Retracting need-answer for question: \" ?id crlf)   (retract ?r))"
... where does the "not" come from?
Any help would be much appreciated. Thanks!
 
Hector Urroz


Re: JESS: ppdefrule doesn't make sense - is this a Jess 6.1 bug?

2006-01-18 Thread Hector Urroz
Thanks for the response. It does seem a bit odd to automatically and
silently modify code. Why not throw an exception? Is this done elsewhere in
Jess? What is the rationale? Did I stumble onto a "reserved" rule name?

Thanks again,

Hector

On 1/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I think Hector Urroz wrote:
> >
> > Jess> (ppdefrule MAIN::clear-need-answer)
> > "(defrule MAIN::clear-need-answer
> >\"Clear need-answer if question has been answered\"
> >?r <- (MAIN::need-answer (ident ?id))
> >(not (MAIN::answer (ident ?id)))
> >(MAIN::answer (ident ?id))
> >=>
> >(printout t \"Retracting need-answer for question: \" ?id crlf)
> >(retract ?r))"
> >
> > ... where does the "not" come from?
>
>
> It's really there: it is inserted automatically when the rule is being
> compiled. Resist your urge to "clean up" the need-answer facts;
> they're not hurting anything and they help Jess keep track of what
> it's doing.
>
> -
> Ernest Friedman-Hill
> Advanced Software Research  Phone: (925) 294-2154
> Sandia National LabsFAX:   (925) 294-2234
> PO Box 969, MS 9012 [EMAIL PROTECTED]
> Livermore, CA 94550 http://herzberg.ca.sandia.gov
>
> 
> 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]

Re: JESS: Benchmarks 2000 - 2005

2006-02-08 Thread Hector Urroz
James,Do the numbers on the spreadsheet equal the number of seconds to run each of the benchmarks?Thanks,Hector UrrozOn 2/7/06, James C. Owen
 <[EMAIL PROTECTED]> wrote:OK - now they're there.  Try 
http://www.kbsc.com/Performance2000-2005.xls and see if you have any problems.  If so, let me know personally (don't clog up the mailing list with this.)  Thanks,
 




SDGjcoJames C. OwenSenior Consultant[EMAIL PROTECTED]
http://www.kbsc.com"Never give up.  Never give up.  Never, never, never give up."  
>From a speech by former Prime Minister, Winston Churchill, during the most trying times of the British Empire; a great leader too soon forgotten by his country after keeping it from being swallowed up by the Nazi Empire during the second world war.
 
-- Hector Urroz(303) 581-0563 (home)(303) 859-2735 (cell)[EMAIL PROTECTED]