design patterns for hierarchical structures
        Posted  
        
            by 
                JLBarros
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by JLBarros
        
        
        
        Published on 2012-07-04T19:27:21Z
        Indexed on 
            2012/07/04
            21:16 UTC
        
        
        Read the original article
        Hit count: 281
        
Anyone knows some design patterns for hierarchical structures? For example, to manage inventory categories, accounting chart of accounts, divisions of human resources, etc..
Thank you very much in advance
EDIT: Thanks for your interest. I am looking for a better way of dealing with hierarchical items to which they should apply operations depending on the level of hierarchy. I have been studying the patterns by Martin Fowler, for example Accounting, but I wonder if there are other more generic.
The problem is that operations apply to the items must be possible to change even at run time and may depend on other external variables. I thought of a kind of strategy pattern but would like to combine it with the fact that it is a hierarchical scheme.
I would appreciate any reference to hierarchical patterns and you'll take care of them in depth.
© Stack Overflow or respective owner