You are on page 1of 14

CT015-3-2 Design Methods

Object Oriented Analysis and


Modelling Part 1
Learning Objectives

• At the end of this lecture, you should be


able to :
- Understand UML Model and Diagram
- Creating UML diagrams in models

CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 Slide 2 of 14
UML

• Unified Modeling Language


• A standard language for specifying,
visualizing, constructing, and documenting
the artifacts of software systems.
• Developed to provide standardized
graphical language and notations for
describing object oriented model

CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 Slide 3 of 14
UML Model
• Use models to:
– Specify structure, behavior, or both
– Visualize an existing system to improve understanding
– Automate system development (Model-Driven Development)
• UML model files (.emx) contain:
– Model elements
– Diagrams
– Profile information
– User preferences
– Workspace information

CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 Slide 4 of 14
Developing multiple model

• You can model a system using


multiple models
– How many models to use
depends on:
• The modelled system and model complexity
• Team development and configuration
management considerations
• Organizational standards and practices
• Your own preference

CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 ‹#› Slide 5 of 14
UML Diagrams
• UML diagrams graphically depict a view of a part of your
model or code
• Different diagrams represent different views of the system
you are developing
• A model element appears in zero or more diagrams

CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 Slide 6 of 14
UML diagram versus UML model

• A model can contain one or more diagrams.


• A diagram presents a view of parts of a model.
• A model element that appears only once in your
model can appear in one or more diagrams.
– Different diagrams present different contexts.

CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 Slide 7 of 14
UML Diagrams Types

CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 Slide 8 of 14
How many diagrams do you
need?
• Depends on the artifacts being modeled and the needs of
users
– Use diagrams to visualize the system from different
perspectives
– No complex system can be understood in its entirety from
only one perspective
• Model elements can appear in zero or more diagrams
– A class can:
• Appear in zero or more class diagrams
• Be represented in a state machine diagram
• Have instances that appear on a sequence diagram
– Each diagram provides a different perspective
CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 Slide 9 of 14
Creating UML diagrams

• Use diagrams to represent different views of the system


or application:
– UML diagrams
– Non-UML (freeform) diagrams
• Create diagrams in:
– Models
– Model elements
• Packages
• Components
• And so on

CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 ‹#› Slide 10 of 14
Freeform diagrams and geometric
shapes
• Freeform diagrams can include UML and non-UML
elements
– Default diagram included when creating UML packages
– Display geometric shapes and other non-UML notation
– Use for sketches and other informal modeling

CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 ‹#› Slide 11 of 14
Review : Diagram editor

CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 Slide 12 of 14
Review

• What is UML?
• List all UML diagram.
• What is free form diagrams?

CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 Slide 13 of 14
Q&A

CT015-3-2 Design Methods Object Oriented Analysis and Modelling – Part 1 Slide 14 of 14

You might also like