Lecture 5
Uses for UML
1. High-Level Design and Detailed Modelling
o UML models can be used to sketch a high-level object-oriented (OO)
design, supporting the thought process during design.
o Detailed UML Models:
Define software in detail before implementation.
Are language independent.
Can potentially generate code automatically.
2. Round Tripping
o Round tripping involves generating code from UML or generating
UML from code, allowing modifications in either form to be updated
in the other to ensure consistency.
Creating the Design Class Diagram
1. Steps for Creating a Design Class Diagram
o Start with the Domain Class Diagram: Use domain diagrams
and interaction diagrams as a basis.
o Add or Remove Classes: Include newly discovered classes and
remove unused ones.
o Refine Associations: Ensure all necessary associations are
present and remove those that are not used.
o Check Navigability: Determine the navigability of each
association.
o Specify Attributes and Operations: Add type information to
attributes and operations, and ensure all are present.
o Add Descriptive Information: Include information such as Class
Responsibility Collaboration (CRC) details and attribute/operation
descriptions.