Sei sulla pagina 1di 22

UNISOFT

www.unisoftinfotech.com

UNISOFT
SESSION PLAN :

WHAT IS UML
MODELING
DIAGRAMS
TYPES OF UML DIAGRAMS
2

www.unisoftinfotech.com

UNISOFT
MODELING

UML DIAGRAM WHAT IS UML?


The Unified Modeling Language (UML) is a standard language for

Specifying

Visualizing

Business Modeling

Constructing

Documenting

Communications
3

www.unisoftinfotech.com

UNISOFT
UML(UNIFIED MODELING LANGUAGE :

UML Unified Modeling Language is a standardized


general-purpose modeling language in the field of
software engineering.
The standard is managed, and was created by, the Object
Management Group.
UML includes a set of graphic notation techniques to
create visual models of software-intensive systems.
UML is used to specify, visualize, modify, construct and
document the artifacts of an object-oriented softwareintensive system under development.

www.unisoftinfotech.com

UNISOFT
Diagrams in UML
A Diagram is the graphical presentation of a set of elements,
most often rendered as a connected graph of things and
relationships. UML includes 9 such diagrams.
1. Class Diagram.
2. Object Diagram.
3. Use Case Diagram.
4. Sequence Diagram.

5. Collaboration Diagram.
6. State Chart Diagram.
5

7. Activity Diagram.

www.unisoftinfotech.com

UNISOFT

USE CASE DIAGRAM

Used for describing a set of user


scenarios
Mainly used for capturing user
requirements
Work like a contract between end user
and software developers

www.unisoftinfotech.com

UNISOFT
Use Case Diagram (core components)

Actors: A role that a user plays with respect to the system,including


human users and other systems. e.g.,inanimate physical objects (e.g. robot);
an external system that needs some information from the current system.

Use case: A set of scenarios that describing an interaction between a user


and a system, including alternatives.

System boundary: rectangle diagram representing the boundary between


the actors and the system.

www.unisoftinfotech.com

UNISOFT
USE CASE DIAGRAM(CORE RELATIONSHIP)

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 (used for defining special alternatives)
Represented by a line with a triangular arrow head toward the
parent use case.

www.unisoftinfotech.com

UNISOFT
USE CASE DIAGRAM(CORE RELATIONSHIP)

Include: a dotted line labeled <<include>> beginning at base use case


and ending with an arrows pointing to the include use case. The include
relationship occurs when a chunk of behavior is similar across more than
one use case. Use include in stead of copying the description of that
behavior.
<<include>>

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. The base class declares extension points.
<<extend>>

www.unisoftinfotech.com

UNISOFT

DIFFERENT VIEWS

Users

Designers

Analyzers

10

www.unisoftinfotech.com

UNISOFT

USE CASE DIAGRAM

Acto
r

11

System
overviewbounda
the usage
requirementsry
presentations project
stakeholders
"the meat" of the actual
requirements
Actor:
Use case:
System
boundary:
An actor is a person,
A use case describes a
Use
indicates
the scope
of your
organization,
or external
sequence
of actions
that
case
system.
Anything
within
system that plays a role in
provide
something of
the
box
represents
one or more interactions
11
measurable
value
to
an
that is in scope
with your system
Online C2C shoppingfunctionality
actorwww.unisoftinfotech.com
and is drawn as a
and anything
outside the

UNISOFT

CLASS DIAGRAM
Nam
e

Attribut
es
Operatio
ns
12

Class diagrams show the


classes of the system, their
interrelationships (including
inheritance, aggregation, and
association), and the
operations and attributes of
the classes.

Relatio Association
s
ns

Aggregation

12
Generalizati
www.unisoftinfotech.com
on

UNISOFT

RELATIONSHIPS BETWEEN CLASS

Association -- a relationship between instances of the two classes.


There is an association between two classes if an instance of one class
must know about the other in order to perform its work. In a diagram,
an association is a link connecting two classes.

Aggregation -- an association in which one class belongs to a


collection. An aggregation has a diamond end pointing to the part
containing the whole.

Generalization -- an inheritance link indicating one class is a


superclass of the other. A generalization has a triangle pointing to the
superclass.
13

13

www.unisoftinfotech.com

UNISOFT

SEQUENCE DIAGRAM
Object:
Class

A sequence diagram is
An interaction diagram that
details how operations are
carried out.
What messages are sent and
when.
Sequence diagrams are
organized according to time

Message
Operations
Lifeline

14

www.unisoftinfotech.com

UNISOFT

ACTIVITIES DIAGRAM

Start
Fork

Activity diagrams describe


the workflow behaviour of a
system

Bran
ch

Merge

Joint

15

www.unisoftinfotech.com

UNISOFT

STATE MACHINE DIAGRAM

A State Machine diagram


shows the possible states of
the object and the transitions
that cause a change in state.

What is
different
between
activities and
Statemachine
16
diagram

www.unisoftinfotech.com

UNISOFT

17

www.unisoftinfotech.com

UNISOFT

18

www.unisoftinfotech.com

UNISOFT

19

www.unisoftinfotech.com

UNISOFT

20

www.unisoftinfotech.com

UNISOFT

21

www.unisoftinfotech.com

UNISOFT

22

www.unisoftinfotech.com

Potrebbero piacerti anche