Hi,
I'm trying to use Jess to detect source code defects. The tool first parse
source code and generate facts which represent design information such as
classes, functions, attributes, inheritances and invocations etc., then
apply Jess rule to detect flaws. The tools works on small size of
In the program below, Jess will only fire the second rule if both are
uncommented, but each of them fires if the other one isn't there. If the
order of rule definitions is reversed, the second one wins again.
Jess Version 7.0p1
Kind regards
Wolfgang
(clear)
(deftemplate Obj
(slot id
It looks like your facts include a mostly symbols, with a lot of
duplication. This is good news, because the parser in Jess 7.1
(there's an alpha version available on the web site) will detect
duplicate symbols and share them, which in your case could save a
*lot* of memory. Try it out and
This appears to be an incremental reset bug. The term incremental
reset refers to the special processing that has to be done to bring
a rule up to date if it's added to an already-populated working
memory. Jess expects you to do things the other way around: compile
the Rete network by
Cool! I'm going to try it, cross fingers. I will let you know the results.
thank you.
On 6/27/07, Ernest Friedman-Hill [EMAIL PROTECTED] wrote:
It looks like your facts include a mostly symbols, with a lot of
duplication. This is good news, because the parser in Jess 7.1
(there's an alpha
Perhaps this is of interest: The original code had two rules - the only
ones with accumulate - as the fifth and sixth rule between (reset) and
(run), and the problem didn't surface until I added number 6.
-W
Ernest Friedman-Hill wrote:
This appears to be an incremental reset bug. The term
Since the accumulate-NextTo pattern
(accumulate (bind ?xcount 0) (++ ?xcount) ?xcount (NextTo (room1 ?rid)))
doesn't include a room2 match, shouldn't the pattern be matched just once for
any one ?rid instantiation? The documentation is not clear about what a token
means: a match to a fact or
I have tried Jess Version 7.1a1 to load the same aforementioned facts file,
I still got the following error without any luck. Ernest, you said
that 7.1parser would detect duplicate symbols and share them, how can
I know this
new function work? Need I give some commands to Jess and ask Jess parser
On Jun 27, 2007, at 1:47 PM, fan yang wrote:
I have tried Jess Version 7.1a1 to load the same aforementioned
facts file, I still got the following error without any luck.
Ernest, you said that 7.1 parser would detect duplicate symbols and
share them, how can I know this new function work?
I didn't take consideration of Q12 yet. I will look at it. But for my case,
I just tried to load facts and didn't try to fire the rules. Do you have
other advices for me? Thank you.
On 6/27/07, Ernest Friedman-Hill [EMAIL PROTECTED] wrote:
On Jun 27, 2007, at 1:47 PM, fan yang wrote:
I
On Jun 27, 2007, at 3:22 PM, fan yang wrote:
I didn't take consideration of Q12 yet. I will look at it. But for
my case, I just tried to load facts and didn't try to fire the
rules. Do you have other advices for me? Thank you.
Pattern matching happens when working memory is changed --
11 matches
Mail list logo