On Thursday 03 April 2003 17:57, [EMAIL PROTECTED] wrote: > Yes, and there's no problem there: you can add and remove rules from > a running Jess engine; i.e. the rule engine can "learn" as it runs.
Excellent. How would you implement the usage of different sets of rules for different instances? Let's suppose you have 200 agents of type A and 200 of type B. Each group have a different set of rules. Then, in each tick of time each agent is asked to act somehow. Objects of type A should fire their rules, and objects of type B their own. (I suppose from your feedback that it would be natural to have a singleton with a Rete object created when the simulation is launched.) Would you assert and retract rules as needed, fetch and store a variable to represent the agent, and program Jess code as if there was just one agent in scope, so 400 Jess runs would be performed? -- fxn -------------------------------------------------------------------- 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] --------------------------------------------------------------------