CIS 644 Tues Nov 30 1999 patterns W












![Java data structures: [Bailey 1999] common "behavior" patterns: public interface Enumeration { boolean has. Java data structures: [Bailey 1999] common "behavior" patterns: public interface Enumeration { boolean has.](https://slidetodoc.com/presentation_image_h2/a45b23b44b1432864c7ca8bb7170981b/image-13.jpg)








- Slides: 21
CIS 644 Tues. Nov. 30, 1999 … patterns W 15 A
schedule: 30: patterns 7: design proj 2: review for exam 9: design proj email exam 2
patterns: Coad … mostly PD patterns Gamma… mostly implementation patterns
Coad#1: collection - worker actually: worker - users - collection as: clerk - customers - videos
Coad#3: Coad#5: Participant- Transaction Specific. Item - Transaction as: Customer - Rental Video - Rental
and Coad#6: Transaction - Trans. Line. Item as: Rental <>- Rental. Line. Item
Coad#7: Transaction - Subsequent. Trans as: Grain. Reservation - Truck. Delevery
Coad#14: Container - Contents as: Flight <>- Reservation
Coad#18: Compound. Part - Part same as: Composite - Component where: Component = Primitive. Component | Composite
Coad#20: Plan - Step (CIS project) as Budget <>- Budget. Period
Coad#26: Proxy - Specific. Item as : Cached. Item - Item as: Local. Item - Server. Item as: Edit. Page - Source. Page
Coad#27: Publisher - Subscriber same as: Obervable - Observer as: PD_Item - Item_View
Java data structures: [Bailey 1999] common "behavior" patterns: public interface Enumeration { boolean has. More. Elements(); Object next. Element(); } public interface Iterator extends Enumeration { … void reset(); Object value(); }
Java examples for three other "behavior" patterns: Terrazas. . visitor pattern Liu. . . . command pattern Zhang. . . state pattern
Coad chap 4: adaptor patterns: as: multiple adaptors multiple thread access
diagrams for other Gamma patterns: http: //ksi. cpsc. ucalgary. ca/~kremer/patterns/
Creational Patterns Abstract Factory Builder Factory Method Prototype x Singleton
Structural Patterns x Adapter Bridge x Composite Decorator Facade Flyweight x Proxy
Behavioural Patterns Chain of Responsibility x Command Interpreter x Iterator Mediator Memento x Observer x State Strategy Template Method x Visitor
reusable items: patterns: packages: interface, classes components: frameworks: software tools:
End