40 likes | 113 Views
Modeling in Colors. 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. Objective: To learn and apply four colors (four archetypes) for building better object models The four colors:
E N D
Modeling in Colors 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 • 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
<<thing>> PartyPlaceThing <<role>> Role <<moment-interval>> MomentInterval <<description>> Description four archetypes: overview A catalog- entry-like description A party (person or organization), a place or a thing A moment in time or an interval of time that you need to track or do something about A way of participating in something
<<thing>> PartyPlaceThing <<role>> Role <<moment-interval>> MomentInterval serialNumber customValue assignedNumber status number dateTime calcTotal compareWithAnother enforceMultiRoleRules getCustomElseStandard assessPerformance enforceRoleRules <<mi-detail>> MIDetail quantity <<description>> Description type description itemNumber defaultValue A domain-neutral building block 1 0..* 1 0..* 0..* 1 1 What color to choose? • Is it a moment or interval?Yes -> it’s pink. • Is it a role played?Yes -> it’s yellow. • Is it a catalog-entry-like description? Yes -> it’s blue. • Otherwise, it’s a party, place, or thing-> it’s green. 1..*
<<thing>> PKW <<thing>> Person <<role>> Halter <<moment-interval>> Zulassung FZ-Ident Sonderausstattung Name Adresse Ausweisnummer Status Kennzeichen Zul.-Datum liefereStrafpunkte kassiereStrafpunkte liefereBesitzer liefereErstzulassung liefereHalterschaften entzieheFahrerlaubnis berechneZugel.-Zeit istHistor.Fahrzeug <<mi-detail>> Saison-Zul. Jahr Zeitraum <<description>> MB-PKW-Modell Typ Baureihe Achszahl An automotive related example 1 0..* 1 1 1 1 1 * 1 1..*