|
Annex B: Design PatternsB4.CompositeDescriptionWhen we wish to represent a tree structure or to mask the differences between composite and simple objects of similar nature, the composite pattern proposes the definition of a unified interface of simple and composite objects. Structure and Components
Structure and Components of the Composite design pattern 1
Structure and Components of the Composite design pattern 2
CollaborationsThe clients handle a component through its general interface. A leaf directly executes the operations required, whereas a composite transfers the requests to its children by performing the additional actions prior or after their transfer.
Collaborations of the Composite design patternStrengths and Weaknesses
Use in CBR*ToolsThis pattern is used to represent in a structured way the indices, the similarities, the case bases and the indices. ![]() ![]() Last modified: Fri Sep 28 13:51:40 MEST 2001 |