200 likes | 366 Views
BTS330: Business Requirements Analysis using OO. Lecture 8: Use Cases and Scenarios. Agenda. Looking for Use Cases Notes on Use Case Diagrams Scenarios. Looking for Use Cases. We used a table with three columns: Actor Function performed by actor
E N D
BTS330: Business Requirements Analysis using OO Lecture 8: Use Cases and Scenarios
Agenda • Looking for Use Cases • Notes on Use Case Diagrams • Scenarios
Looking for Use Cases • We used a table with three columns: • Actor • Function performed by actor • Use Case that contains (or carries out) the function
Actor • A person, software system, department, role, device…etc…. outside of the system that interacts with the system
Use Case Diagram System Boundary Association Actor Use Case
Agenda • Looking for Use Cases • Notes on Use Case Diagrams • Scenarios
Notes on Use Case Diagrams • Rational Rose Structure • Put your business area in a “package” • Segment your business area further as required—each “segment” should be a package within the business area package • Use Cases Included • If only actors outside of your business area are accessing a use case then the use case probably does not belong in your business area
Notes on Use Case Diagrams • Use Case Naming • Name your use cases so that the verb comes first: • “Manage Prices” • “Generate Revenue Report” • “Search Solution”
Agenda • Looking for Use Cases • Notes on Use Case Diagrams • Scenarios
Use Case v.s. Scenario • Use Case • “a discrete stand-alone activity that an actor can perform to achieve some outcome of value” • “might encompass a number of similar tasks having a common goal” • “a collection of related usage scenarios” Text, p134
(Usage) Scenario • A specific instance of a use case • One “path” through the use case logic
Usage Scenarios • Add Reservation • No Alteration Required • Alteration Required • Update Reservation • Cancel Reservation
Usage Scenarios • Add Reservation, no alteration required • Provide customer information, specify garment, dates, occasion. • Collect deposit. • Create reservation record
Add Reservation (no alteration) Precondition: system has authenticated actor.
Usage Scenarios • Add Reservation, Alteration Required • Provide customer information, specify garment, dates, occasion. • Specify alteration information • Collect deposit. • Create reservation record
Add Reservation (alteration) Precondition: system has authenticated actor.
Update Reservation Precondition: system has authenticated actor.
Cancel Reservation Precondition: system has authenticated actor.