Professional Documents
Culture Documents
Visual Modeling & Unified Modeling Language (UML) CopyFINAL
Visual Modeling & Unified Modeling Language (UML) CopyFINAL
Analysis And
design Through
UML
This session
Introduction to modeling
Class diagrams
Sequence Diagrams
Introduction to Modeling
What is a model?
A model is a simplification of realty.
Why do we model?
We build models so that we can better
understand the system we are
developing
How can you realize the
benefits of modeling?
What is the UML…
Constructing, and
Documenting
in brief
Use case
diagrams
Sequence Class
Diagrams diagrams
Collaboration Object
diagrams UML Diagrams
MODELS
State
Component
Machine
Diagrams
Diagrams
Activity Deployment
Diagrams Diagrams
Classification of UML
Structural model view
1) class diagrams
2) object diagrams
Structure &
Relationships Multiplicity &
behavior Navigation
DEPENDENCY GENARALIZATION
REALIZATION ASSOCIATION
Relationship between
One Class uses the General kind of class
nformation of otherOne class specifies And a more specific
Objects of one thing are Kind of class
A contract that other Connected to objects
Class will carru out Of another
Structure of a Class
A class is a collection of
objects with common
structure, common ClassName
behavior, common
relationships and Attributes
common semantics
Operations
Classes should be named
using the vocabulary of Responsibili
the domain ties
Naming standards should
be created
e.g., all classes are
Operations and
Attributes
Operations :The behavior of a class is
represented by its operations
Responsibilities: It is a contract or an
obligation of a class.
Advanced Relationships
Ag gregatio n : It is a special kind of association and is used when one
class (whole) consists of 1 or more smaller classes (parts). It shows has-a
relationship between the ”whole” and its “parts”.
Com pos iti on : This specifies that the lifetime of the part
classifier is dependent on the lifetime of the whole
classifier
NOW
Building a system
user model view
Relationships
Behavior or Between Actors
Actor USE CASE & usecases
An actor is a
person,
organization,
or external
system that
plays a role in
one or more
interactions
with your
Introduction to USE CASE
diagrams
What is a use case diagram??
A use case diagram is a type of behavioral diagram.
whose purpose is to present a graphical overview of the
functionality provided by a system in terms of actors, their
goals (represented as use cases), and any dependencies
between those use cases
Usecase1
Usecase2
actor
WARNING
Remember that use case designs
aren't the same thing as
requirements. These are high-
level interaction designs. if we
mix them up with real
requirements stuff the system
really has to do ,then we can get
bogged down in the design
decisions we make early on.
Documenting Use Cases
NOW
Behavioral Model
View
1. Sequence Diagrams
2. Collaboration Diagrams
3. State Machine Diagrams
4. Activity Diagrams
Sequence Diagrams
The sequence diagram is used primarily to
show the interactions between objects in
the sequential order that those
interactions occur.
useful to communicate how the business
currently works by showing how various
business objects interact.
business-level sequence diagram can be
used as a requirements document to
communicate requirements for a future
system implementation.
Notation Basics
Lifelines: Lifelines are drawn as a box with a dashed line
descending from the center of the bottom edge .The lifeline's
name is placed inside the box.
Messages: The first message of a sequence diagram
always starts at the top and is typically located on the left side of
the diagram for readability. Subsequent messages are then added
to the diagram slightly lower then the previous message.
Guards: Guards are used throughout UML diagrams to
control flow. When modeling object interactions, there will be
times when a condition must be met for a message to be sent to
the object.
Messages
Alternative
A small Work out
NOW