0% found this document useful (0 votes)
13 views8 pages

Programming Assignment Unit 3

The document outlines a programming assignment for a garage door system, detailing actors, use cases, and system diagrams. Key actors include the owner, motion detector sensor, and remote control system, with use cases such as opening the garage door and detecting motion. It also includes a fully dressed use case description for remote control operation and operation contracts for the system's functionality.

Uploaded by

lema faqir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views8 pages

Programming Assignment Unit 3

The document outlines a programming assignment for a garage door system, detailing actors, use cases, and system diagrams. Key actors include the owner, motion detector sensor, and remote control system, with use cases such as opening the garage door and detecting motion. It also includes a fully dressed use case description for remote control operation and operation contracts for the system's functionality.

Uploaded by

lema faqir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Programming Assignment Unit 3: Use Case Modeling and UML.

University of the People

CS 2401 – Software Engineering 1

Adebayo Abayomi-Alli (Instructor).

February 19, 2025.


Question a: Identify the actors for the system and their goals

1. Owner: The main user of the garage door, who controls it using a manual button switch or

remote control.

2. Motion Detector Sensor: Turns on the exterior lightbulb when it detects movement.

3. Garage Door System: Manages the mechanism for opening and closing in accordance with

user input and safety regulations.

4. Electric Eye Sensor: Provides security by identifying obstacles beneath the garage door that is

closing.

5. Remote control system: Wireless garage door opener functioning is made possible by the

remote control system.

Question b: Derive only the use cases relevant to the system objective and write

brief or casual text description of each

1. Detect Motion and Turn on Light

Description: For security and visibility reasons, the system automatically activates the external

light when motion is detected inside a predetermined boundary.

2. Open Garage Door using Remote Control

Description: The owner opens the garage door by pressing a button on the remote control, which

signals the system to turn on the motor.

3. Open Garage Door using Manual Button


Description: The garage door opens when the owner hits the manual button switch.

4. Close Garage Door

Description: If the electric eye sensor is clear, owner can direct the system to close the garage

door by pressing a button (either manual or remote).

5. Safety Feature - Stop and Reverse Door Movement

Description: To prevent accidents, the system reverses the garage door and stops it if the electric

eye sensor detects an impediment while it is closing.

Question c: Draw the use case diagram for the system

+----------------------------------+

| Garage Door System |

+----------------------------------+

/ | | \

/ | | \

+--------+ +--------+ +----------+ +-------------+ +------------------+

| Owner | | Motion | | Electric| | Remote | | Manual Button |

| (O) | | Sensor | | Eye | | Control Sys | | Switch |

+--------+ +--------+ +---------+ +-------------+ +------------------+

| | | | |

| | | | |
[Open/Close Door] [Detect Motion] [Check Obstacle] [Send Signal] [Press Button]

| | | | |

[Stop & Reverse] [Turn On Light] | | |

[Obstacle Detected]

Question d: For the use case that deals with the remote-controlled garage door

opening, write a fully dressed description

Use Case Name: Open Garage Door Using Remote Control

Primary Actor: Owner

Interests & Stakeholders:

For convenience, the owner would like to be able to remotely open the garage door.

System: Needs to make sure the garage door runs securely and smoothly.

Preconditions:

1. The system needs to be operational and powered.

2. The receiver and remote control need to be paired.

Main Success Scenario:

1. The homeowner hits the button on the remote control.

2. A signal is sent to the garage door system by the remote control.

3. After obtaining the signal, the system turns on the motor.


4. The garage door opens.

5. The mechanism makes sure that nothing gets in the way of movement.

6. The mechanism completes the process when the door fully opens.

Extensions:

1. The system will not respond if the remote control signal is weak, and the owner will be

prompted to try again.

2. The system stops working and notifies the owner if it detects an obstruction.

Question d: Draw the system sequence diagram(s) for the use case selected in (d)

Owner Remote Garage Door System Motor Electric Eye Sensor

| | | | |

| Press Button | | | |

|--------------------> | | | |

| | Send Signal | | |

| |------------------> | | |

| | | Activate Motor | |

| | |----------------------> | |

| | | | Door Moving |
| | | |------------------>|

| | | Check Sensor | |

| | |----------------------> | |

| | | | Obstruction? |

| | | |<------------------|

| | | Stop & Reverse | |

| | |<---------------------- | |

Question e: Show the operation contracts for the operations of the use case selected

in (d)

Operation Name: openGarageDoor()

Cross-References: Use Case – Remote-Controlled Garage Door Opening

Responsibilities:

1. Set the garage door motor to run.

2. Make sure the electric eye sensor and other safety features are turned on.

3. Get the garage door to open.

Preconditions:

1. The remote control sends a legitimate signal to the system, which is operational.
The post conditions:

1. The garage door motor is turned on.

2. Unless there is an obstruction, the garage door opens entirely.

3. The action is recorded by the system for logging purposes.


References.

Ambler, S. (2003-2018). UML 2 Use Case Diagrams: An Agile Introduction. Agile Modeling.

http://www.agilemodeling.com/artifacts/useCaseDiagram.htm

Bell, D. (2003, June 14). An introduction to the Unified Modeling Language. IBM

DeveloperWorks. http://www.ibm.com/developerworks/rational/library/769.html

Marsic, I. (2012, September 10). Software Engineering. Rutgers: The State University of New

Jersey. https://my.uopeople.edu/pluginfile.php/57436/mod_book/chapter/46513/

CS4403MarsicTextbook.pdf

UML Resources. (n.d.). Unified Modeling Language. http://www.uml.org/resource-hub.htm

You might also like