July 2004
Intermediate to advanced
752 pages
35h 59m
English
A pattern is a parameterized collaboration, together with guidelines about when to use it. A parameter can be replaced by different values to produce different collaborations. The parameters usually designate slots for classes. When a pattern is instantiated, its parameters are bound to actual classes within a class diagram or to roles within a larger collaboration.
The use of a pattern is shown as a dashed ellipse connected to each of its classes by a dashed line that is labeled with the name of the role. For example, Figure 5-4 shows the use of the Observer pattern from [Gamma-95]. In this use of the pattern, CallQueue replaces the Subject role and SlidingBarIcon replaces the Observer role.
Patterns may appear ...
Read now
Unlock full access