CS2401ProgrammingAssignment3

docx

School

University of the People *

*We aren’t endorsed by this school

Course

2401

Subject

Electrical Engineering

Date

Apr 3, 2024

Type

docx

Pages

5

Uploaded by CommodoreBeePerson881

Report
A. Identify the actors for the system and their goals Each actor has a specific goal to perform an action to trigger an interaction with the system. The actors that interact with the system-to-be are listed below. I have included a timer as an actor. Once the garage door light is activated by its motion detector, the timer then will begin a countdown to 0. When the timer has reached 0, the garage light automatically switches off. (Marsic, 2012) Actor Actors Goal Owner For the door to open and close by using a garage door remote transmitter or manual button Motion detector To detect motion within a specific perimeter and to activate the garage light Electric eye sensor To detect if someone or something passes under the garage door as it’s closing and activates it to automatically stop and reverse the function of the garage door Timer schedules the automatic switch of the light off B. Derive only the use cases relevant to the system objective and write brief or casual text description of each a. These are the use cases listed that are relevant to the system object: I. Auto Open use case. The owner has the ability to open the garage by using the remote control. II. Auto Close use case. The owner has the ability to close the garage by using the remote control. III. Manual Open use case . The owner has the ability to open the garage door using a manual button. IV. Manual Close use case. The owner has the ability to close the garage door using the manual button. V. Light On use case . The light is automatically turned on when the motion detector has been activated. VI . Light Off use case. When the light on use case happens, the timer is then activated. The light automatically turns off when the timer hits 0. VII Auto Stop use case . The system automatically stops and activates either the Auto Close use case or the Manual Close use case.
C. Draw the use case diagram for the system Please See Attachment for diagram In my diagram, I used the term < > to illustrate use cases that are related to another use case. As an example, when starting the Auto Stop use case by the eye sensor actor, the system stops automatically and will activate either the Auto Close or the Manual Close use case. D. For the use case that deals with the remote-controlled garage door opening, write a fully dressed description Use Case: Auto Open Initiating actor Owner Actor’s goal Either entering or exiting the garage Preconditions The garage door has to be closed ● The remote control & receiver need to be configured to work together Post Condition: The Garage door will open. My Flow of events for the main success scenario 1. The user presses the remote-control button 2. (a). The remote control provides a signal to open the door to the remote (b) The remote control receives the message, then confirms that it is assembled with the remote control 3. The system uses the motor that opens the garage door 4. The user can enter or exit the garage Alternate Scenarios 1. The user presses the remote-control button 2. (a). The remote-control transmitter sends the signal to open the door to the remote receiver (b). The remote receiver receives the message and cannot validate that it is configured with the remotecontrol transmitter
1. The user presses the remote-control button The Garage door stays closed Keep in mind, The system will alert the owner that the remote control is not configured. Therefore it would not be functional. 2. The owner stops the garage door from opening by pressing the remote control The user presses the button on their remote control 2(a). The remote control sends the signal to open the door to the remote receiver 2(b). The receiver gets the message and will validate configuration with the remote control 3. The system utilizes the motor in order to open the garage door 4. The user can press the remote control button again 5. The remote control gets the message and activates the Auto Stop use case E. Draw the system sequence diagram(s) for the use case selected in (d)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
See attached diagrams Owne r Syste m Send Open Message Validate configuration Send Validation Message open the garage door Scenario E
F. Show the operation contracts for the operations of the use case selected in (d) Operation AutoOpen() Cross Reference Use case: Auto Open Preconditions The garage door needs to be closed. The remote-control needs to be put together in order for it to work. Postconditions The garage door is opened References: Marsic, I. (2012). Software engineering. Rutgers University. http://www.ece.rutgers.edu/~marsic/books/SE/book-SE_marsic.pdf. Owner System Send Open Message Send Invalidation Message Validate configuration Keep the garage door closed Alternate Scenario for E