I think what you are looking for are "defmodules." This is a planned
feature for Jess 6.0 final.
For now, the alternatives are 1) separate Rete objects, each with
their own rule base, or 2) control facts. The latter definitely
doesn't help simplify the rule base -- on the contrary, it tends to
make it worse.
I think [EMAIL PROTECTED] wrote:
> Hi,
> In our research project, we need to handle a large number of
> objects and rules. So I am thinking of using so-called "rule subroutines"
> to handle this situation (BTW, my old system was in CLIPS, at the end the
> rule
> base became so large, and it
> became very difficult to add any new rules and to debug
> if something goes wrong during the reasoning stage).
>
> This is what I thought it may work better:
>
> I partition my rule bases into different rule sets and associate
> these rule sets with specific objects (Java objects that
> can have Jess connection--a Jess fact with wrapper).
>
> At various stages, the object could call its particular set of
> rules to match against the current context and to fire (if there
> is a match) as it calls a "subroutine". This way, not all rules (e.g.,
> rule sets associated
> with other objects) will be used to match against the context,
> consequently,
> it improves the performance and structure of the system (e.g., easier for
> debugging since only a limited set of rules will be used).
>
> However, there are a couple of issues:
> 1. How to obtain/structure the final result of a rule subroutine? ( I am
> not
> clear how to obtain the rule firing results after the rule are fired--e.g.,
> which
> rule has fired).
>
> 2. How to tell Jess in Java that I only want to use a particular set of
> rules?
>
> I am pretty sure there are dirty, quick ways to these issues but I'd like
> to
> hear experts' opinions/suggestions as how I should approch this more
> efficiently and elegantly.
>
> Thanks in advance,
>
>
>--------------------------------------------------------------------------------------
>
> Michelle Zhou
> IBM T.J. Watson 30 Saw Mill River Rd Hawthorne, NY 10532
> Tel (914)784-7633 Fax (914)784-7455
> http://www.cs.columbia.edu/~zhou
>
>----------------------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
>
---------------------------------------------------------
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]
---------------------------------------------------------------------