SlideShare a Scribd company logo
1 of 21
UML Diagrams 
by Hnin Thiri Chaw (9PhD-3) 
Free Powerpoint Templates
• UML stand for “Unified Modeling Language”. 
• There are nine kind of diagram in UML 
1. Use case diagrams 
2. Class diagrams 
3. Object diagrams 
4. Sequence diagrams 
5. Collaboration diagrams 
6. Statechart diagrams 
7. Activity diagrams 
8. Component diagrams 
9. Deployment diagrams
• The communication among everyone involved in creating and deploying the software is critical in 
complicated System. 
• The software blueprint language for analysts, designers, and programmers alike. It isnow part of 
the software trade. 
• The UML gives everyone from business analyst to designer to programmer a common 
vocabulary to talk about software design. 
• The UML is applicable to object-oriented problem solving for the construction of a model. 
• Models consist of objects. 
Class 
• Classes are the "blueprints" for objects. 
• A class wraps attributes (data) and behaviors (methods or functions) into a single distinct 
entity. Objects are instances ofclasses.
• Use case diagrams describe what a system does from the standpoint of an external observer. 
• The emphasis is on what a system does rather than how a system does. 
• Use case diagrams are closely connected to scenarios. 
• A scenario is an example of what happens when someone interacts with the system. Here is a 
scenario for a medical clinic. 
Scenario 
• "A patient calls the clinic to make an appointment for a yearly checkup. The receptionist finds the 
nearest empty time slot in the appointment book and schedules the appointment for that time slot.“ 
Use Case 
• A use case is a summary of scenarios for a single task or goal. 
• An actor is who or what initiates the events involved in that task. 
• Actors are simply roles that people or objects play.
Figure: Make Appointment use case for the medical clinic. 
•The actor is a Patient. 
• The connection between actor and use case is a communication association(or communication 
for short). 
Use Case Notation 
•Actors are stick figures. 
•Use cases are ovals. 
•Communications are lines that link actors to use cases.
Figure: Make Appointment use case for the medical clinic with four actors and four use cases. 
• A use case diagram is a collection of actors, use cases, and their communications. 
• A single use case can have multiple actors. 
• Use case diagrams are helpful in three areas. 
– determining features (requirements). New use cases often generate new requirements as 
the system is analyzed and the design takes shape. 
– communicating with clients. Their notational simplicity makes use case diagrams a good 
way for developers to communicate with clients. 
– generating test cases. The collection of scenarios for a use case may suggest a suite of 
test cases for those scenarios.
Figure: A customer order from a retail catalog 
The central class is the Order. 
Associated with it are the Customer making the purchase and the Payment. A Payment is one of three kinds: 
Cash, Check, or Credit. 
The order contains OrderDetails (line items), each with its associated Item.
• A Class diagram gives an overview of a system by showing its classes and the relationships 
among them. 
• Class diagrams are static -- they display what interacts but not what happens when they do 
interact. 
UML Class Notation 
• UML class notation is a rectangle divided into three parts: class name, attributes, and 
operations. 
• Names of abstract classes, such as Payment, are in italics. 
• Relationships between classes are the connecting links. 
• A navigability arrow on an association shows which direction the association can be traversed 
or queried. 
• The arrow also lets you know who "owns" the association's implementation; in this case, 
Order Detail has an Item. 
• Associations with no navigability arrows are bi-directional.
• UML Class Notation 
• The multiplicity of an association end is the number of possible instances of the class 
associated with a single instance of the other end. 
• Multiplicities are single numbers or ranges of numbers. 
• In our example, there can be only one Customer for each Order, but a Customer can have any 
number of Orders. 
• This table gives the most common multiplicities. 
Multiplicities Meaning 
• 0..1 =>zero or one instance. 
• 0..* or * => no limit on the number of instances (including none). 
• 1 =>exactly one instance 
• 1..* => at least one instance 
• Every class diagram has classes, associations, and multiplicities. Navigability and roles are 
optional items placed in a diagram to provide clarity.
Class Relationship 
• Our class diagram has three kinds of relationships. 
• 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. 
• In our diagram, Order has a collection of Order Details .(‘Has’) 
• Generalization -- an inheritance link indicating one class is a superclass of the other. 
• A generalization has a triangle pointing to the superclass. 
• Payment is a superclass of Cash, Check, and Credit(‘Is’). 
• An association has two ends. 
• An end may have a role name to clarify the nature of the association. 
• For example, an OrderDetail is a line item of each Order.
• To simplify complex class diagrams, classes are grouped into packages. 
• A package is a collection of logically related UML elements. 
Package Notation 
• Packages appear as rectangles with small tabs at the top. 
• The package name is on the tab or inside the rectangle. 
• The dotted arrows are dependencies. 
• One package depends on another if changes in the other could possibly force changes in the 
first. 
Figure: Package Diagram of the Banking Business Model
Figure: Object Diagram of the Department 
of University containing many subdepartment 
Object 
•Objects that interact by sending each other messages. Think of an object as "alive.“ 
• Objects have => (1) things they know (attributes) 
=> (2)the things they can do (behaviors or operations). 
=> (3)the values of an object's attributes determine its state(attribute’s value). 
•Object diagrams show instances instead of classes. 
•They are useful for explaining small pieces with complicated relationships, 
•especially recursive relationships. 
Object Notation 
Each rectangle in the object diagram corresponds to a single instance. 
Instance names are underlined in UML diagrams. 
Class or instance names may be omitted from object diagrams as long as 
the diagram meaning is still clear.
•Class and object diagrams are static model views. 
•Interaction diagrams are dynamic. They describe how objects collaborate. 
•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. 
•The objects involved in the operation are listed from left to right according to when they take 
part in the message sequence.
Figure: Sequence Diagram of the Making Hotel Reservation 
•The object initiating the sequence of messages is a Reservation window. 
•The Reservation window sends a makeReservation() message to a HotelChain. 
•The HotelChain then sends a makeReservation() message to a Hotel. If the Hotel has 
available rooms, then it makes a Reservation and a Confirmation. 
Sequence Notation 
•Each vertical dotted line is a lifeline, representing the time that an object exists. 
• Each arrow is a message call. An arrow goes from the sender to the top of the activation bar 
of the message on the receiver's lifeline. 
•The activation bar represents the duration of execution of the message. 
•In our diagram, the Hotel issues a self call to determine if a room is available. 
•If so, then the Hotel creates a Reservation and a Confirmation. 
• The asterisk on the self call means iteration (to make sure there is available room for each day 
of the stay in the hotel). 
• The expression in square brackets, [ ], is a condition. 
•The diagram has a clarifying note, which is text inside a dog-eared rectangle. 
•Notes can be put into any kind of UML diagram.
Figure: Collaboration Diagram of the Making Hotel Reservation 
Collaboration diagrams 
• Collaboration diagrams are also interaction diagrams. 
• They convey the same information as sequence diagrams, but they focus on object roles 
instead of the times that messages are sent. 
Difference between Sequence and Collaboration Diagram 
• In a sequence diagram, object roles are the vertices and messages are the connecting links. 
The object-role rectangles are labeled with either class or object names (or both). Class 
names are preceded by colons ( : ). 
• Each message in a collaboration diagram has a sequence number. The top-level message is 
numbered 1. Messages at the same level (sent during the same call) have the same decimal 
prefix but suffixes of 1, 2, etc. according to when they occur.
• Objects have behaviors and state. 
• The state of an object depends on its current activity or condition. 
• A statechart diagram shows the possible states of the object and the transitions that cause 
a change in state. 
State Diagram Notation 
• States are rounded rectangles. 
• Transitions are arrows from one state to another. Events or conditions that trigger transitions 
are written beside the arrows. Our diagram has two self-transition, one on Getting SSN and 
another on Getting PIN. 
• The initial state (black circle) is a dummy to start the action. 
• Final states are also dummy states that terminate the action. 
• The action that occurs as a result of an event or condition is expressed in the form /action. 
• While in its Validating state, the object does not wait for an outside event to trigger a transition. 
Instead, it performs an activity. 
• The result of that activity determines its subsequent state.
Figure: State Diagram of the Login Part of Online Banking System 
• Our example diagram models the login part of an online banking system. Logging in consists 
of entering a valid social security number(SSN) and personal id number(PIN), 
thensubmitting the information for validation. 
• Logging in can be factored into four non-overlapping states: Getting SSN, Getting PIN, 
Validating, and Rejecting. From each state comes a complete set of transitions that 
determine the subsequent state.
Figure: Activity Diagram Withdrawing Money from ATM 
For our example, we used the following process. 
"Withdraw money from a bank account through an ATM." 
The three involved classes (people, etc.) of the activity are Customer, ATM, and Bank.
• An activity diagram is essentially a fancy flowchart. 
• Activity diagrams and state chart diagrams are related. 
Difference Between State Diagram and Activity Diagram 
• While a state diagram focuses attention on an object. 
• Activity diagram focuses on the flow of activities involved in a single process. 
• The activity diagram shows the how those activities depend on one another. 
Activity Diagram Notation 
• The activities are rounded rectangles. 
• The process begins at the black start circle at the top and ends at the concentric white/black 
stop circles at the bottom. 
• Activity diagrams can be divided into object swim lanes that determine which object is 
responsible for which activity. 
• A single transition comes out of each activity, connecting it to the next activity. 
• A transition may branch into two or more mutually exclusive transitions. 
• Guard expressions (inside [ ]) label the transitions coming out of a branch. 
• A branch and its subsequent merge marking the end of the branch appear in the diagram as 
hollow diamonds. 
• A transition may fork into two or more parallel activities. The fork and the subsequent join of 
the threads coming out of the fork appear in the diagram as solid bars.
Deployment Diagram 
• Deployment diagrams show the physical configurations of software andhardware. 
• The deployment diagram shows the relationships among software and hardware 
components involved in real estate transactions. 
• The physical hardware is made up of nodes. 
Component Diagram 
• A component is a code module. Component diagrams are physical analogs of class 
diagram. 
• Each component belongs on a node. 
• Components are shown as rectangles with two tabs at the upper left.
UML Diagram @ Software engineering discussion

More Related Content

What's hot

Unified modeling language diagrams
Unified modeling language diagramsUnified modeling language diagrams
Unified modeling language diagramsAlaa Ahmed
 
Uml with detail
Uml with detailUml with detail
Uml with detailHamza Khan
 
Object-Oriented Analysis and Design
Object-Oriented Analysis and DesignObject-Oriented Analysis and Design
Object-Oriented Analysis and DesignRiazAhmad786
 
UML diagrams and symbols
UML diagrams and symbolsUML diagrams and symbols
UML diagrams and symbolsKumar
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSAshita Agrawal
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling LanguageShahzad
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentationmewaseem
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagramRamakant Soni
 
Object diagram
Object diagramObject diagram
Object diagramRahul Pola
 
Object Modeling Techniques
Object Modeling TechniquesObject Modeling Techniques
Object Modeling TechniquesShilpa Wadhwani
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagramsBaskarkncet
 
Analysis modeling in software engineering
Analysis modeling in software engineeringAnalysis modeling in software engineering
Analysis modeling in software engineeringMuhammadTalha436
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with umlsabin kafle
 
Unified modelling language (UML)
Unified modelling language (UML)Unified modelling language (UML)
Unified modelling language (UML)Hirra Sultan
 

What's hot (20)

Unified modeling language diagrams
Unified modeling language diagramsUnified modeling language diagrams
Unified modeling language diagrams
 
Uml with detail
Uml with detailUml with detail
Uml with detail
 
Presentation on uml
Presentation on umlPresentation on uml
Presentation on uml
 
Object-Oriented Analysis and Design
Object-Oriented Analysis and DesignObject-Oriented Analysis and Design
Object-Oriented Analysis and Design
 
Behavioural modelling
Behavioural modellingBehavioural modelling
Behavioural modelling
 
Object diagram
Object diagramObject diagram
Object diagram
 
Uml class-diagram
Uml class-diagramUml class-diagram
Uml class-diagram
 
UML diagrams and symbols
UML diagrams and symbolsUML diagrams and symbols
UML diagrams and symbols
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling Language
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagram
 
Object diagram
Object diagramObject diagram
Object diagram
 
Object Modeling Techniques
Object Modeling TechniquesObject Modeling Techniques
Object Modeling Techniques
 
UML
UMLUML
UML
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagrams
 
Analysis modeling in software engineering
Analysis modeling in software engineeringAnalysis modeling in software engineering
Analysis modeling in software engineering
 
Use Case Modeling
Use Case ModelingUse Case Modeling
Use Case Modeling
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with uml
 
Unified modelling language (UML)
Unified modelling language (UML)Unified modelling language (UML)
Unified modelling language (UML)
 

Viewers also liked

Online Banking Project
Online Banking ProjectOnline Banking Project
Online Banking ProjectM.Saber
 
Sequence Diagram of Hotel Management System
Sequence Diagram of Hotel Management SystemSequence Diagram of Hotel Management System
Sequence Diagram of Hotel Management SystemSushil Mishra
 
Component and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewComponent and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewRajiv Kumar
 
Uml diagram for_hospital_management_system
Uml diagram for_hospital_management_systemUml diagram for_hospital_management_system
Uml diagram for_hospital_management_systemPradeep Bhosale
 
SYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMSYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMNitish Xavier Tirkey
 
java Project report online banking system
java Project report online banking systemjava Project report online banking system
java Project report online banking systemVishNu KuNtal
 
UML Use Case & Class Diagrams (College 2003)
UML Use Case & Class Diagrams (College 2003)UML Use Case & Class Diagrams (College 2003)
UML Use Case & Class Diagrams (College 2003)Irene Tosch
 
Case studies use cases ASE
Case studies  use cases ASECase studies  use cases ASE
Case studies use cases ASEbabak danyal
 
Uml tutorial (1) (1)
Uml tutorial (1) (1)Uml tutorial (1) (1)
Uml tutorial (1) (1)IIUM
 
Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagramsjsm1979
 
Activity diagram tutorial part 2
Activity diagram tutorial part 2Activity diagram tutorial part 2
Activity diagram tutorial part 2Declan Chellar
 
Hotel Management System
Hotel Management SystemHotel Management System
Hotel Management SystemAdil Ayyaz
 
Use Case diagram-UML diagram-2
Use Case diagram-UML diagram-2Use Case diagram-UML diagram-2
Use Case diagram-UML diagram-2Ramakant Soni
 
Mail server PPT By Mukesh
Mail server PPT By MukeshMail server PPT By Mukesh
Mail server PPT By MukeshMukesh Kumar
 

Viewers also liked (20)

Online Banking Project
Online Banking ProjectOnline Banking Project
Online Banking Project
 
Sequence Diagram of Hotel Management System
Sequence Diagram of Hotel Management SystemSequence Diagram of Hotel Management System
Sequence Diagram of Hotel Management System
 
Component and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewComponent and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief Overview
 
Uml diagram for_hospital_management_system
Uml diagram for_hospital_management_systemUml diagram for_hospital_management_system
Uml diagram for_hospital_management_system
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
SYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMSYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEM
 
java Project report online banking system
java Project report online banking systemjava Project report online banking system
java Project report online banking system
 
UML Use Case & Class Diagrams (College 2003)
UML Use Case & Class Diagrams (College 2003)UML Use Case & Class Diagrams (College 2003)
UML Use Case & Class Diagrams (College 2003)
 
Case studies use cases ASE
Case studies  use cases ASECase studies  use cases ASE
Case studies use cases ASE
 
Uml tutorial (1) (1)
Uml tutorial (1) (1)Uml tutorial (1) (1)
Uml tutorial (1) (1)
 
Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagrams
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Activity diagram tutorial part 2
Activity diagram tutorial part 2Activity diagram tutorial part 2
Activity diagram tutorial part 2
 
Hotel Management System
Hotel Management SystemHotel Management System
Hotel Management System
 
2 class use case
2 class use case2 class use case
2 class use case
 
Uml sequence diagrams
Uml sequence diagramsUml sequence diagrams
Uml sequence diagrams
 
Use Case diagram-UML diagram-2
Use Case diagram-UML diagram-2Use Case diagram-UML diagram-2
Use Case diagram-UML diagram-2
 
Sequence diagrams
Sequence diagramsSequence diagrams
Sequence diagrams
 
Emall
EmallEmall
Emall
 
Mail server PPT By Mukesh
Mail server PPT By MukeshMail server PPT By Mukesh
Mail server PPT By Mukesh
 

Similar to UML Diagram @ Software engineering discussion

Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagramsbabak danyal
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction DiagramNiloy Rocker
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral ModelingAMITJain879
 
An introduction to uml
An introduction to umlAn introduction to uml
An introduction to umlTony Huynh
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialCreately
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.pptRAJESH S
 
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).pptxviju001
 
UML, ER and Dimensional Modelling
UML, ER and Dimensional ModellingUML, ER and Dimensional Modelling
UML, ER and Dimensional ModellingStefano Dalla Palma
 
Selab1 slides
Selab1 slidesSelab1 slides
Selab1 slidesSumedha
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramNikhil Pandit
 
Fundamentals of Software Engineering
Fundamentals of Software Engineering Fundamentals of Software Engineering
Fundamentals of Software Engineering Madhar Khan Pathan
 
UML Design Document Training Learn UML .pptx
UML Design Document Training Learn UML .pptxUML Design Document Training Learn UML .pptx
UML Design Document Training Learn UML .pptxraghavanp4
 
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejnejeUML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejnejessusera6a60c1
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLMalek Sumaiya
 

Similar to UML Diagram @ Software engineering discussion (20)

Chapter3
Chapter3Chapter3
Chapter3
 
Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagrams
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction Diagram
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral Modeling
 
An introduction to uml
An introduction to umlAn introduction to uml
An introduction to uml
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram Tutorial
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
 
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 lecture
Uml lectureUml lecture
Uml lecture
 
UML, ER and Dimensional Modelling
UML, ER and Dimensional ModellingUML, ER and Dimensional Modelling
UML, ER and Dimensional Modelling
 
Selab1 slides
Selab1 slidesSelab1 slides
Selab1 slides
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence Diagram
 
Fundamentals of Software Engineering
Fundamentals of Software Engineering Fundamentals of Software Engineering
Fundamentals of Software Engineering
 
UML Design Document Training Learn UML .pptx
UML Design Document Training Learn UML .pptxUML Design Document Training Learn UML .pptx
UML Design Document Training Learn UML .pptx
 
SMD Unit ii
SMD Unit iiSMD Unit ii
SMD Unit ii
 
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejnejeUML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
 
Uml report
Uml reportUml report
Uml report
 
OOSE UNIT-2.pdf
OOSE UNIT-2.pdfOOSE UNIT-2.pdf
OOSE UNIT-2.pdf
 
UML tutorial
UML tutorialUML tutorial
UML tutorial
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UML
 

More from CherryBerry2

Super Pilot Team Mini project
Super Pilot Team Mini projectSuper Pilot Team Mini project
Super Pilot Team Mini projectCherryBerry2
 
Histogram Equalization(Image Processing Presentation)
Histogram Equalization(Image Processing Presentation)Histogram Equalization(Image Processing Presentation)
Histogram Equalization(Image Processing Presentation)CherryBerry2
 
Probability Concept and Bayes Theorem
Probability Concept and Bayes TheoremProbability Concept and Bayes Theorem
Probability Concept and Bayes TheoremCherryBerry2
 
Type of data @ Web Mining Discussion
Type of data @ Web Mining DiscussionType of data @ Web Mining Discussion
Type of data @ Web Mining DiscussionCherryBerry2
 
Type of data @ web mining discussion
Type of data @ web mining discussionType of data @ web mining discussion
Type of data @ web mining discussionCherryBerry2
 
Concurrent Programming OpenMP @ Distributed System Discussion
Concurrent Programming OpenMP @ Distributed System DiscussionConcurrent Programming OpenMP @ Distributed System Discussion
Concurrent Programming OpenMP @ Distributed System DiscussionCherryBerry2
 
Strategic management presentation (group 3) (final)
Strategic management presentation (group  3) (final)Strategic management presentation (group  3) (final)
Strategic management presentation (group 3) (final)CherryBerry2
 
Strategic management presentation (group 3) (final)
Strategic management presentation (group  3) (final)Strategic management presentation (group  3) (final)
Strategic management presentation (group 3) (final)CherryBerry2
 
Thanlyan Star City (MBA internship programme)
Thanlyan Star City (MBA internship programme)Thanlyan Star City (MBA internship programme)
Thanlyan Star City (MBA internship programme)CherryBerry2
 
V kids Business Plan (15 batch Group 3)
V kids Business Plan (15 batch Group 3)V kids Business Plan (15 batch Group 3)
V kids Business Plan (15 batch Group 3)CherryBerry2
 
Myanmar pharmaceutical market and marketing mix activities of trading company
Myanmar pharmaceutical market and marketing mix activities of trading companyMyanmar pharmaceutical market and marketing mix activities of trading company
Myanmar pharmaceutical market and marketing mix activities of trading companyCherryBerry2
 

More from CherryBerry2 (13)

Super Pilot Team Mini project
Super Pilot Team Mini projectSuper Pilot Team Mini project
Super Pilot Team Mini project
 
General Aung San
General Aung SanGeneral Aung San
General Aung San
 
Histogram Equalization(Image Processing Presentation)
Histogram Equalization(Image Processing Presentation)Histogram Equalization(Image Processing Presentation)
Histogram Equalization(Image Processing Presentation)
 
Probability Concept and Bayes Theorem
Probability Concept and Bayes TheoremProbability Concept and Bayes Theorem
Probability Concept and Bayes Theorem
 
Type of data @ Web Mining Discussion
Type of data @ Web Mining DiscussionType of data @ Web Mining Discussion
Type of data @ Web Mining Discussion
 
Type of data @ web mining discussion
Type of data @ web mining discussionType of data @ web mining discussion
Type of data @ web mining discussion
 
Concurrent Programming OpenMP @ Distributed System Discussion
Concurrent Programming OpenMP @ Distributed System DiscussionConcurrent Programming OpenMP @ Distributed System Discussion
Concurrent Programming OpenMP @ Distributed System Discussion
 
Strategic management presentation (group 3) (final)
Strategic management presentation (group  3) (final)Strategic management presentation (group  3) (final)
Strategic management presentation (group 3) (final)
 
Strategic management presentation (group 3) (final)
Strategic management presentation (group  3) (final)Strategic management presentation (group  3) (final)
Strategic management presentation (group 3) (final)
 
Thanlyan Star City (MBA internship programme)
Thanlyan Star City (MBA internship programme)Thanlyan Star City (MBA internship programme)
Thanlyan Star City (MBA internship programme)
 
V kids Business Plan (15 batch Group 3)
V kids Business Plan (15 batch Group 3)V kids Business Plan (15 batch Group 3)
V kids Business Plan (15 batch Group 3)
 
Hurricane
HurricaneHurricane
Hurricane
 
Myanmar pharmaceutical market and marketing mix activities of trading company
Myanmar pharmaceutical market and marketing mix activities of trading companyMyanmar pharmaceutical market and marketing mix activities of trading company
Myanmar pharmaceutical market and marketing mix activities of trading company
 

Recently uploaded

Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZABSYZ Inc
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringHironori Washizaki
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf31events.com
 
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxUI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxAndreas Kunz
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentationvaddepallysandeep122
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
How To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTROHow To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTROmotivationalword821
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfStefano Stabellini
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)jennyeacort
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 

Recently uploaded (20)

Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZ
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their Engineering
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf
 
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxUI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentation
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
How To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTROHow To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTRO
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdf
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 

UML Diagram @ Software engineering discussion

  • 1. UML Diagrams by Hnin Thiri Chaw (9PhD-3) Free Powerpoint Templates
  • 2. • UML stand for “Unified Modeling Language”. • There are nine kind of diagram in UML 1. Use case diagrams 2. Class diagrams 3. Object diagrams 4. Sequence diagrams 5. Collaboration diagrams 6. Statechart diagrams 7. Activity diagrams 8. Component diagrams 9. Deployment diagrams
  • 3. • The communication among everyone involved in creating and deploying the software is critical in complicated System. • The software blueprint language for analysts, designers, and programmers alike. It isnow part of the software trade. • The UML gives everyone from business analyst to designer to programmer a common vocabulary to talk about software design. • The UML is applicable to object-oriented problem solving for the construction of a model. • Models consist of objects. Class • Classes are the "blueprints" for objects. • A class wraps attributes (data) and behaviors (methods or functions) into a single distinct entity. Objects are instances ofclasses.
  • 4. • Use case diagrams describe what a system does from the standpoint of an external observer. • The emphasis is on what a system does rather than how a system does. • Use case diagrams are closely connected to scenarios. • A scenario is an example of what happens when someone interacts with the system. Here is a scenario for a medical clinic. Scenario • "A patient calls the clinic to make an appointment for a yearly checkup. The receptionist finds the nearest empty time slot in the appointment book and schedules the appointment for that time slot.“ Use Case • A use case is a summary of scenarios for a single task or goal. • An actor is who or what initiates the events involved in that task. • Actors are simply roles that people or objects play.
  • 5. Figure: Make Appointment use case for the medical clinic. •The actor is a Patient. • The connection between actor and use case is a communication association(or communication for short). Use Case Notation •Actors are stick figures. •Use cases are ovals. •Communications are lines that link actors to use cases.
  • 6. Figure: Make Appointment use case for the medical clinic with four actors and four use cases. • A use case diagram is a collection of actors, use cases, and their communications. • A single use case can have multiple actors. • Use case diagrams are helpful in three areas. – determining features (requirements). New use cases often generate new requirements as the system is analyzed and the design takes shape. – communicating with clients. Their notational simplicity makes use case diagrams a good way for developers to communicate with clients. – generating test cases. The collection of scenarios for a use case may suggest a suite of test cases for those scenarios.
  • 7. Figure: A customer order from a retail catalog The central class is the Order. Associated with it are the Customer making the purchase and the Payment. A Payment is one of three kinds: Cash, Check, or Credit. The order contains OrderDetails (line items), each with its associated Item.
  • 8. • A Class diagram gives an overview of a system by showing its classes and the relationships among them. • Class diagrams are static -- they display what interacts but not what happens when they do interact. UML Class Notation • UML class notation is a rectangle divided into three parts: class name, attributes, and operations. • Names of abstract classes, such as Payment, are in italics. • Relationships between classes are the connecting links. • A navigability arrow on an association shows which direction the association can be traversed or queried. • The arrow also lets you know who "owns" the association's implementation; in this case, Order Detail has an Item. • Associations with no navigability arrows are bi-directional.
  • 9. • UML Class Notation • The multiplicity of an association end is the number of possible instances of the class associated with a single instance of the other end. • Multiplicities are single numbers or ranges of numbers. • In our example, there can be only one Customer for each Order, but a Customer can have any number of Orders. • This table gives the most common multiplicities. Multiplicities Meaning • 0..1 =>zero or one instance. • 0..* or * => no limit on the number of instances (including none). • 1 =>exactly one instance • 1..* => at least one instance • Every class diagram has classes, associations, and multiplicities. Navigability and roles are optional items placed in a diagram to provide clarity.
  • 10. Class Relationship • Our class diagram has three kinds of relationships. • 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. • In our diagram, Order has a collection of Order Details .(‘Has’) • Generalization -- an inheritance link indicating one class is a superclass of the other. • A generalization has a triangle pointing to the superclass. • Payment is a superclass of Cash, Check, and Credit(‘Is’). • An association has two ends. • An end may have a role name to clarify the nature of the association. • For example, an OrderDetail is a line item of each Order.
  • 11. • To simplify complex class diagrams, classes are grouped into packages. • A package is a collection of logically related UML elements. Package Notation • Packages appear as rectangles with small tabs at the top. • The package name is on the tab or inside the rectangle. • The dotted arrows are dependencies. • One package depends on another if changes in the other could possibly force changes in the first. Figure: Package Diagram of the Banking Business Model
  • 12. Figure: Object Diagram of the Department of University containing many subdepartment Object •Objects that interact by sending each other messages. Think of an object as "alive.“ • Objects have => (1) things they know (attributes) => (2)the things they can do (behaviors or operations). => (3)the values of an object's attributes determine its state(attribute’s value). •Object diagrams show instances instead of classes. •They are useful for explaining small pieces with complicated relationships, •especially recursive relationships. Object Notation Each rectangle in the object diagram corresponds to a single instance. Instance names are underlined in UML diagrams. Class or instance names may be omitted from object diagrams as long as the diagram meaning is still clear.
  • 13. •Class and object diagrams are static model views. •Interaction diagrams are dynamic. They describe how objects collaborate. •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. •The objects involved in the operation are listed from left to right according to when they take part in the message sequence.
  • 14. Figure: Sequence Diagram of the Making Hotel Reservation •The object initiating the sequence of messages is a Reservation window. •The Reservation window sends a makeReservation() message to a HotelChain. •The HotelChain then sends a makeReservation() message to a Hotel. If the Hotel has available rooms, then it makes a Reservation and a Confirmation. Sequence Notation •Each vertical dotted line is a lifeline, representing the time that an object exists. • Each arrow is a message call. An arrow goes from the sender to the top of the activation bar of the message on the receiver's lifeline. •The activation bar represents the duration of execution of the message. •In our diagram, the Hotel issues a self call to determine if a room is available. •If so, then the Hotel creates a Reservation and a Confirmation. • The asterisk on the self call means iteration (to make sure there is available room for each day of the stay in the hotel). • The expression in square brackets, [ ], is a condition. •The diagram has a clarifying note, which is text inside a dog-eared rectangle. •Notes can be put into any kind of UML diagram.
  • 15. Figure: Collaboration Diagram of the Making Hotel Reservation Collaboration diagrams • Collaboration diagrams are also interaction diagrams. • They convey the same information as sequence diagrams, but they focus on object roles instead of the times that messages are sent. Difference between Sequence and Collaboration Diagram • In a sequence diagram, object roles are the vertices and messages are the connecting links. The object-role rectangles are labeled with either class or object names (or both). Class names are preceded by colons ( : ). • Each message in a collaboration diagram has a sequence number. The top-level message is numbered 1. Messages at the same level (sent during the same call) have the same decimal prefix but suffixes of 1, 2, etc. according to when they occur.
  • 16. • Objects have behaviors and state. • The state of an object depends on its current activity or condition. • A statechart diagram shows the possible states of the object and the transitions that cause a change in state. State Diagram Notation • States are rounded rectangles. • Transitions are arrows from one state to another. Events or conditions that trigger transitions are written beside the arrows. Our diagram has two self-transition, one on Getting SSN and another on Getting PIN. • The initial state (black circle) is a dummy to start the action. • Final states are also dummy states that terminate the action. • The action that occurs as a result of an event or condition is expressed in the form /action. • While in its Validating state, the object does not wait for an outside event to trigger a transition. Instead, it performs an activity. • The result of that activity determines its subsequent state.
  • 17. Figure: State Diagram of the Login Part of Online Banking System • Our example diagram models the login part of an online banking system. Logging in consists of entering a valid social security number(SSN) and personal id number(PIN), thensubmitting the information for validation. • Logging in can be factored into four non-overlapping states: Getting SSN, Getting PIN, Validating, and Rejecting. From each state comes a complete set of transitions that determine the subsequent state.
  • 18. Figure: Activity Diagram Withdrawing Money from ATM For our example, we used the following process. "Withdraw money from a bank account through an ATM." The three involved classes (people, etc.) of the activity are Customer, ATM, and Bank.
  • 19. • An activity diagram is essentially a fancy flowchart. • Activity diagrams and state chart diagrams are related. Difference Between State Diagram and Activity Diagram • While a state diagram focuses attention on an object. • Activity diagram focuses on the flow of activities involved in a single process. • The activity diagram shows the how those activities depend on one another. Activity Diagram Notation • The activities are rounded rectangles. • The process begins at the black start circle at the top and ends at the concentric white/black stop circles at the bottom. • Activity diagrams can be divided into object swim lanes that determine which object is responsible for which activity. • A single transition comes out of each activity, connecting it to the next activity. • A transition may branch into two or more mutually exclusive transitions. • Guard expressions (inside [ ]) label the transitions coming out of a branch. • A branch and its subsequent merge marking the end of the branch appear in the diagram as hollow diamonds. • A transition may fork into two or more parallel activities. The fork and the subsequent join of the threads coming out of the fork appear in the diagram as solid bars.
  • 20. Deployment Diagram • Deployment diagrams show the physical configurations of software andhardware. • The deployment diagram shows the relationships among software and hardware components involved in real estate transactions. • The physical hardware is made up of nodes. Component Diagram • A component is a code module. Component diagrams are physical analogs of class diagram. • Each component belongs on a node. • Components are shown as rectangles with two tabs at the upper left.