Download presentation
Presentation is loading. Please wait.
Published byJosephine Stephens Modified over 9 years ago
2
What is Interaction Modelling What is Interaction Modelling Use Case Models Use Case Models Actor Use cases Use Case Diagram Symbols Use case Diagram Use Case Realtionship Guidelines for Use case Models
3
The Interaction model is the third leg of the modeling tripod and describe interactions with in a system. The class model describes the objects in a system and their relationship, the state model describes the life cycles of the objects and the interaction model describes how the objects interact. Interaction can be modeled at different levels of abstraction. At a high level, use cases describes how a system interacts with outside actors. Each use case represents a piece of functionality that a system provides to its users Sequence diagrams provide more detail and show the messages exchanged among a set of objects over time. And finally, activity diagrams provide more detail and show messages exchanged among a set of objects over time.
4
Use Case Models Sequence Models Activity Models Interaction Modeling Use Cases Actors Use Case Diagram Guidelines Scenario Sequence Diagram Guidelines Initiation and Termination Branches Activities Concurrent Activities Guidelines Back
6
An actor is a direct external user of a system-an object or set of objects that communicates directly with the system but that is not part of the system. For example-customer and repair technician are different actors of a vending machine. Actors can be persons, devices and other systems-anything that interacts directly with the system. Back
7
Buy a beverage: The vending machine delivers a beverage after a customer selects and pay for it Perform scheduled maintenance: A repair technician performs the periodic service on the vending machine necessary to keep it in good working condition. Make repairs: A repair technician performs the unexpected service on the vending machine necessary to repair a problem in its operation. Load items: A stock clerk adds items into the vending machine to replenish its stock of beverages. Figure-Use Case summaries for a vending machine Back A use case is a coherent piece of functionality that a system can provide by interacting with actors. For example-a customer actor can buy a beverage from a vending machine. The customer inserts money into the machine, make a selection and ultimately receives a beverage. A use case involves a sequence of messages among the system and its actors. Use cases
8
Use Case Actor Boundary Connection Include relationship Extend relationship > Back
9
A system involves a set of use cases and a set of actors. The UML has a graphical notation for summarizing use cases and the below figure show an example. Buy Beverage Perform Scheduled maintenance Make Repairs Load Items Vending Machine Customer Repair Technician Stock Clerk Figure-Use Case Diagram for a vending machine Back Use Case Diagram
10
Include Relationship Extend Relationship
11
The include relationship incorporates one use case within the behavior sequence of another use case. An included use case is like a subroutine-it represents behavior that would otherwise have to be described repeatedly. The UML notation for an include relationship is a dashed arrow from the source(including) use case to the target(included) use case. The keyword > annotates the arrow. The following figure shows an example from an online stock brokerage system. Secure Session Make Trade Validate Password > Fig-Use case inclusion
12
The extend relationship adds incremental behavior to a use case. It represents the frequent situation in which some initial capability is defined and later features are added modularly. The UML notation for an extend relationship is a dashed arrow from the extension use case to the base use case. The keyword > annotates the arrow. The following figure shows the base use case trade stocks for a stock brokerage system. Trade stocks Short sale Limit order Trade options Margin trading > Fig-Use case extension
13
Prof. Rajender Nath Another Example of Use Case with include and extend Relationships Back
14
Use cases identify the functionality of a system and organize it according to the perspective of users. The main purpose of a system is almost always found in the use cases, with requirements lists supplying additional implementation constraints. Here are some guidelines for constructing use case models. First determine the system boundary Ensure that actors are focused Each use case must provide value to users Relate use cases and actors Remember that use cases are informal Use cases can be structured Back
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.