Sunteți pe pagina 1din 20

I.S.A.

S Seminar
About
UML:-
UML is concerned for Unified
modeling language UML is a
notational language that enables
the stakeholders to view the
architecture of the system from
various perspectives. It is used for
About Static
Modeling:-
Static modeling is one type of
modeling which is used for
understand the physical structure
of a software. In the Unified
Modeling Language (UML), a class
diagram is a type of static
Class
Diagram:-
Class diagrams represent a set of
classes, interfaces and their
relationships. We can represent a
class in a rectangular box with
three compartments
Object
Diagram:-
An object diagram represents
instances of a class diagram. We
represent an object in a
rectangular box with two
Addres
Student
Name =Robert s = South
Street
Phone Number = ex.
+919718549
City = New Delhi
Email=niit@gmail.com State = Delhi
Postal Code = 110016
Student Number =
Country = India
S07000200
Average mark =
70%
Relationship between Class and Object
Diagrams:-
Association:-
An Association represents a family
of links. It represents the static
relationship shared the object of
two classes. An association may be
unidirectional or bi-directional but
by default association is bi-
Give Education for Get
Student education from NIIT
Association
Relationship Has
Student Address
Unidirectional Association
Relationship
Multiplicity:-
The association relationship
indicates that (at least) one of the
two related classes makes
reference to the other. The UML
representation of an association is
a line with an optional arrowhead
indicating the role of the object(s)
Give Education for Get
Student education from NIIT
1 *
Multiplicity
Relationship
Aggregation:-
Aggregation represents an
association between two classes
such that class A is a part of class
B and A can exist independently.
Aggregation is a variant of the
Association relationship.
Student Belongs NIIT
to
Aggregation
Relationship
Composition:
-
Composition represents an
association between two classes
such that class A contains class B
and also control the lifetime of class
B. It means that the existence of
class B depends on class A.
Student Ha Address
Composition s
relationship
Dependency:
-
A dependency exists between two
defined elements if a change to the
definition of one would result in a
change to the other. This is
indicated by a dashed arrow
pointing from the dependent to the
Discount Bill
Dependency
Relationship
Generalization:-

Generalization represents how


super classes are related to sub
classes. Super classes are called
base classes and Sub classes are
known as derived classes.
Student

Career student Non career student


Realization:-
Realization represents In UML
modeling, a realization relationship
is a relationship between two
model elements, in which one
model element realizes the
behavior that the other model
Payment Counter Bill
Realization
Relationship
Type of Classes:-

vAbstract class

vParameterized class

vFactory class

vSelf-linked class
Abstract Class:-

An abstract class is a class that


does not have any direct instances.
However the classes inherited from
an abstract class can have direct
instances. Student
Student_id

Registration_i
d
Parameterized Class:-

A Parameterized class, also called


template class, provided a
mechanism that enables you to use
operations and classes to work with
different data types.
Element Type
List
Add (T)
Factory Class:-
A class that has multiple objects
having the same attribute values is
known as a factory class.
Object Name
Class Name
Self-Linked Class:-
A class that has objects, which
fulfill more than one role, is called
self-linked class.
Object Name
Class Name
Recursive Aggregation:-
Recursive Aggregation is an
association relationship between
two objects of the same class.
Project Manager:
Employee

Developer:
Employee

Qualified Association:-
Qualified Association is an
association relationship that relates
an object of a class to a Particular
object or a set of objects of another
class
Derived Attribute:-
We calculate the value of a derived
attribute from the value of other
attributes of the object.+Date of Employee
{Age=curren <<Derive
t Date – >>
Derived Birth: Date
Date of +/Age: Int
Birth} Attribute
Derived Association:-
We can deduce a derived
association from
1
the other
associations
1 in a class diagram.
Organizati /Works
for
* *
1 Works for *
Departmen Employee
vInterfaces:-
An interface is a collection of
operation that is used to represent
the services provided by a class or
component.
Lollipop notation:-
This notation shows the interfaces
as a circle and displays the class
that realizes the interface in a
rectangle.
Accept
Validate
Input
Input
Dashed Arrow notation:-
Depict an interface as a class with
the help of the <<interface>>
keyword. The diagram also
specifies the operations of the

-:
END:-

S-ar putea să vă placă și