Hi Ernest, > > I read about Charlemagne (Jess 7.0) in this article > > (http://www.devx.com/Java/Article/17651) and was > immediately pleased by the > > upcoming feature of Jess being able to reason over external > resources (if I > > got this right). > > I don't think you did, actually. Current versions of Jess already can > reason over external resources.
Ok, nice, the better, actually. So how can I do this? > What that article mentions is that > Charlemagne will use "finders." A finder is a Java method you supply > which fetches objects according to some description. The idea is that > you might have a customer database including a million > customers. Rather than having a million Customer objects in working > memory, you just leave the customers in the database and write rules > as if they were in working memory. Jess will use the finder method to > fetch appropriate records. This is similar to what you can already do > with backward chaining, but it's simpler to use and more efficient. Ah, so backward chaining is the technique to use when I want to reason over external resources? (The book "Jess in Action" ist't yet dispatched...) > > Does anybody has an idea on how to implement this? Using > > JavaBeans to store data in the blackboard and to > > simultaneously interface it with Jess (via > > declass and definstance) seem to be right now the best > > solution I can see, but I still doesn't like it - my > impression is still that this has a "bad smell" and can be improved. > > There's nothing wrong with doing it that way. If the individual pieces > of data are static -- i.e., they don't have properties that change -- > then you can use static definstances and so PropertyChangeListeners > won't be needed, so the "Beans" can be very simple indeed. That's not fully clear yet. The best guess right now is that it will be a mix of static and dynamic JavaBeans. Cheers, Michel -------------------------------------------------------------------- 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] --------------------------------------------------------------------
