Use Case Diagram Example

Slides:



Advertisements
Similar presentations
Use cases Use-cases are a scenario based technique in the UML which identify the actors in an interaction and which describe the interaction itself A set.
Advertisements

© 2010 Bennett, McRobb and Farmer1 Use Case Description Supplementary material to support Bennett, McRobb and Farmer: Object Oriented Systems Analysis.
UML (Sequence Diagrams, Collaboration and State Chart Diagrams) Presentation By - SANDEEP REDDY CHEEDEPUDI (Student No: ) - VISHNU CHANDRADAS (Student.
OOAD Using the UML - Use-Case Analysis, v 4.2 Copyright  Rational Software, all rights reserved 1/18 Use Case Analysis – continued Control Classes.
Use Case Diagram © copyright 2001 SNU OOPSLA Lab..
Jan 16, Ron McFadyen1 Ch 9. Use-case model: drawing System Sequence Diagrams Iteration 1: a simple cash-only success scenario of Process Sale.
Chapter 15: System Modeling with UML
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Lecturer: Dr. AJ Bieszczad Chapter 66-1 Object-Oriented analysis and design Special nature of OO development Use cases Design with UML OO system design.
Unified Modeling Language
CMPT 275 Software Engineering
Object-Oriented Design. From Analysis to Design Analysis Artifacts –Essential use cases What are the problem domain processes? –Conceptual Model What.
The Design Discipline.
Implementation Yaodong Bi. Introduction to Implementation Purposes of Implementation – Plan the system integrations required in each iteration – Distribute.
Introduction to Sequence Diagrams
Presented by: CHAN LAI SAN ( ) REBAH DAW SARREB ( ) FIDA AL-OBAISI ( ) 08 April 2008 (Tuesday 6pm – 7:30pm)
UML Diagrams: Class Diagrams The Static Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Other UML Diagramming Techniques CS 124. UML Diagramming Techniques Class Diagrams Use Case Diagrams Interaction Diagrams Sequence diagrams Collaboration.
Lab 04.
 A software application is like a city  Modeling = Architecture  OOP = Civil Engineering  UML Classes = Blueprints of Buildings  UML is a common.
Systems Analysis and Design in a Changing World, 3rd Edition
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
ניתוח מערכות מידע 1 Unified Modeling Language (UML) § § The Unified Modeling Language (UML) is the industry-standard language for: Specifying, Visualizing,
The Static Analysis Model Class Diagrams Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty of Computers and Information, Cairo University.
Object Oriented Design Jerry KotubaSYST Object Oriented Methodologies1.
Sequence Diagrams And Collaboration Diagrams HungNM.
1 Examining Execution Sequences Introducing Sequence Diagrams.
Component, Deployment and Package Diagrams CSIS3600.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Object-Oriented Systems Analysis and Design Using UML Systems Analysis and Design,
OOAD (part 2) diagrams CSCI577a TAs: Alexey. Outline UML diagrams: – Use case diagrams – Robustness diagrams – Sequence diagrams – Artifacts diagrams.
McGraw-Hill/Irwin© 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 17 Object-Oriented Design and Modeling Using the UML.
Object Oriented Analysis and Design Introduction to Rational Rose.
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
UML Fundamental Elements. Structural Elements Represent abstractions in our system. Elements that encapsulate the system's set of behaviors. Structural.
OOAD Using the UML - Use-Case Analysis, v 4.2 Copyright  Rational Software, all rights reserved 1 Use Case Analysis – Part 4 Analysis Mechanisms.
An informal, team oriented, OO design system
CompSci 280 S Introduction to Software Development
CHAPTER
UML Diagrams: Class Diagrams The Static Analysis Model
Chapter 4: Business Process and Functional Modeling, continued
UML(Unified Modeling Language)
Use Case Modeling - II Lecture # 27.
Object-Oriented Analysis and Design
Use case Diagram.
Unified Modeling Language
Collaborations and Hierarchies
OO Domain Modeling With UML Class Diagrams and CRC Cards
OO Domain Modeling With UML Class Diagrams and CRC Cards
SE-565 Software System Requirements IV. Use Cases
Object-Oriented Analysis
Software Engineering Lecture #11.
Unified Modeling Language
UML: Unified Modeling Language
Systems Analysis and Design With UML 2
Modeling Shari L. Pfleeger and Joanne M. Atlee, Software Engineering: Theory and Practice, 4th edition, Prentice Hall, Hans Van Vliet, Software Engineering:
UML Class Diagram.
Appendix A Object-Oriented Analysis and Design
Other UML Diagramming Techniques
Analysis models and design models
ITEC 3220A Using and Designing Database Systems
Copyright 2007 Oxford Consulting, Ltd
Sylnovie Merchant, Ph.D. MIS 161 Spring 2005
Use Case Definition: A use case describes in narrative prose
Chapter 5 Architectural Design.
Chapter 22 Object-Oriented Systems Analysis and Design and UML
CIS 375 Bruce R. Maxim UM-Dearborn
Use Case Analysis – continued
Appendix A Object-Oriented Analysis and Design
Presentation transcript:

Use Case Diagram Example The diagram above has three actors: Patron, Librarian, and Time. It is common practice to use a Time actor to initiate scheduled tasks. Library Lending System is the target system. It contains tasks named Borrow Item, Check for Fines, Return Item, Mark Items as Returned, Reserve Item and Generate Fine Notification. An individual in the role of Patron will be able to perform the tasks of Borrow Item, Return Item, and Reserve Item. An individual in the role of Librarian will be able to perform the activity of Mark Items as Returned and is involved in Borrow Item. The scheduled events fulfill the role of Time and will be able to perform the activity of Generate Fine Notification. Use Case Diagrams

Activity Diagram Example Example Activity Diagram The simple activity diagram above illustrates the checkout process from a public library. The small circle is a start state to indicate where the process begins; the larger one is a end state that indicates where it ends. The Patron starts with Choose Item(s). Patron does two actions in parallel: present item(s) to librarian and present library card to librarian. The Librarian performs Verify Identity of Patron. The Patron must then present photo id. The Librarian then scan item(s), stamp due date card(s), insert due date card(s) in item(s), present item(s) to patron. The Patron then does verify due date and the process ends. Use Case Diagrams

Class Diagram Example Example Class Diagram The class diagram above shows an airline flight from the perspective of the airline employees. There are eight classes, five associations, and two generalizations. The links from Crew to FlightAttendant and from Schedule to Flight are aggregations. The links from FirstOfficer and Captain to Pilot are generalizations. The class diagram shows the following information: A Schedule contains a (possibly empty) collection of Flights. A Flight has exactly one Aircraft and exactly one Crew. An Aircraft can be associated with any number of Flights. The navigability of the relationship is one directional as indicated by the arrow; Flights have Aircrafts, not the other way around. A Crew has two or three Pilots and at least one FlightAttendant. The Flight “knows” its Crew but the Crew doesn’t know which Flight instances it is associated with. (That could be a problem) Pilot is an abstract class and implements an interface (indicated by the italicized name). Both FirstOfficer and Captain inherit from Pilot. Use Case Diagrams

Sequence Diagram Example In the diagram above, an actor called time sends the calcFines message to scheduler. The scheduler then iterates through its collection of patron objects. A list of loans is retrieved for each patron. We then loop through the list loan objects and ask each loan to calcFine. The loan object delegates that to each of its item objects. And finally each item object uses the calculator object to calculate the fine for the given number of days. Use Case Diagrams

Collaboration Diagram Example Example Collaboration Diagram The collaboration diagram above is the semantic equivalent to the sequence diagram example. Use Case Diagrams

State Diagram Example Example State Diagram Use Case Diagrams

Component Summary Use Case Diagrams

Deployment Diagram Example It is becoming the norm to distribute complex systems, especially with the popularity of web applications. Deployment diagrams describe how functionality will be deployed in systems by mapping components to the physical environment in which they operate. Deployment diagrams may describe general or specific deployment characteristics of a system. For example, a deployment diagram may indicate which functionality appears in a browser verses the functionality that appears in the server. The diagrams may describe the details of actual clients and servers as well. Deployment diagrams are often used by distributors, installers, and maintainers of software to understand the physical environment in which the system will reside. They can be used to indicate change in the deployment environment as well. Use Case Diagrams