IS390 Ch 5 - Use Case Modeling

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play

1/28

encourage image

There are no tags or description

Looks like no tags are added yet.

29 Terms

1
New cards

Use case description

  • what it is for

  • typical use case description templates/items


make fully developed use case descriptions for more complex use cases

typical use case description templates include:

  • Use case name

    Scenario (if needed)

    Triggering event -  what event makes this use case happen? 

    Brief description

    Actors

    Related use cases (<<includes>>)

    Stakeholders

    Preconditions

    Postconditions

    Flow of activities

    Exception conditions


2
New cards

example of a fully developed use case description for create customer account

knowt flashcard image
3
New cards

UML activity diagram for use case of create customer account

shows the flow of activities ONLY!

<p>shows the flow of activities ONLY! </p>
4
New cards

use case description details

  • use case name

  • scenario

  • triggering event

  • brief description

  • actors


  • use case name

    • verb-noun

  • scenario

    • a use case can have more than one scenario (special case or more specific path)

  • triggering event

    • based on event decomposition technique

  • brief description

    • written previously when use case was identified

  • actors

    • one or more users from use case diagrams


5
New cards

use case instances

a unqiue set of internal activities within a use case

6
New cards

preconditions

what the state of the system must be for the use case to begin

  • what must be true for the use case to happen


7
New cards

post conditions

what must be true upon completion of the use case

use for planning test case expected results

  • what must happen to make this use case a success

    • Ex. in “open customer account,” → customer must be created and saved in the account subsystem, one or more addresses need to be saved, credit card info must be validated


8
New cards

stakeholders

anyone with an interest in the use case

9
New cards

related use cases «includes» —> use when _____

if one use case invokes or includes another

10
New cards

flow of activities

the activities that go on between actor and the system

  • aids in making activity diagram 


11
New cards

exception conditions

where and what can go wrong

  • what can go wrong and how do we handle that?


12
New cards

activity diagram for ship items use case

note:

  • synchronization bar for loop

  • decision diamond


13
New cards

UML diagram for use case of fill shopping cart —> includes the «includes» relationship!


14
New cards

what is a system sequence diagram

  • models the interactions between external actors and a software system for a specific use case. It treats the entire system as a single "black box," focusing on input and output events without revealing internal classes, database structures, or code logic.

  • a UML sequence diagram

  • special case for a sequence diagram

    • only shows actor and one object

    • the one object represents the complete system

    • shows input and output messaging requirements for a use case

  • actor; system; object lifeline

  • messages


15
New cards

System Sequence Diagram (SSD) notation


16
New cards

Message Notation for SSD

“ * “ indicate ____

[ ] indicate ____

  • what happens if it evaluates to true vs false?

message-name = ______

parameter-list shows ______

return-value on same line, requiring := used to _____


[true/false condition] return-value := message-name (parameter-list)

  • An asterisk (*) indicates repeating or looping of the message

  • Brackets [ ] indicate a true/false condition. This is a test for that message only. If it evaluates to true, the message is sent. If it evaluates to false, the message isn’t sent.

  • Message-name is the description of the requested service written as a verb-noun.

  • Parameter-list (with parentheses on initiating messages and without parentheses on return messages) shows the data that are passed with the message.

  • Return-value on the same line as the message (requires :=) is used to describe data being returned from the destination object to the source object in response to the message.


17
New cards

what are lifelines aka object lifeline

vertical dashed lines connected to an actor or object!

  • shows the passage of time for the object

represent the messages that are sent by the actor!

18
New cards
<p>Sample SSD diagram, fill in the blanks</p><p></p>

Sample SSD diagram, fill in the blanks



<p></p>
19
New cards

detailed vs alternate notation for SSD message diagram example


20
New cards

loop frame

notation on a sequence diagram showing repeating messages (illustration A in flashcard before)

21
New cards

true/false condition

part of a message between objects that is evaluated prior to transmission to determine wheather the message can be sent

the * preceeding the condition indicates the message repeats as long as the condition evaluates to true! (example b in flashcard before)

22
New cards

steps for developing an SSD

1. Identify input message

  • See use case flow of activities or activity diagram

2. Describe the message from the external actor to the system using the message notation

  • Name it verb-noun: what the system is asked to do

  • Consider parameters the system will need

3. Identify any special conditions on input messages

  • Iteration/loop frame

  • Opt or Alt frame

4. Identify and add output return values

  • On message itself: aValue:= getValue(valueID)

  • As explicit return on separate dashed line


23
New cards

example SSD for ship items use case and customer account use case


24
New cards

CRUD technique for use cases

CRUD = create, read/report, update, delete

  • validate or refine use cases!

CRUD analysis serves to verify that all domain classes are fully supported by the new system, i.e. have use cases to fully process all required actions

a good cross-check against the existing set of use cases, used in database context

  • Allows u to cross check ur data model 

  • If you can do these things, it will pass the CRUD technique

  • Ex. customer account

    • Can you create the account

    • Can you read the info on the account

    • Can you update the account info

    • Can you delete the account

  • ensure that all classes have a complete “cover” of use cases

not for primary identification of use cases


EX:


25
New cards

steps of CRUD analysis

1. Identify all domain classes

2. For each class verify that use cases exist to

  • Create a new instance

  • Update existing instances

  • Reads or reports on information in the class

  • Deletes or archives inactive instances

3. Add new use cases as required. Identify responsible stakeholders

4. Identify which application has responsibility for each action: which to create, which to update, which to use

26
New cards

example CRUD matrix with use cases and corresponding domain classes

knowt flashcard image
27
New cards

parts of use cases and use case diagram

use cases

  • use case diagram

    • use case description

    • activity diagram

    • system sequence diagram (SSD)


28
New cards

parts of domain classes and diagram

domain classes

  • domain model class diagram

    • state machine diagram


29
New cards

workflow of integrating use case and domain model diagrams

knowt flashcard image