CSC223 2004F, Class 39: Structural Design Patterns Admin: * Have a good weekend. Exams to be returned Monday. * I put short descriptions of the patterns online. * Volunteers for eboard? Chase Overview: * Bridges, Revisited * Basic wrapper patterns * Group wrapper patterns * Other wrapper patterns * Other structural patterns Simple problem: * Create each list "all at once" * Afterwards, all you can do is iterate * This is similar to how grading works in classes at Grinnell after week 3. * Need to decouple the creation of the list from the use of the list. [Sam draws UML on the board that can't easily be replicated here.] interface List for iteration. interface ListCreator is a builder for List. * "Wrap" one class around another class for "convenience" [more UML] Builder, revisited: Wrapping (1): Basic * Adapter * Decorator Wrapping (2): Groups * Composite * Facade Wrapping (3): Other * Bridge * Proxy Structural: Flyweight chase martyn grinnell college '07 "...If the physician and the cook had to enter into a competition in which children were the judges, or men who had no more sense than children, as to which of them best understands the goodness or badness of food, the physician would be starved to death." (Plato, _Gorgias_)