1 to explain the system
1.1 Type:
1.2 Definitions:
1.3 application scenarios:
1.4 Advantages:
1.5 Disadvantages:
1.6 interaction with other modes of
1 to explain the system
1.1 Type:
Structural
1.2 Definitions:
◆ Definition: combining objects in a tree structure to represent "part - whole" hierarchy
◆ combination mode causes the client to maintain a consistent manner individual objects and composite objects
1.3 application scenarios:
· Want the client can ignore the differences in combination with a single target object when
dealing with a tree
1.4 Advantages:
◆ clearly define complex hierarchical objects representing all or part of an object hierarchy
◆ let the client ignores the differences in the level of convenience for the entire hierarchy of controls
◆ simplify client code
◆ in line with the principle of opening and closing
1.5 Disadvantages:
· When the limit would be more complex type
◆ design becomes more abstract
1.6 interaction with other modes of
◆ combination mode and Visitor Pattern
Combined mode can be accessed by the access mode recursive structure