SlideShare a Scribd company logo
UML DIAGRAMS
Presented by
Shweta Raj(48)
Pooja Singh(30)
Rishav Raj(39)
Jyoti Kumari(19)
Ashwani kr. Madhukar(10)
Content
 Use Case Diagram
 Class Diagram
 Interaction diagram
 Activity diagram
 Case Study
 References
 Questions 2
Use Case Diagram
 Dynamic in nature.
 It is used to model the system/subsystem of the application.
 Built in early stage of development and developed by analyst .
 Involves interaction between user and system.
Purpose of Use Case Diagram
 Specify the context of a system.
 Capture the requirement of system.
 Validate a system architecture.
Elements of Use Case Diagram and their
Representation
Actor :
 Someone who interacts with system.
 Actor triggers use case.
 Actor can be ranked on:
(i) primary
(ii) secondary
 It is represented by stick person.
Elements of Use Case Diagram and their
Representation (cont…)
Use Case:
• A set of sequence of action a system perform.
• A use case
- is always initiated by an actor.
- provides value to an actor.
 It is represented by ellipse.
Elements of Use Case Diagram and their
Representation (cont…)
Association :
 Connects an actor and the use case.
 Also known as communication relationship.
 It is represented by a line.
Boundary :
 Indicates the scope of system.
 Represented by rectangular box.
Linking Use Case
Association relationships
Generalization relationships
 One element (child) "is based on" another element
(parent)
parent
child
Linking Use Case (cont…)
Include relationships
 One use case (base) includes the functionality of another
(inclusion case)
 Supports re-use of functionality
Base included
<<include>>
Linking Use Case (cont…)
Extend relationships
 One use case (extension) extends the behaviour of another(base)
Base
Common
use case
<<extends>>
Class Diagram
 Class diagram is a static diagram.
 Class diagram used for different aspects of a system.
 The class diagram describe the attributes and operations of a class.
 It is also known as structural diagram.
PURPOSE OF CLASS DIAGRAM
 It model the static view of application.
 Showing the collaboration among the elements of the static view.
 Construction of software applications using object oriented language.
RELATIONSHIP FOR REPRESENTATION
OF CLASS
1). ASSOCIATION
 Association between two classes by drawing a straight line between the
concerned classes.
association
Class A class B
 Associaton simply states that there is some kind of a
link or a dependency between two classes or more.
2).AGGREGATION
 Aggregation is a special type of association relation where the involved
classes are not only associated to each other but a whole part
relationship exist between them.
 It can be represented by an empty diamond symbol.
 Aggregation is also known as shared association.
 Notation
3).COMPOSITION
 Composition is stricter form of aggregation .
 Here , the parts are existence dependence on whole.
 The lifeline of the whole and the parts are identical.
 Notation
CLASS DIAGRAM EXAMPLE
Interaction diagram
 Overview
 Purpose
 How to draw interaction diagram
 The sequence diagram
 The collaboration diagram
Overview
I. From the name interaction it is clear
II. This interactive behaviour is represented in UML two
types diagram
a. Sequence diagram
b. Collaboration diagram
III. The basic purposes of both the diagram are similar.
Purpose
 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
CUSTOMER
PRODUCT
Now we have 2 types of interaction diagram in
UML:
1) Sequence diagram
2) Collaboration diagram
Some key points:
 Dashed lines represent the duration for which the object will be live
 Messages sent from a object is represented by dark arrow
 Return message are represented by dotted arrow
 Message are denoted by an arrow or sequence number
 Objects are represented in rectangles
 Conditional statements are denoted by square brackets
 The sources of an arrow indicates the activations which sent the message
1) Sequence diagram
• Sequence diagrams are used to capture the order of messages
flowing from one object to another
2) Collaboration diagram
• The collaboration diagrams are used to describe the structural
organizations of the objects taking part in the interaction
Activity diagram
 Overview
 Purpose
 Activity diagram-notation
 Example of activity diagram
 Usage of activity diagram
Activity diagram
 Activity diagram is an important diagram in UML to describe dynamic
aspects of the system.
 Activity diagram is basically a flow chart to represent the flow from one
activity to another activity.
 Activity is a particular operation of system.
 Activity diagram are mainly used as a flowchart consists of activities
performed by the system.
Purpose of activity diagram
 Draw the activity flow of system.
 Describe the sequence from one activity to another.
 Describe the parallel , branched and concurrent flow of system.
Activity Diagram-Notations
 Initial Activity: Shows the starting point or first activity of the flow.
Denoted by a solid circle. This is similar to the notation used for Initial
State.
 Activity: Rectangle with rounded edges.
 Decisions: a logic where a decision is to be made is depicted by a
diamond, with options written on either sides of the arrows emerging
from the diamond, within box brackets
• Signal: When an activity sends or receives a message, that activity is
called a signal. Two types of Signals
• Input - Message receiving shown by a concave polygon
• Output -Message sending shown by a convex polygon
• Concurrent Activities: Some activities occur simultaneously or in
parallel and are called concurrent activities.
• Final Activity: The end of the Activity diagram is shown
• by a bull's eye symbol.
Example of Activity diagram:
Usage of activity diagram:
 Modeling work flow by using activities.
 Modeling business requirements.
 High level understanding of the systems functionalities.
 Investigate business requirements at a later stage.
Case Study
ATM Use Case – Withdraw Cash - Text
Brief Description :
 This use case describes how the Bank Customer uses the ATM to withdraw
money from his/her bank account.
Actors :
 Primary Actor : Bank Customer
 Secondary Actor : Bank
Preconditions :
 There is an active network connection to the Bank.
 The ATM has cash available.
ATM Use Case – Withdraw Cash - Text
Basic Flow of Events :
 Bank Customer inserts their Bank Card.
 Use Case: Validate User is performed.
 The ATM displays the different alternatives that are available on this unit. In this case the
Bank Customer always selects “Withdraw Cash”.
 The ATM prompts for an account
 The Bank Customer selects an account.
 The ATM prompts for an amount.
 The Bank Customer enters an amount.
 Card ID, PIN, amount and account is sent to Bank as a transaction. The Bank Consortium
replies with a go/no go reply telling if the transaction is ok.
 Then money is dispensed
 The Bank Card is returned.
 The receipt is printed
 The use case ends successfully
ATM Use Case…Alternate Flows
 Invalid User
 If Validate User does not complete successfully, then the use case ends with a failure condition
 Wrong amount
 The entered amount must be multiple of 100.
 The use case resumes at that step and ask the user to renter the amount.
 Amount Exceeds Withdrawal Limit
 Message : The amount entered is above the limit.
 Amount Exceeds Daily Withdrawal Limit
 Message : The amount entered is above the daily limit.
ATM Use Case – Alternate Flow (Cont’d)
 Insufficient Cash
 If the ATM runs out of money.
 If the user doesn’t have enough money in his account.
 No Response from Bank
 If in step 8 of the basic there is no response from the Bank in 3 seconds then the reasons may be
 Reasons : Network unavailable.
: System failier.
 Money Not Removed
 Message : Please remove the cash.
 Quit
 If at any point customer selects the Quit option.
 Atm shall print a receipt indicating the transaction was cancelled.
 Atm retuens the card.
ATM Use Case - Post Condition, Special
Requirements
Successful Completion
 The user has received their cash and the internal logs have been updated.
Failure Condition
 The logs have been updated accordingly.
Special Requirements
 The ATM shall dispense cash in multiples of Rs. 100
 The maximum individual withdrawal is Rs. 15000 per day
 The ATM shall capture an image of the person logging into the system
 The ATM shall keep a log, including date and time, of all complete and incomplete
transactions with the Bank.
customer
Bank
Transactions
View Balance
Change Pin
Withdraw
Deposit
Transfer
Authenticate
user
Cash Dispenser
empty
Money not
removed
<<extends>>
Invalid user
Wrong Amount Withdrawal limit
exceed
Insufficient Funds
UC Diagram – ATM Example
Sequence Diagram - ATM Example
ATM Example – Activity Diagram
References
Books
 Fundamentals of Software Engineering
 by Rajib Mall
Website
 www.tutorialpoint.com
 www.studytonight.com
QUESTIONS
? 41

More Related Content

What's hot

Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
Ashesh R
 
Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9koolkampus
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
Ashita Agrawal
 
Time Table Reminder Andorid App SRS
Time Table Reminder Andorid App SRSTime Table Reminder Andorid App SRS
Time Table Reminder Andorid App SRS
Anjali Agrawal
 
Software Requirements in Software Engineering SE5
Software Requirements in Software Engineering SE5Software Requirements in Software Engineering SE5
Software Requirements in Software Engineering SE5koolkampus
 
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
Malek Sumaiya
 
Waterfall model in Software engineering
Waterfall model in Software engineeringWaterfall model in Software engineering
Waterfall model in Software engineeringEhtesham Mehmood
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online Store
Ahsan Rizwan
 
SRS for online examination system
SRS for online examination systemSRS for online examination system
SRS for online examination system
lunarrain
 
Srs document
Srs documentSrs document
Srs document
Saqib Malik
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagrams
Baskarkncet
 
Uml use case diagram 2
Uml use case diagram 2Uml use case diagram 2
Uml use case diagram 2
Sally Jarkas
 
Object oriented modeling and design
Object oriented modeling and designObject oriented modeling and design
Object oriented modeling and design
jayashri kolekar
 
Unit iii(part b - architectural design)
Unit   iii(part b - architectural design)Unit   iii(part b - architectural design)
Unit iii(part b - architectural design)
BALAJI A
 
Use case-diagrams
Use case-diagramsUse case-diagrams
Use case-diagrams
Maoelana Noermoehammad
 
Spiral model explanation
Spiral model  explanationSpiral model  explanation
Spiral model explanation
Umar Farooq
 
Lecture11 use case sequence diagram
Lecture11 use case sequence diagramLecture11 use case sequence diagram
Lecture11 use case sequence diagram
Shahid Riaz
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
Kartik Raghuvanshi
 
Modules and modularization criteria
Modules and modularization criteriaModules and modularization criteria
Modules and modularization criteria
Umaselvi_R
 

What's hot (20)

Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 
Time Table Reminder Andorid App SRS
Time Table Reminder Andorid App SRSTime Table Reminder Andorid App SRS
Time Table Reminder Andorid App SRS
 
Software Requirements in Software Engineering SE5
Software Requirements in Software Engineering SE5Software Requirements in Software Engineering SE5
Software Requirements in Software Engineering SE5
 
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
 
Waterfall model in Software engineering
Waterfall model in Software engineeringWaterfall model in Software engineering
Waterfall model in Software engineering
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online Store
 
SRS for online examination system
SRS for online examination systemSRS for online examination system
SRS for online examination system
 
Srs document
Srs documentSrs document
Srs document
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagrams
 
Uml use case diagram 2
Uml use case diagram 2Uml use case diagram 2
Uml use case diagram 2
 
Object oriented modeling and design
Object oriented modeling and designObject oriented modeling and design
Object oriented modeling and design
 
Unit iii(part b - architectural design)
Unit   iii(part b - architectural design)Unit   iii(part b - architectural design)
Unit iii(part b - architectural design)
 
Use case-diagrams
Use case-diagramsUse case-diagrams
Use case-diagrams
 
Spiral model explanation
Spiral model  explanationSpiral model  explanation
Spiral model explanation
 
Lecture11 use case sequence diagram
Lecture11 use case sequence diagramLecture11 use case sequence diagram
Lecture11 use case sequence diagram
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Modules and modularization criteria
Modules and modularization criteriaModules and modularization criteria
Modules and modularization criteria
 

Viewers also liked

Case Study on BOP.CRM
Case Study on BOP.CRMCase Study on BOP.CRM
Case Study on BOP.CRM
Ahmad Mehmood
 
08 ooad uml-10
08 ooad uml-1008 ooad uml-10
08 ooad uml-10Niit Care
 
10 ooad uml-13
10 ooad uml-1310 ooad uml-13
10 ooad uml-13Niit Care
 
Ooad 3
Ooad 3Ooad 3
Seq uml
Seq umlSeq uml
Use Case Diagram Templates by Creately
Use Case Diagram Templates by CreatelyUse Case Diagram Templates by Creately
Use Case Diagram Templates by Creately
Creately
 
Atm Simulator
Atm SimulatorAtm Simulator
Atm Simulator
Syed Jamil
 
UML daigrams for Bank ATM system
UML daigrams for Bank ATM systemUML daigrams for Bank ATM system
UML daigrams for Bank ATM system
Ramakant Soni
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
Kumar
 
موقع سلايد شير
موقع سلايد شيرموقع سلايد شير
موقع سلايد شيرMohamed Elshazly
 
High protection ATM system with fingerprint identification technology
High protection ATM system with fingerprint identification technologyHigh protection ATM system with fingerprint identification technology
High protection ATM system with fingerprint identification technology
Alfred Oboi
 
10 Slides to ATM
10 Slides to ATM10 Slides to ATM
10 Slides to ATM
seanraz
 

Viewers also liked (14)

40120130406002
4012013040600240120130406002
40120130406002
 
Case Study on BOP.CRM
Case Study on BOP.CRMCase Study on BOP.CRM
Case Study on BOP.CRM
 
08 ooad uml-10
08 ooad uml-1008 ooad uml-10
08 ooad uml-10
 
10 ooad uml-13
10 ooad uml-1310 ooad uml-13
10 ooad uml-13
 
Ooad 3
Ooad 3Ooad 3
Ooad 3
 
Seq uml
Seq umlSeq uml
Seq uml
 
Use Case Diagram Templates by Creately
Use Case Diagram Templates by CreatelyUse Case Diagram Templates by Creately
Use Case Diagram Templates by Creately
 
Atm Simulator
Atm SimulatorAtm Simulator
Atm Simulator
 
UML daigrams for Bank ATM system
UML daigrams for Bank ATM systemUML daigrams for Bank ATM system
UML daigrams for Bank ATM system
 
Intro Uml
Intro UmlIntro Uml
Intro Uml
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
موقع سلايد شير
موقع سلايد شيرموقع سلايد شير
موقع سلايد شير
 
High protection ATM system with fingerprint identification technology
High protection ATM system with fingerprint identification technologyHigh protection ATM system with fingerprint identification technology
High protection ATM system with fingerprint identification technology
 
10 Slides to ATM
10 Slides to ATM10 Slides to ATM
10 Slides to ATM
 

Similar to Use case model

Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral Modeling
AMITJain879
 
Basic behavioral modeling chapter 3 of OMD
Basic behavioral modeling chapter 3 of OMDBasic behavioral modeling chapter 3 of OMD
Basic behavioral modeling chapter 3 of OMD
jayashri kolekar
 
UML.pptx
UML.pptxUML.pptx
UML.pptx
RAJESH S
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)
Manoj Reddy
 
UML Diagrams
UML  DiagramsUML  Diagrams
UML Diagrams
Rahul Pola
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
RAJESH S
 
usecase (1).pptx
usecase (1).pptxusecase (1).pptx
usecase (1).pptx
Nadir438180
 
Use Case Diagram.pptx
Use Case Diagram.pptxUse Case Diagram.pptx
Use Case Diagram.pptx
Genta Sahuri
 
uml.ppt
uml.pptuml.ppt
uml.ppt
AnilKumarARS
 
SE_Lec 08_UML Use Cases
SE_Lec 08_UML Use CasesSE_Lec 08_UML Use Cases
SE_Lec 08_UML Use Cases
Amr E. Mohamed
 
Software Engineering Tools and Practices.pdf
Software Engineering Tools and Practices.pdfSoftware Engineering Tools and Practices.pdf
Software Engineering Tools and Practices.pdf
MeagGhn
 
OOSE UNIT-2.pdf
OOSE UNIT-2.pdfOOSE UNIT-2.pdf
OOSE UNIT-2.pdf
KarumuriJayasri
 
4. UML
4. UML4. UML
Online spice selling report1
Online spice selling report1Online spice selling report1
Online spice selling report1
manasvi sarkar
 

Similar to Use case model (20)

Jar chapter 4, part 1
Jar chapter 4, part 1Jar chapter 4, part 1
Jar chapter 4, part 1
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral Modeling
 
Basic behavioral modeling chapter 3 of OMD
Basic behavioral modeling chapter 3 of OMDBasic behavioral modeling chapter 3 of OMD
Basic behavioral modeling chapter 3 of OMD
 
UML.pptx
UML.pptxUML.pptx
UML.pptx
 
Chapter5
Chapter5Chapter5
Chapter5
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)
 
UML Diagrams
UML  DiagramsUML  Diagrams
UML Diagrams
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
 
usecase (1).pptx
usecase (1).pptxusecase (1).pptx
usecase (1).pptx
 
Jar chapter 3
Jar chapter 3Jar chapter 3
Jar chapter 3
 
Use Case Diagram.pptx
Use Case Diagram.pptxUse Case Diagram.pptx
Use Case Diagram.pptx
 
uml.ppt
uml.pptuml.ppt
uml.ppt
 
Jar chapter 4_part_ii
Jar chapter 4_part_iiJar chapter 4_part_ii
Jar chapter 4_part_ii
 
SE_Lec 08_UML Use Cases
SE_Lec 08_UML Use CasesSE_Lec 08_UML Use Cases
SE_Lec 08_UML Use Cases
 
Software Engineering Tools and Practices.pdf
Software Engineering Tools and Practices.pdfSoftware Engineering Tools and Practices.pdf
Software Engineering Tools and Practices.pdf
 
OOSE UNIT-2.pdf
OOSE UNIT-2.pdfOOSE UNIT-2.pdf
OOSE UNIT-2.pdf
 
chapter_5_5.ppt
chapter_5_5.pptchapter_5_5.ppt
chapter_5_5.ppt
 
4. UML
4. UML4. UML
4. UML
 
Use Case Modeling
Use Case ModelingUse Case Modeling
Use Case Modeling
 
Online spice selling report1
Online spice selling report1Online spice selling report1
Online spice selling report1
 

Recently uploaded

Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 

Use case model

  • 1. UML DIAGRAMS Presented by Shweta Raj(48) Pooja Singh(30) Rishav Raj(39) Jyoti Kumari(19) Ashwani kr. Madhukar(10)
  • 2. Content  Use Case Diagram  Class Diagram  Interaction diagram  Activity diagram  Case Study  References  Questions 2
  • 3. Use Case Diagram  Dynamic in nature.  It is used to model the system/subsystem of the application.  Built in early stage of development and developed by analyst .  Involves interaction between user and system.
  • 4. Purpose of Use Case Diagram  Specify the context of a system.  Capture the requirement of system.  Validate a system architecture.
  • 5. Elements of Use Case Diagram and their Representation Actor :  Someone who interacts with system.  Actor triggers use case.  Actor can be ranked on: (i) primary (ii) secondary  It is represented by stick person.
  • 6. Elements of Use Case Diagram and their Representation (cont…) Use Case: • A set of sequence of action a system perform. • A use case - is always initiated by an actor. - provides value to an actor.  It is represented by ellipse.
  • 7. Elements of Use Case Diagram and their Representation (cont…) Association :  Connects an actor and the use case.  Also known as communication relationship.  It is represented by a line. Boundary :  Indicates the scope of system.  Represented by rectangular box.
  • 8. Linking Use Case Association relationships Generalization relationships  One element (child) "is based on" another element (parent) parent child
  • 9. Linking Use Case (cont…) Include relationships  One use case (base) includes the functionality of another (inclusion case)  Supports re-use of functionality Base included <<include>>
  • 10. Linking Use Case (cont…) Extend relationships  One use case (extension) extends the behaviour of another(base) Base Common use case <<extends>>
  • 11. Class Diagram  Class diagram is a static diagram.  Class diagram used for different aspects of a system.  The class diagram describe the attributes and operations of a class.  It is also known as structural diagram.
  • 12. PURPOSE OF CLASS DIAGRAM  It model the static view of application.  Showing the collaboration among the elements of the static view.  Construction of software applications using object oriented language.
  • 13. RELATIONSHIP FOR REPRESENTATION OF CLASS 1). ASSOCIATION  Association between two classes by drawing a straight line between the concerned classes. association Class A class B  Associaton simply states that there is some kind of a link or a dependency between two classes or more.
  • 14. 2).AGGREGATION  Aggregation is a special type of association relation where the involved classes are not only associated to each other but a whole part relationship exist between them.  It can be represented by an empty diamond symbol.  Aggregation is also known as shared association.  Notation
  • 15. 3).COMPOSITION  Composition is stricter form of aggregation .  Here , the parts are existence dependence on whole.  The lifeline of the whole and the parts are identical.  Notation
  • 17. Interaction diagram  Overview  Purpose  How to draw interaction diagram  The sequence diagram  The collaboration diagram
  • 18. Overview I. From the name interaction it is clear II. This interactive behaviour is represented in UML two types diagram a. Sequence diagram b. Collaboration diagram III. The basic purposes of both the diagram are similar.
  • 19. Purpose  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 CUSTOMER PRODUCT
  • 20. Now we have 2 types of interaction diagram in UML: 1) Sequence diagram 2) Collaboration diagram
  • 21. Some key points:  Dashed lines represent the duration for which the object will be live  Messages sent from a object is represented by dark arrow  Return message are represented by dotted arrow  Message are denoted by an arrow or sequence number  Objects are represented in rectangles  Conditional statements are denoted by square brackets  The sources of an arrow indicates the activations which sent the message
  • 22. 1) Sequence diagram • Sequence diagrams are used to capture the order of messages flowing from one object to another
  • 23. 2) Collaboration diagram • The collaboration diagrams are used to describe the structural organizations of the objects taking part in the interaction
  • 24. Activity diagram  Overview  Purpose  Activity diagram-notation  Example of activity diagram  Usage of activity diagram
  • 25. Activity diagram  Activity diagram is an important diagram in UML to describe dynamic aspects of the system.  Activity diagram is basically a flow chart to represent the flow from one activity to another activity.  Activity is a particular operation of system.  Activity diagram are mainly used as a flowchart consists of activities performed by the system.
  • 26. Purpose of activity diagram  Draw the activity flow of system.  Describe the sequence from one activity to another.  Describe the parallel , branched and concurrent flow of system.
  • 27. Activity Diagram-Notations  Initial Activity: Shows the starting point or first activity of the flow. Denoted by a solid circle. This is similar to the notation used for Initial State.  Activity: Rectangle with rounded edges.  Decisions: a logic where a decision is to be made is depicted by a diamond, with options written on either sides of the arrows emerging from the diamond, within box brackets
  • 28. • Signal: When an activity sends or receives a message, that activity is called a signal. Two types of Signals • Input - Message receiving shown by a concave polygon • Output -Message sending shown by a convex polygon • Concurrent Activities: Some activities occur simultaneously or in parallel and are called concurrent activities. • Final Activity: The end of the Activity diagram is shown • by a bull's eye symbol.
  • 30. Usage of activity diagram:  Modeling work flow by using activities.  Modeling business requirements.  High level understanding of the systems functionalities.  Investigate business requirements at a later stage.
  • 32. ATM Use Case – Withdraw Cash - Text Brief Description :  This use case describes how the Bank Customer uses the ATM to withdraw money from his/her bank account. Actors :  Primary Actor : Bank Customer  Secondary Actor : Bank Preconditions :  There is an active network connection to the Bank.  The ATM has cash available.
  • 33. ATM Use Case – Withdraw Cash - Text Basic Flow of Events :  Bank Customer inserts their Bank Card.  Use Case: Validate User is performed.  The ATM displays the different alternatives that are available on this unit. In this case the Bank Customer always selects “Withdraw Cash”.  The ATM prompts for an account  The Bank Customer selects an account.  The ATM prompts for an amount.  The Bank Customer enters an amount.  Card ID, PIN, amount and account is sent to Bank as a transaction. The Bank Consortium replies with a go/no go reply telling if the transaction is ok.  Then money is dispensed  The Bank Card is returned.  The receipt is printed  The use case ends successfully
  • 34. ATM Use Case…Alternate Flows  Invalid User  If Validate User does not complete successfully, then the use case ends with a failure condition  Wrong amount  The entered amount must be multiple of 100.  The use case resumes at that step and ask the user to renter the amount.  Amount Exceeds Withdrawal Limit  Message : The amount entered is above the limit.  Amount Exceeds Daily Withdrawal Limit  Message : The amount entered is above the daily limit.
  • 35. ATM Use Case – Alternate Flow (Cont’d)  Insufficient Cash  If the ATM runs out of money.  If the user doesn’t have enough money in his account.  No Response from Bank  If in step 8 of the basic there is no response from the Bank in 3 seconds then the reasons may be  Reasons : Network unavailable. : System failier.  Money Not Removed  Message : Please remove the cash.  Quit  If at any point customer selects the Quit option.  Atm shall print a receipt indicating the transaction was cancelled.  Atm retuens the card.
  • 36. ATM Use Case - Post Condition, Special Requirements Successful Completion  The user has received their cash and the internal logs have been updated. Failure Condition  The logs have been updated accordingly. Special Requirements  The ATM shall dispense cash in multiples of Rs. 100  The maximum individual withdrawal is Rs. 15000 per day  The ATM shall capture an image of the person logging into the system  The ATM shall keep a log, including date and time, of all complete and incomplete transactions with the Bank.
  • 37. customer Bank Transactions View Balance Change Pin Withdraw Deposit Transfer Authenticate user Cash Dispenser empty Money not removed <<extends>> Invalid user Wrong Amount Withdrawal limit exceed Insufficient Funds UC Diagram – ATM Example
  • 38. Sequence Diagram - ATM Example
  • 39. ATM Example – Activity Diagram
  • 40. References Books  Fundamentals of Software Engineering  by Rajib Mall Website  www.tutorialpoint.com  www.studytonight.com

Editor's Notes

  1. Ignore