













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Use Case Modeling, Activities of Requirements Workflow, Capture Functional Requirements, Actor Generalization, Use Case Generalization, Include Relationship, Extend Relationship, Conditional Extensions, Raman Ramsin, Lecture Slides, Object Oriented Design, Department of Computer Engineering, Sharif University of Technology, Iran.
Typology: Slides
1 / 21
This page cannot be seen from the preview
Don't miss anything!














1 Sharif University of Technology
2 Object-Oriented Design – Lecture 5
3.
5. Structure the use-case model
4 Object-Oriented Design – Lecture 5
If two actors communicate with the same set of usecases in the same way, we can express this as ageneralization to another (possibly abstract) actor.
5 Object-Oriented Design – Lecture 5
Used when one or more use cases are really specializations ofa more general case. Child use cases may:
inherit features from their parent use case
add new features
override (change) inherited features (except for inheritedrelationships and extension points) Use case generalization is documented in use casespecifications using a simple tag language on flow steps.There are two rules:
Each step number in the child is postfixed by the equivalentstep number in the parent if there is one.
If the step in the child overrides a parent step, it ispostfixed by "o" (for overridden) and then the step numberin the parent.
7 Object-Oriented Design – Lecture 5
The «include» relationship between use cases allowsyou to include the behavior of one use case into the flowof another use case.
8 Object-Oriented Design – Lecture 5 Sharif University of Technology
The base use case is not complete without all of its inclusion use cases. Inclusion use cases may be complete ( instantiable) or incomplete ( behavior fragments)
10 Object-Oriented Design – Lecture 5
11 Object-Oriented Design – Lecture 5
13 Object-Oriented Design – Lecture 5
14 Object-Oriented Design – Lecture 5
16 Object-Oriented Design – Lecture 5 Sharif University of Technology
The «extend» relationship must specify one or more ofthe extension points in the base use case or it isassumed that the «extend» relationship refers to
extension points. The extension use case must have the same number ofinsertion segments as there are extension pointsspecified in the «extend» relationship. It is legal for two extension use cases to «extend» thesame base use case at the same extension point. But ifthis happens, the order in which the extensions executeis indeterminate.
17 Object-Oriented Design – Lecture 5
Keep use cases short and simple
Include only enough detail to capture therequirements.
A good rule of thumb is to ensure that the mainflow of a use case fits on a single side of paper. Start by simplifying the text Remove any design details Reanalyze the problem: Are there more thanone use case? Can alternative flows befactored out?
19 Object-Oriented Design – Lecture 5
Avoid functional decomposition
20 Object-Oriented Design – Lecture 5 Functional Decomposition in Use Case Modeling: Example