SlideShare ist ein Scribd-Unternehmen logo
1 von 40
Downloaden Sie, um offline zu lesen
TABLE OF CONTENTS
Introduction to UML Diagram.
A conceptual model of UML
building blocks of UML
Things
Relationships
Diagrams
Class Diagram
INTRODUCTIONTO UML DIAGRAM.
UML stands for Unified Modelling Language.
UML is a standard language for specifying, visualizing, constructing, and documenting a
system in which software represents the most significant part.
UML is different from the other common programming languages like C++, Java, COBOL
etc.
UML is a pictorial language used to make software blue prints.
UML can serve as a central notation for software development process. Using UML helps
project teams communicate, explore potential designs, and validate the architectural designs
of software.
UML diagrams are made using notation of things and relationships.
INTRODUCTIONTO UML DIAGRAM.
UML
Refactoring
Design
Prototyping
Code Generation
AutomatedTests
Analysis
Documentation
A CONCEPTUAL MODEL OF UML
Conceptual model: A conceptual model can be defined as a model which is made of concepts
and their relationships.
As UML describes the real time systems it is very important to make a conceptual model and
then proceed gradually. Conceptual model of UML can be better understood by learning the
following three major elements :
UML building blocks
Rules to connect the building blocks
Common mechanisms of UML
BUILDING BLOCKS OF UML
The building blocks of UML can be defined as:
Things
Relationships
Diagrams
Things: Things are the most important building blocks of UML. Things can be:
Structural
Behavioral
Grouping
Annotational
STRUCTURALTHINGS
The Structural things define the static part of the model. They represent physical and
conceptual elements. Following are the brief descriptions of the structural things.
Class: Class represents set of objects having similar responsibilities.
Interface: Interface defines a set of operations which specify the responsibility of a class.
Collaboration: Collaboration defines interaction between elements.
Use case: Use case represents a set of actions performed by a system for a specific goal.
Component: Component describes physical part of a system.
Node: A node can be defined as a physical element that exists at run time.
BEHAVIORALTHING
A behavioral thing consists of the dynamic parts of UML models. Following are the
behavioral things:
Interaction: Interaction is defined as a behavior that consists of a group of messages
exchanged among elements to accomplish a specific task.
State machine: State machine is useful when the state of an object in its life cycle is
important. It defines the sequence of states an object goes through in response to
events. Events are external factors responsible for state change.
RELATIONSHIP
Relationship is another most important building block of UML. It shows how elements are
associated with each other and this association describes the functionality of an application.
There are four kinds of relationships available.
Dependency: Dependency is a relationship between two things in which change in one element also
affects the other one.
Association: Association is basically a set of links that connects elements of an UML model. It also
describes how many objects are taking part in that relationship.
Generalization: Generalization can be defined as a relationship which connects a specialized element
with a generalized element. It basically describes inheritance relationship in the world of objects.
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.
UML DIAGRAMS
There are 9 diagrams in UML that can be used to model a system at different points of time in
software life cycle of a system.
They are:
1. Class diagram
2. Object diagram
3. Use case diagram
4. Sequence diagram
5. Collaboration diagram
6. Activity diagram
7. State diagram
8. Deployment diagram
9. Component diagram
CLASS DIAGRAM
A Class diagram models the static structure of a system. It shows relationships between classes, objects,
attributes, and operations.
A class has three parts; name at the top, attributes in the middle and operations/methods at the bottom.
The functionality provided by the class are termed “methods” of the class.
Attribute uniquely identify the class.
The class diagram is a static diagram. It represents the static view of an application.
Purpose of the class diagram can be summarized as:
Analysis and design of the static view of an application.
Describe responsibilities of a system.
Base for component and deployment diagrams.
Forward and reverse engineering.
HOW TO DRAW CLASS DIAGRAM?
Class diagrams have lot of properties to consider while drawing but here the diagram will be
considered from a top level view.
The following points should be remembered while drawing a class diagram:
The name of the class diagram should be meaningful to describe the aspect of the system.
Each element and their relationships should be identified in advance.
Responsibility (attributes and methods) of each class should be clearly identified.
For each class minimum number of properties should be specified. Because unnecessary
properties will make the diagram complicated.
Use notes when ever required to describe some aspect of the diagram. Because at the end of
the drawing it should be understandable to the developer/coder.
Finally, before making the final version, the diagram should be drawn on plain paper and
rework as many times as possible to make it correct.
NOTATIONS USED IN CLASS DIAGRAM
SAMPLE CLASS DIAGRAM OF ORDER MANAGEMENT SYSTEM
CLASS DIAGRAM FOR LIBRARY MANAGEMENT SYSTEM
OBJECT DIAGRAM
Object diagrams describe the static structure of a system at a particular time. They can be
used to test class diagrams for accuracy.
It is a special kind of class diagram. An object is an instance of a class.
The object diagram captures the sate of different classes in system and their relationships or
associations at a given point of time.
In a brief, object diagrams are used for:
Making the prototype of a system.
Reverse engineering.
Modelling complex data structures.
Understanding the system from practical perspective.
OBJECT DIAGRAM OF ORDER MANAGEMENT SYSTEM
STATE DIAGRAM
As the name suggests, it describes different states of a component in a system. The states are specific to a
component/object of a system.
Objects in the system change status in response to events. Used to model dynamic nature of a system.
State diagram describes the flow of control from one state to another state. States are defined as a condition
in which an object exists and it changes when some event is triggered.
Following are the main purposes of using State diagrams:
To model dynamic aspect of a system.
To model life time of a reactive system.
To describe different states of an object during its life time.
Define a state machine to model states of an object.
Before drawing a State diagram we must have clarified the following points:
Identify important objects to be analyzed.
Identify the states & Identify the events.
STATE DIAGRAM FORTOASTER
STATE DIAGRAM FOR PHONE
ACTIVITY DIAGRAM
Activity diagram is another important diagram in UML to describe dynamic aspects of the system.
Activity diagram is basically a flow chart to represent the flow form one activity to another activity. The
activity can be described as an operation of the system.
So the control flow is drawn from one operation to another. This flow can be sequential, branched or
concurrent. Activity diagrams deals with all type of flow control by using different elements like fork, join
etc.
Purposes can be described as:
Draw the activity flow of a system.
Describe the sequence from one activity to another.
Describe the parallel, branched and concurrent flow of the system.
Before drawing an activity diagram we should identify the following elements:
Activities
Association
Conditions
Constraints
ACTIVITY DIAGRAM FOR ATM
ACTIVITY DIAGRAM FOR (ISSUE BOOK) ONLINE LIBRARY
MANAGEMENT SYSTEM
ACTIVITY DIAGRAM FOR ONLINE ELECTRICITY BILL PAYMENT
SEQUENCE DIAGRAM
Sequence diagram is used to describe some type of interactions among the different
elements/objects in the system. Important aspect of this is that it is time-ordered.
Purposes of sequence diagram can be describes as:
To capture dynamic behaviour of a system.
To describe the message flow in the system.
To describe structural organization of the objects.
To describe interaction among objects.
The following things are to identified clearly before drawing the interaction diagram:
Objects taking part in the interaction.
Message flows among the objects.
The sequence in which the messages are flowing.
Object organization
ACTIVITY DIAGRAM FOR ISSUE BOOK
SEQUENCE DIAGRAM OF E-MAIL MESSAGE SEQUENCE
COMPONENT DIAGRAM
Component diagrams are different in terms of nature and behaviour. Component diagrams are
used to model physical aspects of a system. Physical aspects are the elements like executables,
libraries, files, documents etc. which resides in a node. So component diagrams are used to
visualize the organization and relationships among components in a system.
Purpose of the component diagram can be summarized as:
1.)Visualize the components of a system. 2.)Construct executables by using forward and reverse
engineering.
3.)Describe the organization and relationships of the components.
A single component diagram cannot represent the entire system but a collection of diagrams are
used to represent the whole.
Before drawing a component diagram the following artifacts are to be identified clearly:
1.) Files used in the system. 2.)Libraries and other artifacts relevant to the application.
3.)Relationships among the artifacts.
COMPONENT DIAGRAM FOR LIBRARY MANAGEMENT SYSTEM
COMPONENT DIAGRAM FOR ATM
DEPLOYMENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical components of a system where the
software components are deployed. So deployment diagrams are used to describe the static deployment view of
a system. Deployment diagrams consist of nodes and their relationships.
The purpose of deployment diagrams can be described as:
Visualize hardware topology of a system.
Describe the hardware components used to deploy software components.
Describe runtime processing nodes.
Deployment diagrams are useful for system engineers. An efficient deployment diagram is very important
because it controls the following parameters:
>Performance >Scalability >Maintainability >Portability
So before drawing a deployment diagram the following artifacts should be identified:
>Nodes >Relationships among nodes
DEPLOYMENT DIAGRAM FOR LIBRARY MANAGEMENT SYSTEM
USE CASE DIAGRAM
Use case diagrams are consists of actors, use cases and their relationships. The diagram is used to model the
system/subsystem 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.
Identify external and internal factors influencing the system.
Show the interacting among the requirements are actors.
When we are planning to draw an use case diagram we should have the following items identified.
Functionalities to be represented as an use case
Actors
Relationships among the use cases and actors.
USE CASE DIAGRAM
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 note when ever required to clarify some important points.
The following are the places where use case diagrams are used:
Requirement analysis and high level design.
Model the context of a system.
Reverse engineering.
Forward engineering
USE CASE DIAGRAM FOR LIBRARY MANAGEMENT SYSTEM
INTRODUCTION TO UML DIAGRAMS

Weitere ähnliche Inhalte

Was ist angesagt?

UML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussionUML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussion
CherryBerry2
 
Formal Methods lecture 01
Formal Methods lecture 01Formal Methods lecture 01
Formal Methods lecture 01
Sidra Ashraf
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
Haitham El-Ghareeb
 

Was ist angesagt? (20)

UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptx
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Object oriented modeling and design
Object oriented modeling and designObject oriented modeling and design
Object oriented modeling and design
 
Presentation on uml
Presentation on umlPresentation on uml
Presentation on uml
 
Functional modeling
Functional modelingFunctional modeling
Functional modeling
 
Interaction Modeling
Interaction ModelingInteraction Modeling
Interaction Modeling
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
Software design
Software designSoftware design
Software design
 
UML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussionUML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussion
 
Uml with detail
Uml with detailUml with detail
Uml with detail
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
 
Introduction to Rational Rose
Introduction to Rational RoseIntroduction to Rational Rose
Introduction to Rational Rose
 
Software Process Models
Software Process ModelsSoftware Process Models
Software Process Models
 
object oriented methodologies
object oriented methodologiesobject oriented methodologies
object oriented methodologies
 
Formal Methods lecture 01
Formal Methods lecture 01Formal Methods lecture 01
Formal Methods lecture 01
 
State chart diagram
State chart diagramState chart diagram
State chart diagram
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
 
State Diagrams
State DiagramsState Diagrams
State Diagrams
 
Ooad unit – 1 introduction
Ooad unit – 1 introductionOoad unit – 1 introduction
Ooad unit – 1 introduction
 

Andere mochten auch

Library management system
Library management systemLibrary management system
Library management system
ABhay Panchal
 
ADVANCED SYSTEM ANALYSIS On Automated Library Management System
ADVANCED SYSTEM ANALYSIS On Automated Library Management SystemADVANCED SYSTEM ANALYSIS On Automated Library Management System
ADVANCED SYSTEM ANALYSIS On Automated Library Management System
Uraz Pokharel
 
Library mangement system project srs documentation.doc
Library mangement system project srs documentation.docLibrary mangement system project srs documentation.doc
Library mangement system project srs documentation.doc
jimmykhan
 
Digital Transmission Fundamentals
Digital Transmission FundamentalsDigital Transmission Fundamentals
Digital Transmission Fundamentals
Aisu
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
Aditya Shah
 
CCNA Basic Switching and Switch Configuration Questions
CCNA Basic Switching and Switch Configuration QuestionsCCNA Basic Switching and Switch Configuration Questions
CCNA Basic Switching and Switch Configuration Questions
Dsunte Wilson
 
CCNA Network Services
CCNA Network ServicesCCNA Network Services
CCNA Network Services
Dsunte Wilson
 
CCNA Routing Protocols
CCNA Routing ProtocolsCCNA Routing Protocols
CCNA Routing Protocols
Dsunte Wilson
 

Andere mochten auch (20)

Library 2.0 technologies in academic libraries, a case study of student use a...
Library 2.0 technologies in academic libraries, a case study of student use a...Library 2.0 technologies in academic libraries, a case study of student use a...
Library 2.0 technologies in academic libraries, a case study of student use a...
 
Library management system
Library management systemLibrary management system
Library management system
 
Library management system
Library management systemLibrary management system
Library management system
 
Library management system
Library management systemLibrary management system
Library management system
 
Library management system presentation
Library management system presentation Library management system presentation
Library management system presentation
 
ADVANCED SYSTEM ANALYSIS On Automated Library Management System
ADVANCED SYSTEM ANALYSIS On Automated Library Management SystemADVANCED SYSTEM ANALYSIS On Automated Library Management System
ADVANCED SYSTEM ANALYSIS On Automated Library Management System
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
 
Library mangement system project srs documentation.doc
Library mangement system project srs documentation.docLibrary mangement system project srs documentation.doc
Library mangement system project srs documentation.doc
 
CCNAv5 - S2: Chapter1 Introsuction to switched networks
CCNAv5 - S2: Chapter1 Introsuction to switched networksCCNAv5 - S2: Chapter1 Introsuction to switched networks
CCNAv5 - S2: Chapter1 Introsuction to switched networks
 
Digital Transmission Fundamentals
Digital Transmission FundamentalsDigital Transmission Fundamentals
Digital Transmission Fundamentals
 
CCNAv5 - S1: Chapter 1 Exploring The Network
CCNAv5 - S1: Chapter 1 Exploring The NetworkCCNAv5 - S1: Chapter 1 Exploring The Network
CCNAv5 - S1: Chapter 1 Exploring The Network
 
CCNAv5 - S2: Chapter2 Basic Switching Concepts and Configuration
CCNAv5 - S2: Chapter2 Basic Switching Concepts and ConfigurationCCNAv5 - S2: Chapter2 Basic Switching Concepts and Configuration
CCNAv5 - S2: Chapter2 Basic Switching Concepts and Configuration
 
Network topologies
Network topologiesNetwork topologies
Network topologies
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
 
Library Management System PPT
Library Management System PPTLibrary Management System PPT
Library Management System PPT
 
Chapter 4 - Digital Transmission
Chapter 4 - Digital TransmissionChapter 4 - Digital Transmission
Chapter 4 - Digital Transmission
 
CCNA Basic Switching and Switch Configuration Questions
CCNA Basic Switching and Switch Configuration QuestionsCCNA Basic Switching and Switch Configuration Questions
CCNA Basic Switching and Switch Configuration Questions
 
CCNA Network Services
CCNA Network ServicesCCNA Network Services
CCNA Network Services
 
CCNA Access Lists
CCNA Access ListsCCNA Access Lists
CCNA Access Lists
 
CCNA Routing Protocols
CCNA Routing ProtocolsCCNA Routing Protocols
CCNA Routing Protocols
 

Ähnlich wie INTRODUCTION TO UML DIAGRAMS

UNIT-3 Design Using UML (1).pptx
UNIT-3 Design Using UML (1).pptxUNIT-3 Design Using UML (1).pptx
UNIT-3 Design Using UML (1).pptx
viju001
 
Software Engineering Tools and Practices.pdf
Software Engineering Tools and Practices.pdfSoftware Engineering Tools and Practices.pdf
Software Engineering Tools and Practices.pdf
MeagGhn
 

Ähnlich wie INTRODUCTION TO UML DIAGRAMS (20)

Uml
UmlUml
Uml
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Experiment no
Experiment noExperiment no
Experiment no
 
UNIT-3 Design Using UML (1).pptx
UNIT-3 Design Using UML (1).pptxUNIT-3 Design Using UML (1).pptx
UNIT-3 Design Using UML (1).pptx
 
Uml.pptx
Uml.pptxUml.pptx
Uml.pptx
 
Case Study Uml
Case Study UmlCase Study Uml
Case Study Uml
 
Understanding unified modelling language
Understanding unified modelling languageUnderstanding unified modelling language
Understanding unified modelling language
 
R1x g02 enterprise architecture i
R1x g02 enterprise architecture iR1x g02 enterprise architecture i
R1x g02 enterprise architecture i
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
 
Software Engineering Tools and Practices.pdf
Software Engineering Tools and Practices.pdfSoftware Engineering Tools and Practices.pdf
Software Engineering Tools and Practices.pdf
 
Case stydy cs701
Case stydy cs701 Case stydy cs701
Case stydy cs701
 
Uml overview modified
Uml overview modifiedUml overview modified
Uml overview modified
 
432
432432
432
 
Uml
UmlUml
Uml
 
UML (Unified Modeling Language)
UML (Unified Modeling Language)UML (Unified Modeling Language)
UML (Unified Modeling Language)
 
Uml
UmlUml
Uml
 
Introduction.pptx
Introduction.pptxIntroduction.pptx
Introduction.pptx
 
UML-Advanced Software Engineering
UML-Advanced Software EngineeringUML-Advanced Software Engineering
UML-Advanced Software Engineering
 
Ch 2.1
Ch 2.1Ch 2.1
Ch 2.1
 
Behavioural modelling
Behavioural modellingBehavioural modelling
Behavioural modelling
 

Mehr von Ashita Agrawal

Introduction to Sets
Introduction to SetsIntroduction to Sets
Introduction to Sets
Ashita Agrawal
 
Business Overview
Business OverviewBusiness Overview
Business Overview
Ashita Agrawal
 
Biography of Mahatma Gandhi : 1869-1948
Biography of Mahatma Gandhi : 1869-1948Biography of Mahatma Gandhi : 1869-1948
Biography of Mahatma Gandhi : 1869-1948
Ashita Agrawal
 
Cloud computing - new class of network based computing
Cloud computing - new class of network based computingCloud computing - new class of network based computing
Cloud computing - new class of network based computing
Ashita Agrawal
 

Mehr von Ashita Agrawal (17)

Linux operating system - Overview
Linux operating system - OverviewLinux operating system - Overview
Linux operating system - Overview
 
Introductio to Abstract Window Toolkit (AWT)
Introductio to Abstract Window Toolkit (AWT)Introductio to Abstract Window Toolkit (AWT)
Introductio to Abstract Window Toolkit (AWT)
 
Inheritance in Object Oriented Programming
Inheritance in Object Oriented ProgrammingInheritance in Object Oriented Programming
Inheritance in Object Oriented Programming
 
Introduction to Sets
Introduction to SetsIntroduction to Sets
Introduction to Sets
 
Business Overview
Business OverviewBusiness Overview
Business Overview
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Biography of Mahatma Gandhi : 1869-1948
Biography of Mahatma Gandhi : 1869-1948Biography of Mahatma Gandhi : 1869-1948
Biography of Mahatma Gandhi : 1869-1948
 
Cloud computing - new class of network based computing
Cloud computing - new class of network based computingCloud computing - new class of network based computing
Cloud computing - new class of network based computing
 
constructor and destructor-object oriented programming
constructor and destructor-object oriented programmingconstructor and destructor-object oriented programming
constructor and destructor-object oriented programming
 
Introduction to computer network
Introduction to computer networkIntroduction to computer network
Introduction to computer network
 
Instruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorInstruction Set of 8086 Microprocessor
Instruction Set of 8086 Microprocessor
 
Testing Machine- universal tester
Testing Machine- universal testerTesting Machine- universal tester
Testing Machine- universal tester
 
Adolf Hitler - German politician(world war I)
Adolf Hitler - German politician(world war I)Adolf Hitler - German politician(world war I)
Adolf Hitler - German politician(world war I)
 
Charles babbage - Father of Computing.
Charles babbage - Father of Computing. Charles babbage - Father of Computing.
Charles babbage - Father of Computing.
 
Ada Lovelace-The First Programmer
Ada Lovelace-The First ProgrammerAda Lovelace-The First Programmer
Ada Lovelace-The First Programmer
 
Slums In India
Slums In IndiaSlums In India
Slums In India
 
Augmented Reality
Augmented RealityAugmented Reality
Augmented Reality
 

Kürzlich hochgeladen

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Kürzlich hochgeladen (20)

Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 

INTRODUCTION TO UML DIAGRAMS

  • 1.
  • 2. TABLE OF CONTENTS Introduction to UML Diagram. A conceptual model of UML building blocks of UML Things Relationships Diagrams Class Diagram
  • 3. INTRODUCTIONTO UML DIAGRAM. UML stands for Unified Modelling Language. UML is a standard language for specifying, visualizing, constructing, and documenting a system in which software represents the most significant part. UML is different from the other common programming languages like C++, Java, COBOL etc. UML is a pictorial language used to make software blue prints. UML can serve as a central notation for software development process. Using UML helps project teams communicate, explore potential designs, and validate the architectural designs of software. UML diagrams are made using notation of things and relationships.
  • 4. INTRODUCTIONTO UML DIAGRAM. UML Refactoring Design Prototyping Code Generation AutomatedTests Analysis Documentation
  • 5. A CONCEPTUAL MODEL OF UML Conceptual model: A conceptual model can be defined as a model which is made of concepts and their relationships. As UML describes the real time systems it is very important to make a conceptual model and then proceed gradually. Conceptual model of UML can be better understood by learning the following three major elements : UML building blocks Rules to connect the building blocks Common mechanisms of UML
  • 6. BUILDING BLOCKS OF UML The building blocks of UML can be defined as: Things Relationships Diagrams Things: Things are the most important building blocks of UML. Things can be: Structural Behavioral Grouping Annotational
  • 7. STRUCTURALTHINGS The Structural things define the static part of the model. They represent physical and conceptual elements. Following are the brief descriptions of the structural things. Class: Class represents set of objects having similar responsibilities. Interface: Interface defines a set of operations which specify the responsibility of a class. Collaboration: Collaboration defines interaction between elements. Use case: Use case represents a set of actions performed by a system for a specific goal. Component: Component describes physical part of a system. Node: A node can be defined as a physical element that exists at run time.
  • 8. BEHAVIORALTHING A behavioral thing consists of the dynamic parts of UML models. Following are the behavioral things: Interaction: Interaction is defined as a behavior that consists of a group of messages exchanged among elements to accomplish a specific task. State machine: State machine is useful when the state of an object in its life cycle is important. It defines the sequence of states an object goes through in response to events. Events are external factors responsible for state change.
  • 9. RELATIONSHIP Relationship is another most important building block of UML. It shows how elements are associated with each other and this association describes the functionality of an application. There are four kinds of relationships available. Dependency: Dependency is a relationship between two things in which change in one element also affects the other one. Association: Association is basically a set of links that connects elements of an UML model. It also describes how many objects are taking part in that relationship. Generalization: Generalization can be defined as a relationship which connects a specialized element with a generalized element. It basically describes inheritance relationship in the world of objects. 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.
  • 10. UML DIAGRAMS There are 9 diagrams in UML that can be used to model a system at different points of time in software life cycle of a system. They are: 1. Class diagram 2. Object diagram 3. Use case diagram 4. Sequence diagram 5. Collaboration diagram 6. Activity diagram 7. State diagram 8. Deployment diagram 9. Component diagram
  • 11.
  • 12. CLASS DIAGRAM A Class diagram models the static structure of a system. It shows relationships between classes, objects, attributes, and operations. A class has three parts; name at the top, attributes in the middle and operations/methods at the bottom. The functionality provided by the class are termed “methods” of the class. Attribute uniquely identify the class. The class diagram is a static diagram. It represents the static view of an application. Purpose of the class diagram can be summarized as: Analysis and design of the static view of an application. Describe responsibilities of a system. Base for component and deployment diagrams. Forward and reverse engineering.
  • 13. HOW TO DRAW CLASS DIAGRAM? Class diagrams have lot of properties to consider while drawing but here the diagram will be considered from a top level view. The following points should be remembered while drawing a class diagram: The name of the class diagram should be meaningful to describe the aspect of the system. Each element and their relationships should be identified in advance. Responsibility (attributes and methods) of each class should be clearly identified. For each class minimum number of properties should be specified. Because unnecessary properties will make the diagram complicated. Use notes when ever required to describe some aspect of the diagram. Because at the end of the drawing it should be understandable to the developer/coder. Finally, before making the final version, the diagram should be drawn on plain paper and rework as many times as possible to make it correct.
  • 14. NOTATIONS USED IN CLASS DIAGRAM
  • 15. SAMPLE CLASS DIAGRAM OF ORDER MANAGEMENT SYSTEM
  • 16. CLASS DIAGRAM FOR LIBRARY MANAGEMENT SYSTEM
  • 17. OBJECT DIAGRAM Object diagrams describe the static structure of a system at a particular time. They can be used to test class diagrams for accuracy. It is a special kind of class diagram. An object is an instance of a class. The object diagram captures the sate of different classes in system and their relationships or associations at a given point of time. In a brief, object diagrams are used for: Making the prototype of a system. Reverse engineering. Modelling complex data structures. Understanding the system from practical perspective.
  • 18. OBJECT DIAGRAM OF ORDER MANAGEMENT SYSTEM
  • 19. STATE DIAGRAM As the name suggests, it describes different states of a component in a system. The states are specific to a component/object of a system. Objects in the system change status in response to events. Used to model dynamic nature of a system. State diagram describes the flow of control from one state to another state. States are defined as a condition in which an object exists and it changes when some event is triggered. Following are the main purposes of using State diagrams: To model dynamic aspect of a system. To model life time of a reactive system. To describe different states of an object during its life time. Define a state machine to model states of an object. Before drawing a State diagram we must have clarified the following points: Identify important objects to be analyzed. Identify the states & Identify the events.
  • 22. ACTIVITY DIAGRAM Activity diagram is another important diagram in UML to describe dynamic aspects of the system. Activity diagram is basically a flow chart to represent the flow form one activity to another activity. The activity can be described as an operation of the system. So the control flow is drawn from one operation to another. This flow can be sequential, branched or concurrent. Activity diagrams deals with all type of flow control by using different elements like fork, join etc. Purposes can be described as: Draw the activity flow of a system. Describe the sequence from one activity to another. Describe the parallel, branched and concurrent flow of the system. Before drawing an activity diagram we should identify the following elements: Activities Association Conditions Constraints
  • 24. ACTIVITY DIAGRAM FOR (ISSUE BOOK) ONLINE LIBRARY MANAGEMENT SYSTEM
  • 25. ACTIVITY DIAGRAM FOR ONLINE ELECTRICITY BILL PAYMENT
  • 26. SEQUENCE DIAGRAM Sequence diagram is used to describe some type of interactions among the different elements/objects in the system. Important aspect of this is that it is time-ordered. Purposes of sequence diagram can be describes as: To capture dynamic behaviour of a system. To describe the message flow in the system. To describe structural organization of the objects. To describe interaction among objects. The following things are to identified clearly before drawing the interaction diagram: Objects taking part in the interaction. Message flows among the objects. The sequence in which the messages are flowing. Object organization
  • 27.
  • 28.
  • 29. ACTIVITY DIAGRAM FOR ISSUE BOOK
  • 30. SEQUENCE DIAGRAM OF E-MAIL MESSAGE SEQUENCE
  • 31. COMPONENT DIAGRAM Component diagrams are different in terms of nature and behaviour. Component diagrams are used to model physical aspects of a system. Physical aspects are the elements like executables, libraries, files, documents etc. which resides in a node. So component diagrams are used to visualize the organization and relationships among components in a system. Purpose of the component diagram can be summarized as: 1.)Visualize the components of a system. 2.)Construct executables by using forward and reverse engineering. 3.)Describe the organization and relationships of the components. A single component diagram cannot represent the entire system but a collection of diagrams are used to represent the whole. Before drawing a component diagram the following artifacts are to be identified clearly: 1.) Files used in the system. 2.)Libraries and other artifacts relevant to the application. 3.)Relationships among the artifacts.
  • 32. COMPONENT DIAGRAM FOR LIBRARY MANAGEMENT SYSTEM
  • 34. DEPLOYMENT DIAGRAM Deployment diagrams are used to visualize the topology of the physical components of a system where the software components are deployed. So deployment diagrams are used to describe the static deployment view of a system. Deployment diagrams consist of nodes and their relationships. The purpose of deployment diagrams can be described as: Visualize hardware topology of a system. Describe the hardware components used to deploy software components. Describe runtime processing nodes. Deployment diagrams are useful for system engineers. An efficient deployment diagram is very important because it controls the following parameters: >Performance >Scalability >Maintainability >Portability So before drawing a deployment diagram the following artifacts should be identified: >Nodes >Relationships among nodes
  • 35. DEPLOYMENT DIAGRAM FOR LIBRARY MANAGEMENT SYSTEM
  • 36.
  • 37. USE CASE DIAGRAM Use case diagrams are consists of actors, use cases and their relationships. The diagram is used to model the system/subsystem 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. Identify external and internal factors influencing the system. Show the interacting among the requirements are actors. When we are planning to draw an use case diagram we should have the following items identified. Functionalities to be represented as an use case Actors Relationships among the use cases and actors.
  • 38. USE CASE DIAGRAM 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 note when ever required to clarify some important points. The following are the places where use case diagrams are used: Requirement analysis and high level design. Model the context of a system. Reverse engineering. Forward engineering
  • 39. USE CASE DIAGRAM FOR LIBRARY MANAGEMENT SYSTEM