0% found this document useful (0 votes)
126 views

Tutorial Lab-4

Use case modeling is used to define the interactions between external users and the system. The main elements of a use case diagram are actors, use cases, and relationships between them. A use case diagram can be used to model the functional requirements of an alarm clock application, including setting the time and alarms, snoozing alarms, and alarms turning off automatically. Key use cases are setting the time, setting alarms, snoozing alarms, and alarms turning off.

Uploaded by

Vishva Lenqchaii
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
126 views

Tutorial Lab-4

Use case modeling is used to define the interactions between external users and the system. The main elements of a use case diagram are actors, use cases, and relationships between them. A use case diagram can be used to model the functional requirements of an alarm clock application, including setting the time and alarms, snoozing alarms, and alarms turning off automatically. Key use cases are setting the time, setting alarms, snoozing alarms, and alarms turning off.

Uploaded by

Vishva Lenqchaii
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Object Oriented Development with Java (CT038-3-2) UML Modeling

Lab 4 –UML Modelling


Answer the following questions.

1. Given the following use case diagram. Explain the UML elements.

2. What is the main purpose of use case modeling?

3. Specify the situation for the following UML notations where it would be sensible to
use these elements to structure your use case.
a. <<include>>
b. <<extend>>

4. Suppose you plan to develop application for an alarm clock. The clock shows the time
of day. Using buttons, the users can set the hours and minutes fields individually and
choose between 12 and 24 hour display. It is possible to set one or two alarms. When
an alarm fires, it will sound some noise. The user can turn it off, or choose to
“snooze”. If the user does not respond at all, the alarm will turn off itself after 2
minutes. “Snoozing” means to turn off the sound, but the alarm will fire again after
some minutes of delay. This “snoozing time” is pre-adjustable. Identify the top-level
functional requirements for the clock, and model it with a use case diagram.

Level 2 Asia Pacific University of Technology and Innovation Page 1 of 1


Object Oriented Development with Java (CT038-3-2) UML Modeling

Alarm Clock

Level 2 Asia Pacific University of Technology and Innovation Page 2 of 1

You might also like