s Introduction
s Introduction
s Introduction
Why we model:
Modeling is a central part of all the activities that leads to the
deployment of good software. Models are built to
Communicate the desired structure and behavior of our system.
Visualize and control the system's architecture.
Better understand the system we are building, often exposing
opportunities for simplification and reuse.
Manage risk.
UNIT-1 Introduction to UML
Improtance of Modeling:
What is Model:
A model is a simplification of reality.
It provides the blueprints of the system.
Models may include detailed plans, as well as more general plans.
A good model includes those elements that have broad effect and
omits those minor elements that are not relevant to the given level of
abstraction.
A model may be structural, emphasizing the organization of the
system, or it may be behavioral, emphasizing the dynamics of the
system
UNIT-1 Introduction to UML
Principles of Modeling :
Active classes, components, and nodes are all class-like, meaning they
also describe a set of objects that share the same attributes,
operations, relationships, and semantics.
These three are different enough and are necessary for modeling
certain aspects of an object-oriented system, and so they warrant
special treatment
UNIT-1 Introduction to UML
2. Association
Association is a set of links that connects the elements of a UML model.
It also describes how many objects are taking part in that relationship.
UNIT-1 Introduction to UML
3. Generalization
Generalization can be defined as a relationship which connects a
specialized element with a generalized element. It describes the
inheritance relationship in the world of objects.
4. Realization
Realization can be defined as a relationship in which two elements are
connected. One element describes some responsibility, which is not
implemented and the other one implements them. This relationship exists
in case of interfaces.
UNIT-1 Introduction to UML
Diagrams in the UML
A diagram is the graphical presentation of a set of elements,
rendered as a connected graph of vertices (things) and arcs
(relationships).
Diagrams are drawn to visualize a system from different
perspectives, so a diagram is a projection into a system.
The UML includes nine diagrams:
1. Class diagram 6. Statechart diagram
2. Object diagram 7. Activity diagram
3. Use case diagram 8. Component diagram
4. Sequence diagram 9. Deployment diagram
5. Collaboration diagram
UNIT-1 Introduction to UML
Class diagram
It shows a set of classes, interfaces, and collaborations and their
relationships.
Most common diagram.
It address the static design view of a system.
It include active classes address the static process view of a system.
UNIT-1 Introduction to UML
Object diagram
It shows a set of objects and their relationships.
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 as do class diagrams, but from the perspective of real or
prototypical cases
UNIT-1 Introduction to UML
Use case diagram
It shows a set of use cases and actors (a special kind of class) and
their relationships.
Use case diagrams address the static use case view of a system.
These diagrams are important in organizing and modeling the
behaviors of a system.
UNIT-1 Introduction to UML
Sequence diagrams and Collaboration diagrams
Kinds of interaction diagrams.
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.
A sequence diagram is an interaction diagram that emphasizes the
time-ordering of messages.
A collaboration diagram emphasizes the structural organization of the
objects that send and receive messages.
Sequence diagrams and collaboration diagrams are isomorphic,
meaning that you can take one and transform it into the other.
UNIT-1 Introduction to UML
Statechart diagram
It shows a state machine, consisting of states, transitions, events, and
activities.
Statechart diagrams address the dynamic view of a system.
They are important in modeling the behavior of an interface, class, or
collaboration.
It emphasize the event-ordered behavior of an object, which is
especially useful in modeling reactive systems.
UNIT-1 Introduction to UML
Activity diagram
It 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 important in modeling the function of a system and
emphasize the flow of control among objects.
UNIT-1 Introduction to UML
Component diagram
It 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
UNIT-1 Introduction to UML
Deployment diagram
It 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.
They are related to component diagrams in that a node encloses one or
more components.
UNIT-1 Introduction to UML
Structural Modeling
Class diagram
Object diagram
Behavioral Modeling
Interaction diagrams
Use case diagram
Activity diagram
State chart diagram
Architectural Modeling
Component diagram
Deployment diagram
UNIT-1 Introduction to UML
Rules of the UML
Specify what a well-formed model should look like.
A well-formed model is one that is semantically self-consistent and
in harmony with all its related models.
The UML has semantic rules for
1. Names: What you can call things, relationships and diagrams
2. Scope: The context that gives specific meaning to a name
3. Visibility: How those names can be seen and used by others
4. Integrity: How things properly and consistently relate to one another
5. Execution: What it means to run or simulate a dynamic model
UNIT-1 Introduction to UML
Adornments
UNIT-1 Introduction to UML
Common divisions
a. Division of class and object.
Every building block in the UML has this same kind of
class/object dichotomy
UNIT-1 Introduction to UML
Architecture
Holds the use cases that describe the behavior of the system as seen
by its end users, analysts, and testers.
It specifies the forces that shape the system's architecture.
With the UML,
The static aspects of this view are captured in
Use case diagrams
The dynamic aspects of this view are captured in
Interaction diagrams
Statechart diagrams
Activity diagrams
UNIT-1 Introduction to UML
The design view of a system
Holds the threads and processes that form the system's concurrency
and synchronization mechanisms.
This view primarily addresses the performance, scalability, and
throughput of the system.
With the UML,
The static and dynamic aspects of this view are captured in the
same kinds of diagrams as for the design view, but with a focus on the
active classes that represent these threads and processes.
UNIT-1 Introduction to UML
The implementation view of a system
Holds the components and files that are used to assemble and release
the physical system.
This view addresses the configuration management of the system's
releases, made up of independent components and files that can be
assembled to produce a running system.
With the UML,
the static aspects of this view are captured in
component diagrams
the dynamic aspects of this view are captured in
interaction diagrams, statechart diagrams, and activity diagrams
UNIT-1 Introduction to UML
The deployment view of a system
Holds the nodes that form the system's hardware topology on which
the system executes.
This view addresses the distribution, delivery, and installation of the
parts that make up the physical system.
With the UML,
The static aspects of this view are captured in
deployment diagrams
The dynamic aspects of this view are captured in
interaction diagrams, statechart diagrams, and activity diagrams.
UNIT-1 Architecture
Encompasses(Hol Addresses Static aspects Dynamic aspects
ds)
Use case view use cases organization use case diagrams interaction,
statechart,activity
diagrams
Use case driven (behavior of the system, for verifying and validating the
system's architecture, for testing, and for communicating among the
stakeholders of the project.)
3.Construction
4. Transition
Here the software is turned into the hands of the user community.
Rarely does the software development process end here, for even
during this phase, the system is continuously improved, bugs are
eradicated, and features that didn't make an earlier release are added.
UNIT-1 Introduction to UML
Iteration
• One element that distinguishes this process and that cuts across all
four phases is an iteration.
• An iteration is a distinct set of activities, with a baselined plan and
evaluation criteria that result in a release, either internal or external.
• Means that the SDLC can be characterized as involving a continuous
stream of executable releases of the system's architecture.