13.07.2015 Views

Object-Oriented Software Development with UML - UNU-IIST ...

Object-Oriented Software Development with UML - UNU-IIST ...

Object-Oriented Software Development with UML - UNU-IIST ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating Collaboration Diagrams 121t:=total():Sale1*:[for each] sli:=next()2: st:=subtotal()sli:SalesLineItem:SalesLineItem2.1: p:=price():ProductSpecificationdatetimetotal()SaleSalesLineItemquantitysubtotal()ProductSpecificationdescriptionpriceupcprice()Figure 7.39: Recording methods of classes when create a collaboration diagramnavigability¾dependencies¾Steps in making a design class diagramUse the following strategy to create a design class diagram:1. Identify all the classes participating in the object interactions. Do this by analysing the collaborationdiagrams.2. Draw them in a class diagram.3. Copy the attributes from the associated concepts in the conceptual model.4. Add method names by analysing the collaboration diagrams.5. Add type information to the attributes and methods.6. Add the associations necessary to support the required attribute visibility.7. Add navigability arrows necessary to the associations to indicate the direction of attribute visibility.8. Add dependency relationship lines to indicate non-attribute visibility.These steps, except for stepsí &î , are mostly straightforward.Report No. 259, July 2002<strong>UNU</strong>/<strong>IIST</strong>, P.O. Box 3058, Macau

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

Saved successfully!

Ooh no, something went wrong!