Die Präsentation wird geladen. Bitte warten

Die Präsentation wird geladen. Bitte warten

DHBW Stuttgart, Technische Informatik, SW-Engineering, OOD April 2009 Seite 1 Christoph Riewerts Modeling in Colors – Objective: To learn and apply four.

Ähnliche Präsentationen


Präsentation zum Thema: "DHBW Stuttgart, Technische Informatik, SW-Engineering, OOD April 2009 Seite 1 Christoph Riewerts Modeling in Colors – Objective: To learn and apply four."—  Präsentation transkript:

1 DHBW Stuttgart, Technische Informatik, SW-Engineering, OOD April 2009 Seite 1 Christoph Riewerts Modeling in Colors – Objective: To learn and apply four colors (four archetypes) for building better object models – The four colors: A pink moment-interval A yellow role A green party-place-thing A blue description Web: The core chapter on this subject is posted at www.coad.com/peter#color Book: Java Modeling in Color with UML by Coad, Lefebvre, and De Luca

2 DHBW Stuttgart, Technische Informatik, SW-Engineering, OOD April 2009 Seite 2 Christoph Riewerts > PartyPlaceThing > PartyPlaceThing > Description > Description > Role > Role > MomentInterval > MomentInterval A party (person or organization), a place or a thing A party (person or organization), a place or a thing A way of participating in something A way of participating in something A catalog- entry-like description A catalog- entry-like description A moment in time or an interval of time that you need to track or do something about A moment in time or an interval of time that you need to track or do something about four archetypes: overview

3 DHBW Stuttgart, Technische Informatik, SW-Engineering, OOD April 2009 Seite 3 Christoph Riewerts A domain-neutral building block > PartyPlaceThing > PartyPlaceThing serialNumber customValue serialNumber customValue enforceMultiRoleRules getCustomElseStandard enforceMultiRoleRules getCustomElseStandard > Description > Description type description itemNumber defaultValue type description itemNumber defaultValue > Role > Role assignedNumber status assignedNumber status assessPerformance enforceRoleRules assessPerformance enforceRoleRules > MomentInterval > MomentInterval number dateTime number dateTime calcTotal compareWithAnother calcTotal compareWithAnother 0..*11 > MIDetail > MIDetail quantity 1 0..*1 1..* What color to choose? Is it a moment or interval? Yes -> its pink. Is it a role played? Yes -> its yellow. Is it a catalog-entry-like description? Yes -> its blue. Otherwise, its a party, place, or thing -> its green.

4 DHBW Stuttgart, Technische Informatik, SW-Engineering, OOD April 2009 Seite 4 Christoph Riewerts An automotive related example > PKW > PKW FZ-Ident Sonderausstattung FZ-Ident Sonderausstattung liefereBesitzer liefereErstzulassung liefereBesitzer liefereErstzulassung > MB-PKW-Modell > MB-PKW-Modell Typ Baureihe Achszahl Typ Baureihe Achszahl > Halter > Halter Ausweisnummer Status Ausweisnummer Status liefereStrafpunkte kassiereStrafpunkte liefereStrafpunkte kassiereStrafpunkte > Zulassung > Zulassung Kennzeichen Zul.-Datum Kennzeichen Zul.-Datum berechneZugel.-Zeit istHistor.Fahrzeug berechneZugel.-Zeit istHistor.Fahrzeug 0..*111 > Saison-Zul. > Saison-Zul. Jahr Zeitraum Jahr Zeitraum 1 1 * > Person > Person Name Adresse Name Adresse liefereHalterschaften entzieheFahrerlaubnis liefereHalterschaften entzieheFahrerlaubnis 1 1 1..*


Herunterladen ppt "DHBW Stuttgart, Technische Informatik, SW-Engineering, OOD April 2009 Seite 1 Christoph Riewerts Modeling in Colors – Objective: To learn and apply four."

Ähnliche Präsentationen


Google-Anzeigen