Woodrow Binnicker Jackson Stephanie Cary Jackson Ryan Hunt Jackson Matt Lyons Jackson Cody Nelson Jackson

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 13

Woodrow Binnicker Jackson Stephanie Cary Jackson Ryan Hunt Jackson Matt Lyons Jackson Cody Nelson Jackson

Design Class Diagram

DCD Simplified

Use Case 1: Set the Time


Preconditions: Clock must be connected to a power source. Success Guarantee: Clock displays the given time. Main Success Scenario: User references another clock to determine the time. User puts clock in time-adjust mode and the time display begins blinking. User enters the correct hours and minutes, and AM/PM value. User takes clock out of time-adjust mode. Clocks time display shows the new time. Extensions: User changes the time from standard time to DST. The hour is automatically incremented by one. User changes the time from DST to standard time. The hour is automatically decremented by one.

Use Case 2: Set Alarm Time


Preconditions: Clock must be connected to a power source. Success Guarantee: The system accepts the input time and indicates that it will go off at the set time. If the user does not change or set the alarm time, the system will not update. Main Success Scenario: User puts machine in alarm-set mode and selects which alarm to set. User enters the time (hours and minutes and AM/PM) at which he or she desires to awake. User takes the machine out of alarm-set mode. Display returns to the time. Extensions: User does not input a new time. The system sets the time to wake up at 12:00 AM by default.

Use Case 3: Turn Alarm On


Preconditions: Clock must be connected to a power source; clock must be set to correct time; alarm must be set to desired time. Success Guarantee: The alarm goes off at the desired time and is correct in being either a buzzer or radio. If user purposefully does not turn on the alarm, the alarm should not sound. Main Success Scenario: Recommendation: User checks the current time and the alarm time, including the AM/PM setting. User sets the alarm to buzzer mode. Extensions: User prefers a radio instead of the buzzer. User sets the volume of the radio to desired loudness. User sets the alarm to radio mode.

Use Case 4: Snooze Alarm


Preconditions: Clock must be connected to a power source, alarm must be sounding. Success Guarantee: Alarm is disabled for fifteen minutes by pressing the snooze button. Main Success Scenario: Alarm buzzer begins at time set for the alarm. User presses the snooze button. Alarm buzzer stops. Snooze Time is reset for 15 minutes later. When the Snooze Time is reached the buzzer begins again. Extensions: Alarm is set to radio mode. Alarm radio begins at time set for the alarm.

Use Case 5: Dismiss Alarm


Preconditions: Clock must be connected to a power source, alarm must be active. Success Guarantee: Alarm is disabled until the next time that the alarm time is reached by pressing the dismiss button. Main Success Scenario: Alarm buzzer is sounding. User presses the dismiss button. Alarm buzzer stops. Extensions: Alarm radio is sounding. Alarm is not sounding, but is active.

Use Case 6: Turn Alarm Off


Preconditions: Clock must be plugged into a power source; alarm must be on. Success Guarantee: The alarm will not sound and wake the user. Main Success Scenario: Alarm is sounding. User turns off the alarm. Alarm stops sounding. Extensions: Alarm is not sounding, but is set to the on position. User turns off the alarm. When the clock reaches the time set for the alarm, the alarm will not sound.

Use Case 7: Turn Radio On


Preconditions: Clock must be connected to a power source. Success Guarantee: The user is able to hear the radio. Main Success Scenario: User sets the radio to on mode. User can hear the radio. Extensions: Alarm is sounding User turns off the alarm. Continue with Main Success Scenario Steps 1 and forward.

Use Case 8: Change Station


Preconditions: Clock must be connected to a power source, the radio must be on. Success Guarantee: The desired radio station will play when the radio is turned on, whether by the alarm or by the user. Main Success Scenario: User turns radio on. *See Use-Case 7 User selects radio type: AM/FM. User increments the radio station until desired station is reached. User turns the radio off. *See Use-Case 9 Extensions: Radio is already on. Begin with Main Success Scenario Step 2 and continue. User decrements the radio station until desired station is reached. User does not turn the radio off.

Use Case 9: Change Volume


Preconditions: Clock must be connected to a power source. Success Guarantee: The radios volume is set to a new value. Main Success Scenario: Radio is playing quietly and user wants it to be louder. User increases the volume until the desired volume is reached. Extensions: Radio is playing more loudly than the user would like. User decrements the volume until the desired volume is reached. Volume is at its minimum value. User tries to slide volume past minimum value. Volume does not change. Volume is at its maximum value. User tries to slide volume past maximum value. Volume does not change.

Use Case 10: Turn Radio Off


Preconditions: Clock must be connected to a power source and the radio must be on. Success Guarantee: The radio stops playing. Main Success Scenario: User sets the radio to off mode. Radio stops playing.

You might also like