I think Jason Morris wrote: > > In fact, by using Swing's trees from my Jess code, I could attach a "user > object" to each DefaultMutableTreeNode and manipulate it via > getUserObject()/setUserObject(). In my case, the user object becomes a Jess > fact reference (or anything else I want to stick in there). Additionally, I > could take advantage of other DefaultTreeModel methods like getPath(), > getPathtoRoot(), and a whole host of useful query and enumeration methods, > which I'd otherwise have to had written from scratch. > > Jess really is the "programmer's rule engine"! >
Interesting. I never thought about using DefaultMutableTreeNode as a data structure apart from Swing, but that's actually not a bad idea, certainly for experimentation, anyway. It will certainly be possible to use "accumulate" to populate trees this way. --------------------------------------------------------- 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://herzberg.ca.sandia.gov -------------------------------------------------------------------- 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] --------------------------------------------------------------------