|
Annex B: Design PatternsB7.IteratorDescriptionWhen we want to mask in the client the mechanics of course of an aggregate, this pattern allows the encapsulation of the iteration in a class hierarchy, either for polymorphic iterations, or to offer various types of tranersing for the same type of aggregate. Structure and Components
Structure and Components of the Iterator design pattern
Collaborations
Strengths and Weaknesses
Use in CBR*ToolsThe Iterator pattern is used to traverse the recordings ( Record class) in the indexing by behavioural situations. Each type of recordings defines a traverse by defect adapted to its internal representation (properties of the chronicles of which it is made up). Moreover, the templates of potential cases ( PotentialCaseTemplate class) define their own traverse of a recording following their conditions of instantiation. ![]() ![]() Last modified: Fri Sep 28 13:52:10 MEST 2001 |