Presentation is loading. Please wait.

Presentation is loading. Please wait.

Feb 18, 200291.3913 R McFadyen > An approach promoted by Martin Fowler in Analysis Patterns.

Similar presentations


Presentation on theme: "Feb 18, 200291.3913 R McFadyen > An approach promoted by Martin Fowler in Analysis Patterns."— Presentation transcript:

1 Feb 18, 200291.3913 R McFadyen > An approach promoted by Martin Fowler in Analysis Patterns

2 Feb 18, 200291.3913 R McFadyen History - adapted from Analysis Patterns by Martin Fowler Problem: How do we simplify a class model that includes history in associations? Solution: Create a UML stereotype Example: Suppose we are tracking employment history for people companyperson startdate enddate placement There can only be one instance of placement for a given pair of company and person

3 Feb 18, 200291.3913 R McFadyen To correct this, we need to model Date or Time: companyperson startdate enddate placement timeperiod Now, there can be one instance of placement for a given triple of company, person, and time History - adapted from Analysis Patterns by Martin Fowler

4 Feb 18, 200291.3913 R McFadyen This complicates our diagram; there are two class symbols where, perhaps, two will do. This is important in situations where this pattern may be repeatedly used We define/document a stereotype, >: companyperson We define > to represent a solution where an association class is present that carries historical information allowing more than one instance per pair of associated classes. These instances are defined by a start date and end date, and where no two intervals overlap placement > History - adapted from Analysis Patterns by Martin Fowler


Download ppt "Feb 18, 200291.3913 R McFadyen > An approach promoted by Martin Fowler in Analysis Patterns."

Similar presentations


Ads by Google