1 / 4

Modeling in Colors

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:

nituna
Download Presentation

Modeling in Colors

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

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

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

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

More Related