Use case Diagrams. Topics:. Modeling the context of a system Modeling the requirements of a system. Introduction. Use case diagrams are central to modeling the behaviour of a system, a subsystem, or a class .
An Image/Link below is provided (as is) to download presentationDownload Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only. Download presentation by click this link.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.
E N D
Presentation Transcript
Use case Diagrams
Topics: Modelingthe context of a system Modelingthe requirements of a system
Introduction Use case diagrams are central to modeling the behaviour of a system, a subsystem, or a class. Important for visualizing, specifying, and documenting the behavior of an element.
Getting Started A box with small buttons Being a developer, on should conceptually understand the system With UML, apply use case diagrams to visualize the behavior of a system, subsystem, or class
Getting Started A box with small buttons – Cellular Phone Place Conference Phone Call Place Phone Call <<extend>> Cellular Network Receive Additional Call Receive Phone Call <<extend>> Use Scheduler User Cellular Telephone
Terms and Concepts What is use case diagram ? ? ? ? A name and graphical contents that are a projection into a model. Its content distinguishes from other kind of diagrams Use Case Diagrams Use Cases Actors = +
Terms and Concepts What does Use case diagram contain ? ? ? ? Use cases Actors Dependency, generalization, and association relationships Packages and instances of use cases
Terms and Concepts Common uses To model the context of a system drawing a line around the whole system and asserting which actors lie outside the system and interact with it To model the requirements of a system what that system should do specify the desired behavior of the system
Modeling the Context of a System Things will live inside the system, some things will live outside it. credit card validation system accounts, transactions, and fraud detection agents credit card customers and retail institutions
Modeling the Context of a System Identify the actors that surround the system Organize actors – generalization/specialization provide a stereotype to actor if needed Provide communication path for actors and use case
Example – Credit Card Validation Credit Card Validation System Perform card transaction Process customer bill Retail Institution Customer Reconcile transaction Individual Customer Corporate Customer Manage customer account Sponsoring financial institute
Modeling the Requirementsof a System Establish the context of the system by identifying the actors that surround it. For each actor, consider the behaviorthat each expects or requires the system to provide. Name these common behaviors as use cases. Factor common behavior into new use cases that are used by others; factor variant behavior into new use cases that extend more main line flows. Model these use cases, actors, and their relationships in a use case diagram. Adorn these use cases with notes or constraints that assert nonfunctional requirements; you may have to attach some of these to the whole system.
Example Perform card transaction Report on account status Process Customer Bill Customer Detect card frauds Reconcile transactions Retail Institution Manage network outage Manage customer account Sponsoring financial institution
Problem - Restaurant Take Order Place Order <<actor>> Waiter <<include>> Place Phone Call Prepare order Customer <<extend>> Stock Low Restock Server Order Deliver Order Delivery Boy Cook Restaurant
Problem – ATM System Propose a use case diagram for an ATM machine for withdrawing cash. Make the use case simple yet informative; only include the major features. Identify use cases and actors and their relationship. Your diagram should include Customer operation over ATM machine. Role of administrator in registration of ATM to bank maintaining records.
Problem – ATM System ATM System Withdraw Transfer Funds Customer Deposit Money Register ATM at bank Bank Admin Read Log