No, there's no access control, just precedence. Any module can access facts in any other module, but a module can access facts in any other module (except MAIN) only by qualifying the facts with the name of the other module. Any module can access facts in MAIN either explicitly by using MAIN, or implicitly by lookup.

Facts based on templates defined in MAIN are like "global variables". To achieve something along the lines of what you're looking for, don't declare templates in MAIN, and then prohibit, by style guide, explicitly qualifying the template names.



On Jul 20, 2007, at 12:47 PM, D Moon wrote:

Can I prohibit the rules in a particular module from finding any facts asserted in MAIN:: or any other modules?

(Application: in an agent-based model, I wish to restrict the rules, that represent the behavior and perception of an agent, from accessing environment facts to which an agent should not have visibility, according to the model.)

V/R,

Moon

---------------------------------------------------------
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://www.jessrules.com

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