8 - Se Week-3
8 - Se Week-3
8 - Se Week-3
• Visualizing
• Specifying
• Constructing
UML is a language that provides vocabulary and the rules for combing words in
that vocabulary for the purpose of communication.
Vocabulary and rules of a language tell us how to create and real well-formed
models, but they don’t tell you what model you should create and when should
create them.
Model
Why do we model
We build models so that we can better understand the system we are developing.
1. Things
2. Relationships
3. Diagrams
1. Things in the UML: There are four kinds of things in the UML:
i. Structural things
a. Classes
b. Interfaces
c. Collaborations
d. Use cases
e. Active classes
f. Components
g. Nodes
ISpelling
a. Interaction
b. state machine
1) Class diagram
A class diagram shows a set of classes, interfaces, and collaborations and
their relationships. Class diagrams address the static design view of a
system. Class diagrams that include active classes address the static
process view of a system.
2) Object diagram
Object diagrams represent static snapshots of instances of the things found
in class diagrams. These diagrams address the static design view or static
process view of a system. An object diagram shows a set of objects and
their relationships
3) Use case diagram
A use case diagram shows a set of use cases and actors and their
relationships. Use case diagrams address the static use case view of a
system. These diagrams are especially important in organizing and
modeling the behaviors of a system.
4) Interaction Diagrams
An interaction diagram shows an interaction, consisting of a set of objects
and their relationships. Including the messages that may be dispatched
among them. Interaction diagrams address the dynamic view of a system.
Both sequence diagrams and collaboration diagrams are kinds of
interaction diagrams. Sequence diagrams and collaboration diagrams are
isomorphic, meaning that you can take one and transform it into the other
I. A Sequence diagram is an interaction diagram that emphasizes the
time- ordering of messages.
II. A collaboration diagram is an interaction diagram that emphasizes
the structural organization of the objects that send and receive
messages.
5) Statechart diagram
A statechart diagram shows a state machine, consisting of states,
transitions, events, and activities. Statechart diagrams address the
dynamic view of a system. They are especially important in modeling the
behavior of an interface, class, or collaboration and emphasize the event-
ordered behavior of an object.
6) Activity diagram
An activity diagram is a special kind of a statechart diagram that shows
the flow from activity to activity within a system. Activity diagrams
address the dynamic view of a system. They are especially important in
modeling the function of a system and emphasize the flow of control
among objects.
7) Component diagram
A component diagram shows the organizations and dependencies among
a set of components. Component diagrams address the static
implementation view of a system. They are related to class diagrams in
that a component typically maps to one or more classes, interfaces, or
collaborations.
8) Deployment diagram
A deployment diagram shows the configuration of run-time processing
nodes and the components that live on them. Deployment diagrams
address the static deployment view of an architecture