Docsity

Use Case Modeling 2-Software Requirement-Lecture Slides, Slides of Software Project Management

Partial preview of the text

Download Use Case Modeling 2-Software Requirement-Lecture Slides and more Slides Software Project Management in PDF only on Docsity!

1

Use Case Modeling - II

Lecture # 27

2

Documenting Use Cases - 1

  • Name• Summary
    • Short description of use case
      • Dependency (on other use cases)• Actors• Preconditions
        • Conditions that are true at start of use case

4

Use Cases and Flow of Events - 1• A use case describes

what

the system

(or subsystem, class, or interface) doesbut it does not specify

how

it does it

  • It is important that you keep clear the

separation of concerns between thisoutside and inside view

5

Use Cases and Flow of Events - 2• The behavior of a use case can be

specified by describing a flow ofevents in text clearly enough for anoutsider to understand it easily

7

Use Cases and Flow of Events - 4• A use case’s flow of events can be

specified in a number of ways:– Informal structured text (example to

follow)

  • Formal structured text (with pre- and

post-conditions)

  • Pseudocode

8

Organizing Use Cases - 1

  • Use cases can be organized by

grouping them in packages

  • You can also organize use cases by

specifying generalization, include, andextend relationships among them

10

Organizing Use Cases - 3

  • Generalization among use cases is just like

generalization among classes

  • It means that the child use case inherits the

behavior and meaning of the parent usecase; the child may add to or override thebehavior of its parent; and the child may besubstituted any place the parent appears

11

Organizing Use Cases - 4

  • You may have a use case

Validate

User

, which is responsible for the

verifying the identity of the user

  • This use case can be used in many

different application domains

13

Organizing Use Cases - 5

  • An include relationship between use cases

means that the base use case explicitlyincorporates the behavior of another usecase at a location specified in the base

  • The included use case never stands alone,

but is only instantiated as part of somelarger base that includes it

  • It is like the base use case

14

Organizing Use Cases - 6

  • Include relationship is used to avoid

describing the same flow of eventsseveral times, by putting the commonbehavior in a use case of its own

  • This is an example of dependency • Track order

use case includes

Validate user

use case

16

Organizing Use Cases - 8

  • An extend relationship between use cases

means that the base use case implicitlyincorporates the behavior of another usecase at a location specified indirectly byextending use case

  • The base use case may stand alone, but

under certain conditions, its behavior maybe extended by another use case

17

Organizing Use Cases - 9

  • A base use case may be extended only at

certain points, called its extension points

  • Extend relationship can be used to model
    • Optional behavior– Separate sub-flow that is executed only under

given conditions

  • Several flows that may be inserted at a certain

point, governed by explicit interaction with anactor

19

Extending a Use Case

  • include (Validate

user)

  • Collect the user’s

order items

  • (set priority) • Submit the order

for processing

Place order

Place rush order

Extension points

set priority

<>(set priority)

Trackorder

Validate

user

<>

<>

20

Organizing Use Cases - 11

  • In this example, set point is an

extension point

  • A use case may have more than one

extension points