problem

Post on 31-Dec-2015

34 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Problem. Forces. Context. Solution. Consequences. Benefits. Related patterns. Figure 1. A pattern is a problem-solution pair (adapted from Mowbray [7]). Decorator pattern. Strategy pattern. Overdraft Strategy. «participates». «participates». «participates». AccountWrapper. Account. - PowerPoint PPT Presentation

TRANSCRIPT

Problem

Solution

Benefits Consequences

Context

Forces

Related patterns

Figure 1. A pattern is a problem-solution pair (adapted from Mowbray [7]).

«participates»

«participates»

Account AccountWrapper

OverdraftStrategy

Deduct FeeOverdraft Not Allowed

Strategy patternDecorator pattern

«participates»

«participates»

Figure 2. Two patterns in a banking system (adapted from [9]).

top related