CIS 644 Tues Nov 30 1999 patterns W

  • Slides: 21
Download presentation
CIS 644 Tues. Nov. 30, 1999 … patterns W 15 A

CIS 644 Tues. Nov. 30, 1999 … patterns W 15 A

schedule: 30: patterns 7: design proj 2: review for exam 9: design proj email

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

patterns: Coad … mostly PD patterns Gamma… mostly implementation patterns

Coad#1: collection - worker actually: worker - users - collection as: clerk - customers

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 -

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

and Coad#6: Transaction - Trans. Line. Item as: Rental <>- Rental. Line. Item

Coad#7: Transaction - Subsequent. Trans as: Grain. Reservation - Truck. Delevery

Coad#7: Transaction - Subsequent. Trans as: Grain. Reservation - Truck. Delevery

Coad#14: Container - Contents as: Flight <>- Reservation

Coad#14: Container - Contents as: Flight <>- Reservation

Coad#18: Compound. Part - Part same as: Composite - Component where: Component = Primitive.

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#20: Plan - Step (CIS project) as Budget <>- Budget. Period

Coad#26: Proxy - Specific. Item as : Cached. Item - Item as: Local. Item

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

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.

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. . .

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

Coad chap 4: adaptor patterns: as: multiple adaptors multiple thread access

diagrams for other Gamma patterns: http: //ksi. cpsc. ucalgary. ca/~kremer/patterns/

diagrams for other Gamma patterns: http: //ksi. cpsc. ucalgary. ca/~kremer/patterns/

Creational Patterns Abstract Factory Builder Factory Method Prototype x Singleton

Creational Patterns Abstract Factory Builder Factory Method Prototype x Singleton

Structural Patterns x Adapter Bridge x Composite Decorator Facade Flyweight x Proxy

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

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:

reusable items: patterns: packages: interface, classes components: frameworks: software tools:

End

End