13.07.2015 Views

Archetypes, Color, and the Domain-Neutral ... - Petercoad.com

Archetypes, Color, and the Domain-Neutral ... - Petercoad.com

Archetypes, Color, and the Domain-Neutral ... - Petercoad.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Archetypes</strong>, <strong>Color</strong>, <strong>and</strong> <strong>the</strong> <strong>Domain</strong>-<strong>Neutral</strong> Component ▼ 11PartyPlaceThingassessAcrossRolesgetCustomElseDefaultValuelistRoleslistPPTsassessAcrossPPTsDescriptionassessAcrossPPTsfindAvailablecalcQtyAvailablecalcTotalForlistPPTslistDescsassessAcrossDescsDrop a class along<strong>the</strong> links when youdon't need <strong>the</strong> level ofspecificity provided bythat class; adjust methodnames accordingly.RoleassessAcrossMIslistMIslistRolesassessAcrossRolesNot shown:- Getters/setters- Adders/removersMomentIntervalmakeMomentIntervaladdDetailcalcTotalrecalcTotal<strong>com</strong>pletecancelmi_generateNextmi_assessWRTPriormi_assessWRTNextmi_<strong>com</strong>parePlanVsActuallistMIsassessAcrossMIsMIDetailcalcTotalThe "mi" method-name prefixindicates a method that interactswith pink moment-intervals.FIGURE 1-7. ▲ <strong>Archetypes</strong> <strong>and</strong> <strong>the</strong>ir methods.recalculation, regardless of any internally buffered value). It accepts messagesasking it to <strong>com</strong>plete or cancel <strong>the</strong> moment-interval. It also providesbehavior across o<strong>the</strong>r pink moment-intervals (designated by <strong>the</strong> prefix“mi_”): generate next, assess with respect to prior moment-intervals,assess with respect to next moment-intervals, <strong>and</strong> <strong>com</strong>pare plan vs.actual. It also has two class-level methods: list all <strong>and</strong> assess across all. Andeach pink moment-interval detail calculates its total.Note that we tend to list method names this way:1. Make—<strong>the</strong> business-process method for a pink moment-interval2. Calculate, assess, <strong>and</strong> <strong>the</strong> like3. List4. Moment-interval (“mi”) methods (when a pink interacts witho<strong>the</strong>r pinks)5. Class (static) methods, ones that apply across all of <strong>the</strong> objects ina class (such methods are underlined)An archetype’s characteristics include plug-in points for adapting <strong>the</strong>behavior of an archetype (Figure 1-8). A blue description needs a plug-inpoint when it has algorithmically <strong>com</strong>plex behavior <strong>and</strong> we want <strong>the</strong> option

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!