Thanks Ernest Friedman!
I removed m_name, it worked fine!
[EMAIL PROTECTED] wrote:
I think [EMAIL PROTECTED] wrote:
>
> Is there a way to call one rule from another., instead of recreating
> non-similar conditions in another rule too?
>
If you're worried about duplication on the right-hand-side of rules,
you can write a deffunction, and call it on the right-hand-side of
both rules. If you're worried about duplicate patterns: Jess notices
this, and the duplication is removed while the Rete network is built;
as long as the common patterns are the first patterns in the rule,
duplicates will be shared between all rules automatically.
Is it required for dynamic bean to have m_name as property and a
> constructor?
No, of course they don't have to have a "name" property. Because Jess
doesn't construct your Beans itself, they don't even have to have a
default constructor.
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (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]
--------------------------------------------------------------------
Thanks and regards,
Bhaskar
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.