ניתוח מערכות מידע 1 Using Use Case Diagrams n Use case diagrams are used to visualize, specify, construct, and document the (intended) behavior of the.

Slides:



Advertisements
Similar presentations
Chapter 4: Requirements Engineering
Advertisements

Use Case Diagram in Detail
Use-Cases.
Withdrawal Transaction Use Case Primary Actor: Customer Pre-conditions: The customer must have a valid ATM card and PIN. Post-conditions: The customer.
Use Case Diagrams Damian Gordon.
CPSC 333: Foundations of Software EngineeringJ. Denzinger 2.2. Use Cases: Scenario based requirements modeling Recommended: Booch, Rumbaugh, Jacobson:
Use Case & Use Case Diagram
Use Case Modeling SJTU. Unified Modeling Language (UML) l Standardized notation for object-oriented development l Needs to be used with an analysis and.
USE CASE – ATM EXAMPLE Actors: ATM Customer ATM Operator Use Cases: The customer can withdraw funds from a checking or savings account query the balance.
Information System Engineering
CPSC 333: Foundations of Software EngineeringJ. Denzinger Small Test: Bank account manager System has to run on an automated teller machine. User must.
Use Case Analysis 16-Apr-17 Software Engineering.
Sequence Diagrams. Introduction A Sequence diagram depicts the sequence of actions that occur in a system. The invocation of methods in each object, and.
CS3773 Software Engineering Lecture 03 UML Use Cases.
Interaction Diagrams Activity Diagram State Machine Diagram
January Ron McFadyen1 Use Cases in the UML Functionality under consideration is represented by use cases (named ellipses) enclosed in a box.
CT1404 Lecture 2 Requirement Engineering and Use Cases 1.
Use-case Modeling.
Use Case Modelling.
1 Lab Beginning Analysis and Design 4 Completion of first version of use case diagram initiates the processes of analysis and design. 4 UML provides.
Use Case Modeling. Use case diagram For each use case we develop  Object class diagram (with attributes only)  System sequence diagram (analysis) 
Use Case Diagram in Detail CT1414 October 2011 By: Fatimah Alakeel.
1.  Modeling the context of a system  Modeling the requirements of a system 2.
UML REVIEW –PART1 1. Introduction What is UML visual modelling language UML is a language not a methodology? Q: why is this distinction important? UML.
Chapter 3 Use Cases.
Use Cases 2 ENGR ♯10 Peter Andreae
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 06. Requirements.
By: Muhammad Aamir Salem
Software Waterfall Life Cycle Requirements Construction Design Testing Delivery and Installation Operations and Maintenance Concept Exploration Prototype.
Developing Use Cases in a Group Carolyn L. Cukierman Face-to-Face Technology Conference March 27, 2000.
Intro: Use Case and Use Case Diagram Documentation.
Interaction Modeling. Introduction (1) Third leg of the modeling tripod. It describes interaction within a system. The class model describes the objects.
Faculty of Computer & Information Software Engineering Third year
Use Cases 7/09. lnot part of the system lrepresents roles a user can play lrepresents a human, a machine or another system lactively exchanges information.
USE CASE Bayu Adhi Tama, MTI Faculty of Computer Science, University of Sriwijaya Slides are adapted from Petrus Mursanto
Faculty of Computer & Information
1 Object-Oriented Modeling Using UML CS 3331 Section 2.4 Modeling Requirements with Use Cases.
1 Objectives  Define key concepts of use-case modeling.  List the benefits of use-case modeling.  Find actors and use cases.  Describe their relationships.
Faculty of Applied Engineering and Urban Planning Software Engineering Department Software Engineering Lab Use Cases Faculty of Information system Technology.
Use Cases Use Cases are employed to describe the functionality or behavior of a system. Each use case describes a different capability that the system.
Use Case Model Use case diagram.
Use Case Diagram The purpose is to communicate the system’s functionality and behaviour to the customer or end user. Mainly used for capturing user requirements.
Unified Modeling Language User Guide Section 4 - Basic Behavioral Modeling Chapter 16 - Use Cases Chapter 17 - Use Case Diagrams.
CS212: Object Oriented Analysis and Design Lecture 32: Use case and Class diagrams.
Scenario A scenario is a sequence of steps describing an interaction between a user and a system. Use case is a set of scenarios tied together by a common.
Understanding Requirements
Use Case Diagram Lecture # 1. Use Case Diagram Use-cases are descriptions of the functionality of a system from a user perspective.  Depict the behaviour.
Chapter 6: Structuring Requirements: Use Case Description and Diagrams Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Use Case Diagrams. Introduction In the previous Lecture, you saw a brief review of the nine UML diagrams. Now that you have the clear, you'll start to.
Use Case Diagrams-2. Relationships between Use Cases 2 1. Generalization - use cases that are specialized versions of other use cases. 2. Include - use.
UC Diagram & Scenario RKPL C & D. Using Use Case Diagram Use case diagrams are used to visualize, specify, construct, and document the (intended) behavior.
1 Case Study and Use Cases for Case Study Lecture # 28.
Using Use Case Diagrams
DFD(Data Flow Diagram)
Use Case Modeling - II Lecture # 27.
Storyboarding and Game Design SBG, MBG620 Full Sail University
Dynamic Modeling of Banking System Case Study - I
IS223D: OBJECT-ORIENTED DESIGN
Use Case Model Use case diagram.
UML Use Case Diagrams.
Start at 17th March 2012 end at 31th March 2012
Concepts, Specifications, and Diagrams
SAD ::: Spring 2018 Sabbir Muhammad Saleh
Object Oriented Analysis and Design
Use Cases 1.
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Use Case Model Use case diagram – Part 2.
Using Use Case Diagrams
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Interaction Modeling Extracted from textbook:
Presentation transcript:

ניתוח מערכות מידע 1 Using Use Case Diagrams n Use case diagrams are used to visualize, specify, construct, and document the (intended) behavior of the system, during requirements capture and analysis. n Provide a way for developers, domain experts and end-users to Communicate. n Serve as basis for testing. n Use case diagrams contain use cases, actors, and their relationships.

ניתוח מערכות מידע 2 Use Case n Use cases specify desired behavior. n A use case is a description of a set of sequences of actions, including variants, a system performs to yield an observable result of value to an actor. n Each sequence represent an interaction of actors with the system. name

ניתוח מערכות מידע 3 Specifying the Behavior of a Use Case n Describing the flow of events within the use case. n Can be done in natural language, formal language or pseudo-code. n Includes: how and when the use case starts and ends; when the use case interacts with actors and what objects are exchanged; the basic flow and alternative flows of the behavior.

ניתוח מערכות מידע 4 Actors n An actor represents a set of roles that users of use case play when interacting with these use cases. n Actors can be human or automated systems. n Actors are entities which require help from the system to perform their task or are needed to execute the system’s functions. n Actors are not part of the system. name

ניתוח מערכות מידע 5 Use Cases and Actors n From the perspective of a given actor, a use case does something that is of value to the actor, such as calculate a result or change the state of an object. n The Actors define the environments in which the system lives

ניתוח מערכות מידע 6 Example of Use Case Diagram student registration updating grades output generating faculty

ניתוח מערכות מידע 7 Relationships between Use Cases 1. Generalization - use cases that are specialized versions of other use cases. 2. Include - use cases that are included as parts of other use cases. Enable to factor common behavior. 3. Extend - use cases that extend the behavior of other core use cases. Enable to factor variants.

ניתוח מערכות מידע 8 1. Generalization n The child use case inherits the behavior and meaning of the parent use case. n The child may add to or override the behavior of its parent. parent child

ניתוח מערכות מידע 9 registration graduate registration non-graduate registration More about Generalization

ניתוח מערכות מידע Include n The base use case explicitly incorporates the behavior of another use case at a location specified in the base. n The included use case never stands alone. It only occurs as a part of some larger base that includes it. baseincluded >

ניתוח מערכות מידע 11 More about Include n Enables to avoid describing the same flow of events several times by putting the common behavior in a use case of its own. updating grades output generating verifying student id >

ניתוח מערכות מידע Extend n The base use case implicitly incorporates the behavior of another use case at certain points called extension points. n The base use case may stand alone, but under certain conditions its behavior may be extended by the behavior of another use case. baseextending >

ניתוח מערכות מידע 13 More about Extend n Enables to model optional behavior or branching under conditions. Exam copy request Exam-grade appeal >

ניתוח מערכות מידע 14 Relationships between Actors n Generalization. student non-graduate student graduate student

ניתוח מערכות מידע 15 Relationships between Use Cases and Actors n Actors may be connected to use cases by associations, indicating that the actor and the use case communicate with one another using messages. updating grades faculty

ניתוח מערכות מידע 16 Example place phone call cellular network user receive phone call place conference call receive additional call use scheduler > Cellular Telephone

ניתוח מערכות מידע 17 A More Complicate Example

ניתוח מערכות מידע 18 Each use case may include all or part of the following:  Title or Reference Name- meaningful name of the UC  Author/Date- the author and creation date  Modification/Date- last modification and its date  Purpose- specifies the goal to be achieved  Overview- short description of the processes  Cross References- requirements references  Actors- agents participating  Pre Conditions- must be true to allow execution  Post Conditions- will be set when completes normally  Normal flow of events- regular flow of activities  Alternative flow of events - other flow of activities  Exceptional flow of events - unusual situations  Implementation issues- foreseen implementation problems Use Case Description Ea ch us e ca se ma y inc lud e all or pa rt of the foll ow ing : Titl e or Re fer en ce Na me - me ani ng ful na me of the UC Au th or/ Da te - the aut ho r of the UC an d its cre ati on dat e Mo difi cat ion /D ate - las t mo difi cat ion to the UC an d its dat e Pu rp os e - sp eci fie s the go al to be ac hie ve d by the UC Ov erv ie w - sh ort de scr ipti on of the us e ca se s pr oc es se s Cr os s Re fer en ce s - re qui re me nts ref ere nc es Ac tor s - ag ent s wh ich init iat e or pa rti cip ate in the UC Pr e Co ndi tio ns - mu st be tru e to all ow the ex ec uti on of the UC Po st Co ndi tio ns - wil l be set wh en the us e us e co mp let es its ex ec uti on no rm all y No rm al flo w of ev ent s - re gul ar flo w of act ivit ies of the UC Alt er nat ive flo w of ev ent s - ot he r flo w of act ivit ies of the UC Ex ce pti on al flo w of ev ent s - un us ual sit uat ion s Im ple me nta tio n iss ue s - po ssi ble for es ee n pr obl em s in the im ple me nta tio n of the UC

ניתוח מערכות מידע 19 Example- Money Withdraw n Use Case: Withdraw Money n Author: ZB n Date: 1-OCT-2004 n Purpose: To withdraw some cash from user’s bank account n Overview: The use case starts when the customer inserts his credit card into the system. The system requests the user PIN. The system validates the PIN. If the validation succeeded, the customer can choose the withdraw operation else alternative 1 – validation failure is executed. The customer enters the amount of cash to withdraw. The system checks the amount of cash in the user account, its credit limit. If the withdraw amount in the range between the current amount + credit limit the system dispense the cash and prints a withdraw receipt, else alternative 2 – amount exceeded is executed. n Cross References: R1.1, R1.2, R7

ניתוח מערכות מידע 20 Example- Money Withdraw (cont.) n Actors: Customer n Pre Condition: –The ATM must be in a state ready to accept transactions –The ATM must have at least some cash on hand that it can dispense –The ATM must have enough paper to print a receipt for at least one transaction n Post Condition: –The current amount of cash in the user account is the amount before the withdraw minus the withdraw amount –A receipt was printed on the withdraw amount –The withdraw transaction was audit in the System log file

ניתוח מערכות מידע 21 Example- Money Withdraw (cont.)   Typical Course of events: Actor Actions System Actions 1. Begins when a Customer arrives at ATM 2. Customer inserts a Credit card into ATM 3. System verifies the customer ID and status 5. Customer chooses “Withdraw” operation 4. System asks for an operation type 7. Customer enters the cash amount 6. System asks for the withdraw amount 8. System checks if withdraw amount is legal 9. System dispenses the cash 10. System deduces the withdraw amount from account 11. System prints a receipt 13. Customer takes the cash and the receipt 12. System ejects the cash card

ניתוח מערכות מידע 22 Example- Money Withdraw (cont.) n Alternative flow of events: –Step 3: Customer authorization failed. Display an error message, cancel the transaction and eject the card. –Step 8: Customer has insufficient funds in its account. Display an error message, and go to step 6. –Step 8: Customer exceeds its legal amount. Display an error message, and go to step 6. n Exceptional flow of events: –Power failure in the process of the transaction before step 9, cancel the transaction and eject the card

ניתוח מערכות מידע 23 Example- Money Withdraw (cont.)  One method to identify use cases is actor-based: - Identify the actors related to a system or organization. - For each actor, identify the processes they initiate or participate in.  A second method to identify use cases is event-based: - Identify the external events that a system must respond to. - Identify the external events that a system must respond to. - Relate the events to actors and use cases. - Relate the events to actors and use cases.  The following questions may be used to help identify the use cases for a system: -What are tasks of each actor ? -Will any actor create, store, change, remove, or read information in the system ? -What use cases will create, store, change, remove, or read this information ? -Will any actor need to inform the system about sudden, external changes ? -Does any actor need to be informed about certain occurrences in the system ? -Can all functional requirements be performed by the use cases ?

ניתוח מערכות מידע 24 Moving on n The “things” that “live” inside the system are responsible for carrying out the behavior the actors on the outside expect the system to provide. n To implement a use case, we create a society of classes that work together to carry out the behavior of the use case.