SlideShare a Scribd company logo
1 of 25
Download to read offline
System Modeling
elliot attipoe
www.ucc.edu.gh
Objectives
• To understand how graphical models can be
used to represent software systems.
• To understand why different types of model
are required for system development.
• To introduce you to some of the diagram types
in the Unified Modeling Language (UML).
www.ucc.edu.gh
System Modeling
• System modeling is the process of developing
abstract models of a system.
• Types of models
– External perspective
– Interaction perspective
– Structural perspective
– Behavioral perspective
www.ucc.edu.gh
Unified Modeling Language (UML)
• A tool for developing models.
www.ucc.edu.gh
UML diagram types
1. Activity diagrams - which show the activities involved
in a process or in data processing.
2. Use case diagrams - which show the interactions
between a system and its environment.
3. Sequence diagrams - which show interactions
between actors and the system and between system
components.
4. Class diagrams - which show the object classes in the
system and the associations between these classes.
5. State diagrams - which show how the system reacts
to internal and external events.
www.ucc.edu.gh
Activity Diagram – ATM example
www.ucc.edu.gh
Use case modeling
• A Use-case specifies the behaviour of a system
or part of a system.
• They focus on the interaction different users
have with the system from the user’s point of
view.
• This helps uncover requirements in a way that
clients find easy to understand.
www.ucc.edu.gh
Formal Definitions
• Actor
– A role that a user can play.
– Examples: instructor, advisor, student.
– Actors do not have to be human.
– An actor is always outside of the system boundary, an
external entity.
• Use Cases
– Actions on a systeminitiated by an actor.
– These are the main tasks performed by each actor.
– Use cases represent complete functionality of a task.
www.ucc.edu.gh
Scenario: ATM system
• Identify the users of the system and their
roles?
• Customer – check balance, deposit, withdraw,
transfer
• Bank staff – can do all that plus adding money
and paper, repair
www.ucc.edu.gh
www.ucc.edu.gh
UCC registration system
• Actors
– Registration officers
– Student
– Faculty officer
– Registration staff
– Accounts
– Hall porters
www.ucc.edu.gh
Online Shopping System
• Identify actors and their use cases
www.ucc.edu.gh
Actor : Customer
www.ucc.edu.gh
Actor : Admin
www.ucc.edu.gh
<<extend>> relationship
www.ucc.edu.gh
<<include>> relationship
www.ucc.edu.gh
<<include>> and <<extend>> relationship
www.ucc.edu.gh
Question
• A tour operator takes bookings for people who would like to tour cities by
bicycle. She employs people familiar with the local area to take groups to
interesting locations. The bookings are taken via the internet and phone,
as well as from people walking up to her office. Each tour group runs once
a day, starting from a fixed location at 9:00am. If there is a larger group
than can be handled by one tour leader the group is split and another tour
is taken at 10am by a second tour leader who is contacted as soon as the
group size exceeds a certain size.
• People have to pay before the tour starts at which point they are given a
bicycle owned by the company. They have to pay a deposit for the bicycle
which is refundable at the end of the tour.
• At the end of each day the bicycles are checked for any damage, and
repaired if necessary.
• Identify the use cases and actors that are applicable for this business.
www.ucc.edu.gh
Demo on use case
www.ucc.edu.gh
Sequence Diagram
• Sequence diagram is use to model the
interactions between the actors and the
objects in a system.
www.ucc.edu.gh
Model login
www.ucc.edu.gh
Sequence diagram for login
www.ucc.edu.gh
ATM machine – insert card
www.ucc.edu.gh
ATM – withdraw (sequence diagram)
www.ucc.edu.gh
www.ucc.edu.gh

More Related Content

Viewers also liked

Alumni portal ppt for projects
Alumni portal ppt for projectsAlumni portal ppt for projects
Alumni portal ppt for projectsShanker Goud
 
Example for SDS document in Software engineering
Example for SDS document in Software engineeringExample for SDS document in Software engineering
Example for SDS document in Software engineeringRavi Yasas
 
automated teller machines
automated teller  machinesautomated teller  machines
automated teller machinestejinderubs
 
10 Slides to ATM
10 Slides to ATM10 Slides to ATM
10 Slides to ATMseanraz
 
State diagram railway reservation system
State diagram railway reservation systemState diagram railway reservation system
State diagram railway reservation systemmuthumeenakshim
 
Course registration system dfd
Course registration system dfdCourse registration system dfd
Course registration system dfdUtsav mistry
 
E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!
E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!
E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!Nidhi Kakani
 
Alumni management
Alumni managementAlumni management
Alumni managementGagan Gupta
 
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...Mohammad Karim Shahbaz
 
Online examination system
Online examination systemOnline examination system
Online examination systemAj Maurya
 
Project report-on-student-information-management-system-php-mysql
Project report-on-student-information-management-system-php-mysqlProject report-on-student-information-management-system-php-mysql
Project report-on-student-information-management-system-php-mysqlRaj Sharma
 

Viewers also liked (14)

Alumni portal ppt for projects
Alumni portal ppt for projectsAlumni portal ppt for projects
Alumni portal ppt for projects
 
Ooad unit – 1 introduction
Ooad unit – 1 introductionOoad unit – 1 introduction
Ooad unit – 1 introduction
 
Example for SDS document in Software engineering
Example for SDS document in Software engineeringExample for SDS document in Software engineering
Example for SDS document in Software engineering
 
automated teller machines
automated teller  machinesautomated teller  machines
automated teller machines
 
Online final report
Online final reportOnline final report
Online final report
 
ATM Banking
ATM BankingATM Banking
ATM Banking
 
10 Slides to ATM
10 Slides to ATM10 Slides to ATM
10 Slides to ATM
 
State diagram railway reservation system
State diagram railway reservation systemState diagram railway reservation system
State diagram railway reservation system
 
Course registration system dfd
Course registration system dfdCourse registration system dfd
Course registration system dfd
 
E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!
E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!
E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!
 
Alumni management
Alumni managementAlumni management
Alumni management
 
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
 
Online examination system
Online examination systemOnline examination system
Online examination system
 
Project report-on-student-information-management-system-php-mysql
Project report-on-student-information-management-system-php-mysqlProject report-on-student-information-management-system-php-mysql
Project report-on-student-information-management-system-php-mysql
 

Similar to Lesson 4 system modeling

Software Engineering : OOAD using UML
Software Engineering : OOAD using UMLSoftware Engineering : OOAD using UML
Software Engineering : OOAD using UMLAjit Nayak
 
Simulation and Modelling Reading Notes.pptx
Simulation and Modelling  Reading Notes.pptxSimulation and Modelling  Reading Notes.pptx
Simulation and Modelling Reading Notes.pptxDanMuendo1
 
Traffic simulation
Traffic simulationTraffic simulation
Traffic simulationPraful -
 
82_PHOTOLAB-----Project PPT.pdfhejeenejsn
82_PHOTOLAB-----Project PPT.pdfhejeenejsn82_PHOTOLAB-----Project PPT.pdfhejeenejsn
82_PHOTOLAB-----Project PPT.pdfhejeenejsnshivam003d
 
Software engineering 16 systems concepts in software design
Software engineering 16 systems concepts in software designSoftware engineering 16 systems concepts in software design
Software engineering 16 systems concepts in software designVaibhav Khanna
 
SIMS DCM123.pptxdy tyryjhrnsrthrthrthrthrthrtr
SIMS DCM123.pptxdy tyryjhrnsrthrthrthrthrthrtrSIMS DCM123.pptxdy tyryjhrnsrthrthrthrthrthrtr
SIMS DCM123.pptxdy tyryjhrnsrthrthrthrthrthrtrmeharudindamo
 
Analysis modeling & scenario based modeling
Analysis modeling &  scenario based modeling Analysis modeling &  scenario based modeling
Analysis modeling & scenario based modeling Benazir Fathima
 
06 RE_use case diagm1.ppt
06 RE_use case diagm1.ppt06 RE_use case diagm1.ppt
06 RE_use case diagm1.pptaqsasarfraz11
 
Development of Intelligent Alumni Management System for Universities
Development of Intelligent Alumni Management System for Universities Development of Intelligent Alumni Management System for Universities
Development of Intelligent Alumni Management System for Universities Associate Professor in VSB Coimbatore
 
EDU 03 SEMINAR.pptx
EDU 03 SEMINAR.pptxEDU 03 SEMINAR.pptx
EDU 03 SEMINAR.pptxArdraSB
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
LECTURE 9 (Week 5) - Behavioral Diagrams.pptx
LECTURE 9 (Week 5) - Behavioral Diagrams.pptxLECTURE 9 (Week 5) - Behavioral Diagrams.pptx
LECTURE 9 (Week 5) - Behavioral Diagrams.pptxMuneerUmar3
 
Lec 1 computational modeling - Introduction.pdf
Lec 1 computational modeling - Introduction.pdfLec 1 computational modeling - Introduction.pdf
Lec 1 computational modeling - Introduction.pdfArwaAbdelHamid1
 
Lab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagramLab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagramFarah Ahmed
 
Introduction to simulation and modeling
Introduction to simulation and modelingIntroduction to simulation and modeling
Introduction to simulation and modelingantim19
 

Similar to Lesson 4 system modeling (20)

M 3 iot
M 3 iotM 3 iot
M 3 iot
 
Uml
UmlUml
Uml
 
Software Engineering : OOAD using UML
Software Engineering : OOAD using UMLSoftware Engineering : OOAD using UML
Software Engineering : OOAD using UML
 
Simulation and Modelling Reading Notes.pptx
Simulation and Modelling  Reading Notes.pptxSimulation and Modelling  Reading Notes.pptx
Simulation and Modelling Reading Notes.pptx
 
Lab 3
Lab 3Lab 3
Lab 3
 
Traffic simulation
Traffic simulationTraffic simulation
Traffic simulation
 
82_PHOTOLAB-----Project PPT.pdfhejeenejsn
82_PHOTOLAB-----Project PPT.pdfhejeenejsn82_PHOTOLAB-----Project PPT.pdfhejeenejsn
82_PHOTOLAB-----Project PPT.pdfhejeenejsn
 
Software engineering 16 systems concepts in software design
Software engineering 16 systems concepts in software designSoftware engineering 16 systems concepts in software design
Software engineering 16 systems concepts in software design
 
SIMS DCM123.pptxdy tyryjhrnsrthrthrthrthrthrtr
SIMS DCM123.pptxdy tyryjhrnsrthrthrthrthrthrtrSIMS DCM123.pptxdy tyryjhrnsrthrthrthrthrthrtr
SIMS DCM123.pptxdy tyryjhrnsrthrthrthrthrthrtr
 
Analysis modeling & scenario based modeling
Analysis modeling &  scenario based modeling Analysis modeling &  scenario based modeling
Analysis modeling & scenario based modeling
 
06 RE_use case diagm1.ppt
06 RE_use case diagm1.ppt06 RE_use case diagm1.ppt
06 RE_use case diagm1.ppt
 
Development of Intelligent Alumni Management System for Universities
Development of Intelligent Alumni Management System for Universities Development of Intelligent Alumni Management System for Universities
Development of Intelligent Alumni Management System for Universities
 
computer simulation.pptx
computer simulation.pptxcomputer simulation.pptx
computer simulation.pptx
 
EDU 03 SEMINAR.pptx
EDU 03 SEMINAR.pptxEDU 03 SEMINAR.pptx
EDU 03 SEMINAR.pptx
 
EDU-03.pptx
EDU-03.pptxEDU-03.pptx
EDU-03.pptx
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
LECTURE 9 (Week 5) - Behavioral Diagrams.pptx
LECTURE 9 (Week 5) - Behavioral Diagrams.pptxLECTURE 9 (Week 5) - Behavioral Diagrams.pptx
LECTURE 9 (Week 5) - Behavioral Diagrams.pptx
 
Lec 1 computational modeling - Introduction.pdf
Lec 1 computational modeling - Introduction.pdfLec 1 computational modeling - Introduction.pdf
Lec 1 computational modeling - Introduction.pdf
 
Lab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagramLab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagram
 
Introduction to simulation and modeling
Introduction to simulation and modelingIntroduction to simulation and modeling
Introduction to simulation and modeling
 

Recently uploaded

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Recently uploaded (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Lesson 4 system modeling

  • 2. Objectives • To understand how graphical models can be used to represent software systems. • To understand why different types of model are required for system development. • To introduce you to some of the diagram types in the Unified Modeling Language (UML). www.ucc.edu.gh
  • 3. System Modeling • System modeling is the process of developing abstract models of a system. • Types of models – External perspective – Interaction perspective – Structural perspective – Behavioral perspective www.ucc.edu.gh
  • 4. Unified Modeling Language (UML) • A tool for developing models. www.ucc.edu.gh
  • 5. UML diagram types 1. Activity diagrams - which show the activities involved in a process or in data processing. 2. Use case diagrams - which show the interactions between a system and its environment. 3. Sequence diagrams - which show interactions between actors and the system and between system components. 4. Class diagrams - which show the object classes in the system and the associations between these classes. 5. State diagrams - which show how the system reacts to internal and external events. www.ucc.edu.gh
  • 6. Activity Diagram – ATM example www.ucc.edu.gh
  • 7. Use case modeling • A Use-case specifies the behaviour of a system or part of a system. • They focus on the interaction different users have with the system from the user’s point of view. • This helps uncover requirements in a way that clients find easy to understand. www.ucc.edu.gh
  • 8. Formal Definitions • Actor – A role that a user can play. – Examples: instructor, advisor, student. – Actors do not have to be human. – An actor is always outside of the system boundary, an external entity. • Use Cases – Actions on a systeminitiated by an actor. – These are the main tasks performed by each actor. – Use cases represent complete functionality of a task. www.ucc.edu.gh
  • 9. Scenario: ATM system • Identify the users of the system and their roles? • Customer – check balance, deposit, withdraw, transfer • Bank staff – can do all that plus adding money and paper, repair www.ucc.edu.gh
  • 11. UCC registration system • Actors – Registration officers – Student – Faculty officer – Registration staff – Accounts – Hall porters www.ucc.edu.gh
  • 12. Online Shopping System • Identify actors and their use cases www.ucc.edu.gh
  • 17. <<include>> and <<extend>> relationship www.ucc.edu.gh
  • 18. Question • A tour operator takes bookings for people who would like to tour cities by bicycle. She employs people familiar with the local area to take groups to interesting locations. The bookings are taken via the internet and phone, as well as from people walking up to her office. Each tour group runs once a day, starting from a fixed location at 9:00am. If there is a larger group than can be handled by one tour leader the group is split and another tour is taken at 10am by a second tour leader who is contacted as soon as the group size exceeds a certain size. • People have to pay before the tour starts at which point they are given a bicycle owned by the company. They have to pay a deposit for the bicycle which is refundable at the end of the tour. • At the end of each day the bicycles are checked for any damage, and repaired if necessary. • Identify the use cases and actors that are applicable for this business. www.ucc.edu.gh
  • 19. Demo on use case www.ucc.edu.gh
  • 20. Sequence Diagram • Sequence diagram is use to model the interactions between the actors and the objects in a system. www.ucc.edu.gh
  • 22. Sequence diagram for login www.ucc.edu.gh
  • 23. ATM machine – insert card www.ucc.edu.gh
  • 24. ATM – withdraw (sequence diagram) www.ucc.edu.gh