Analysis: Class Diagrams



index
Disabled back button Next Section
printable version




Section 0: Module Objectives or Competencies
Course Objective or Competency Module Objectives or Competency
The student will be able to assess and apply Object-Oriented analysis and design methods like use cases to express user requirements, UML modeling, and other OO approaches. Understand the rules and style guidelines for creating class diagrams and object diagrams.
Understand the processes used to create class diagrams and object diagrams.
Be able to create class diagrams and object diagrams.
Understand and explain the relationship between the structural and functional models.


Section 1: Overview

Previously the focus has been on modeling system behavior using business process and functional models; now the attention shifts to the objects underlying the behavior and how they are organized and presented.

A structural, or conceptual, model describes the structure of the objects that support the business processes in an organization.

Structural models represent the objects that are used and created by a business system.

Use cases form the foundation on which the business information system is created.

From an architecture-centric perspective, structural modeling supports the creation of an internal structural or static view of a business information system in that it shows how the system is structured to support the underlying business processes.


Example Class Diagram

Example Class Diagram.

Intro to Class Diagrams

This video provides an introduction to Class Diagrams (start at 2:46 mark on YouTube):


Note

The class diagrams developed during the analysis phase are conceptual models that focus on the logical organization of the objects without indicating how they are stored, created, or manipulated so that analysts can focus on the real business requirements of the system, without being distracted by technical details.

If you begin experiencing deja vu, visit Introduction to Object-Oriented Paradigm.



Section 2: Classes
Classes.


Section 3: Syntax

A class diagram is a static model that shows classes and their relationships to one another.

Class Diagram Syntax
Class diagram syntax.


Section 4: Elements
Classes
Attributes

Attributes are properties of the class about which we want to capture information.

Operations

Operations are actions or functions that a class can perform.

Operation Types



Section 5: Relationships

Relationships are the associations between classes and describe how classes relate to one another.

Relationship Types

There are multiple basic types of relationships - association, aggregation, composition, and generalization.

Association

Aggregation

Composition

Generalization



Section 6: Association Classes

There are times when a relationship itself has associated properties, especially when its classes share a many-to-many relationship.

In these cases, a class called an association class is formed, which has its own attributes and operations.



Section 7: Example
Sample class diagram.


Section 8: Another Example

Recall this example class diagram from this old assignment:

UML Diagram

Class Diagram



Section 9: Verifying and Validating the Model

The verification and validation of the structural model are accomplished during a formal review meeting using a walkthrough approach in which an analyst presents the model to a team of developers and users.



Section 10: Resources