1 Chapter 13: Class Diagram Chapter 19 in Applying UML and Patterns Book.
2 Overview What is Class Diagram ? The different between Domain Model and Design Model. How to build UML Class Diagram (Class, Attribute, Relationship).
3 What is Class Diagram ? A class diagram shows the existence of classes and their relationships in the logical view of a system. UML modeling elements in class diagrams: Classes and their structure and behavior. Association, aggregation, dependency, and inheritance relationships. Multiplicity and navigation indicators. Role names.
4 Domain Model vs. Design Model Classes
5 Example DCD
6 Creating NextGen POS DCD Identify all the classes participating in the software solution. Do this by analyzing the interaction diagrams. Draw them in a class diagram. Duplicate the attributes from the associated concepts in the Domain Model.
7 Creating NextGen POS DCD Add method names by analyzing the interaction diagrams. The methods for each class can be identified by analyzing the interaction diagrams.
8 Creating NextGen POS DCD Add type information to the attributes and methods.
9 Method Names - Multiobjects The find message to the multiobject should be interpreted as a message to the container/collection object. The find method is not part of the ProductSpecification class.
10 Adding Navigability & Dependency Relationships