UML Diagrams
UML Diagrams
What is UML ?
• UML stands for “Unified Modeling Language”
• It is a industry-standard graphical language
for specifying, visualizing, constructing, and
documenting the artifacts of software
systems
• The UML uses mostly graphical notations to
express the OO analysis and design of
software projects.
• Simplifies the complex process of software
design.
• Behavior diagrams : Behavior diagrams
emphasize what must happen in the system
being modeled. Since behavior diagrams
illustrate the behavior of a system, they are
used extensively to describe the functionality
of software systems.
• Structure diagrams :Structure diagrams
emphasize the things that must be present in
the system being modeled. Since structure
diagrams represent the structure, they are
used extensively in documenting the software
architecture of software systems
Types of UML Diagram
• Use Case Diagram
• Class Diagram
• Sequence Diagram
• Collaboration Diagram
• State Diagram
• Activity Diagram
• Component Diagram
• Deployment Diagram
USE CASE DIAGRAM
• Use case diagrams are consists of actors, use cases
and their relationships. The diagram is used to
model the system of an application.
• A single use case diagram captures a particular
functionality of a system.
The purposes of use case diagrams can be as follows:
• Used to gather requirements of a system.
• Used to get an outside view of a system.
• Show the interaction among the requirements and
actors.
When we are planning to draw an use case
diagram we should have the following items
identified.
• Functionalities to be represented as an usecase
• Actors
• Relationships among the use cases and actors.
The following are the places where use case
diagrams are used:
• Requirement analysis and high level design.
• Model the context of a system.
follow the following guidelines to draw an efficient
use case diagram.
• The name of a use case is very important. So the
name should be chosen in such a way so that it
can identify the functionalities performed.
• Give a suitable name for actors.
• Show relationships and dependencies clearly in
the diagram.
• Do not try to include all types of relationships.
Because the main purpose of the diagram is to
identify requirements.
Use Case Diagram
Describes the functionality provided by a system in
terms of actors, their goals represented as use
cases, and any dependencies among those use
cases.
• Used for describing a set of user scenarios
• Mainly used for capturing user requirements
• Work like a contract between end user and
software developers
• Association: communication between an actor and a use case;
Represented by a solid line.
• Generalization: relationship between one general use case
and a special use case. Represented by a line with a triangular
arrow head toward the parent use case.
• Include: a dotted line labeled <<include>> beginning at base
use case and ending with an arrows pointing to the include use
case.
• Extend: a dotted line labeled <<extend>> with an arrow
toward the base case. The extending use case may add
behavior to the base use case.