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.

Chapter 7Design Phase: Collaboration DiagramsTopics of Chapter 7Notion of collaboration diagrams=<strong>UML</strong> notation for collaboration diagram=The nature of the design phase=Patterns for assigning responsibilities to objects==Use Patterns to create collaboration diagramsA contract for system operations describes what the system operation does. but it does not show a solutionof how software objects are going work collectively to fulfill the contract of the operation. The later isspecified by an interaction diagrams in <strong>UML</strong>. Therefore, a major task of the design phase is to create theinteraction diagrams for the system operations.The <strong>UML</strong> defines two kinds of interaction diagrams, either of which can be used to express similar oridentical messages interactions 1 :1. collaboration diagrams2. object sequence diagrams7.1 <strong>Object</strong> Sequence DiagramsSequence diagrams illustrate interactions in a kind of fence format as shown in Figure 7.1Notice here the differences between a system sequence diagram and an object diagram include:1 Given an underlying class model, some CASE tools can generate one from another.89

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

Saved successfully!

Ooh no, something went wrong!