Usecase Sol PDF
Usecase Sol PDF
track location
Cat
Cat owner
2. Work out at least one use case in your model above to the casual detail level.
Work out your use-case further to the fully dressed level; while you do that, give an example
of an alternate flow that would be sensical in your use-case.
Should you just keep one model, or both models?
Answer:
Casual:
Fully dressed:
3. Give situations (one for each) where it would be sensical to use these constructs to structure
your use case above:
include
extend
specialization
Answer:
(a) E.g. if the polling in the example above is quite involved, we can separate it to its own
use case, and link it with include .
(b) If the alternate flow in the example above becomes too large, we can separate it in its
own use case, and link it with extend .
(c) Suppose we also provide tracking of wild animals, which could be a bit different than
tracking a house cat. E.g. we need to poll less frequently. A use case for this can be made
as a specialization from that of tracking cat.
4. Do you know that it costs a lot of money to get a Certified Java Programmer certificate? It
could cost you thousands of euros. Lets imagine we will develop a browser-based training
system to help people prepare for such a certification exam.
A user can request a quiz for the system. The system picks a set of questions from its
database, and compose them together to make a quiz. It rates the users answers, and gives
hints if the user requests it.
In addition to users, we also have tutors who provide questions and hints. And also examinators who must certify questions to make sure they are not too trivial, and that they are
sensical.
Make a use case diagram to model this system. Work out some of your use cases. Since we
dont have real stake holders here, you are free to fill in details you think is sensical for this
example.
Answer:
Report result
{include}
Add questions
Make a quiz
Tutor
{include}
User
{extend}
Certify questions
Provide hint
Examinator
Set time
Set display-mode
User
{include}
Make sound
Set alarm
Snooze
In this model make sound is made as a separate use case. It does not have to.
I assume that snooze would be one of your use cases. Work it out to the fully dressed
level.
Answer:
Use case: Snooze.
Primary actor: User
Secondary actors: Pre-condition: An alarm is firing.
Post-condition: Main flow:
1. The use-case is activated when the user hits the snooze button.
2. The alarm is turned off.
3. Wait for snooze time.
4. Include use case Make sound