These are messy rules, so I don't really know what you expect from
them, but I can tell you that under Jess 6.0a3, rule-1 fires and
rule-2 does not. I don't know what version of Jess you're using, but
if you tell me perhaps I can explain your observation.
I think =?iso-8859-1?Q?S=E9bastien_Darveau?= wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Why does the last rule is fired but not the first one (rule-1 will fire if I remove
>rule-2) ?
>
> (assert (f1 4 6 1 4 1 nil))
> (assert (f2 -7 0 4 9))
>
> (deffunction same-name (?n1 ?n2)
> (if (eq (mod ?n1 7) (mod ?n2 7)) then
> true
> else
> false))
>
> (defrule rule-1
> (f1 ?n1 ?n2 ?n3 ? ? ?)
> (f2 ?bc ?tc ?ac&:(same-name ?ac ?n1)|:(same-name ?ac ?n2)|:(same-name ?ac ?n3) ?sc)
> =>
> (assert (something)))
>
> (defrule rule-2
> (f1 ?n1 ?n2 ?n3 ? ? ?)
> (f2 ?bc ?ac&:(same-name ?ac ?n1)|:(same-name ?ac ?n2)|:(same-name ?ac ?n3) ?ac ?sc)
> =>
> (assert (something)))
>
> Thank you.
>
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
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]
---------------------------------------------------------------------