I think Ron Day wrote:
> I'm interested in any info or explanation of the difference in the Jess
> version of Modules versus the clips version of Modules. I have some relic
> Clips files that I was converting to Jess, and I'm not sure how to handle
> the import and export of constructs in the clips Defmodule construct.......

You can think of CLIPS modules as a kind of directed graph. Any module
can export a template, and any other module can import it. The only
way two modules can share a template is for one to export it and the
other to import it. It can get confusing, especially as you even have
to import implicitly matched templates like MAIN::initial-fact.

Jess modules havs a simpler tree structure. There's a MAIN module, and
then there are user-defined modules. All user defined modules have
access to all templates defined in MAIN. The only way for two modules
to share a template is for it to be defined in MAIN.

So to modify the CLIPS code, you just remove all the import and export
statements, and push all the templates which are exported from a
user-defined module up into MAIN. The ones that were not exported can
stay in the individual modules. If you've got two templates with the
same name exported from different modules, you'll need to rename one;
this is not a very common situation in practice.

---------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to