First of all, Thanks a lot for your time,
Is there another way to do the same action instead of using the getObjects/Filter technique? I need a generic method to update sprcific shadowFacts... On Tue, 2 Dec 2008, Wolfgang Laun wrote: > Below is the code showing both, the Rete.getObjects/Filter technique and the > direct access using a Map in class Door. If you do have many facts, then the > getObjects/Filter will be indeed slow because it uses a sequential search > through all facts. > -W > > On Tue, Dec 2, 2008 at 12:50 PM, John Chrysakis <[EMAIL PROTECTED]>wrote: > > > > > How Can I Use getObjects ?? > > > > rete.getObjects(new Filter.ByClass(A))?? > > > > > > > I could do that, but the example suggests that the name attribute is > > > a unique key to an object. If these objects are static once they have > > been > > > created > > > or the retract actions aren't all over the place you might consider > > keeping > > > a Map > > > as a static variable within that class A which maps the name to A > > objects. > > > > > > > How, could you be more analytic? > > > > > > > Of course, if the number of facts in your WM is small, the pass over all > > > facts won't slow you down much. > > > > > > I don't prefer this solution because I would have a lot of facts. > > > > > > > > > -------------------------------------------------------------------- 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] --------------------------------------------------------------------
