There are 5 floors in this building in which people can push the elevator button. They can travel up and down the elevator. With this being said, the following is the instructions for the elevator to work.
1.When elevator is not in use for 20 seconds, return to floor 1.
2.When Summons Button is pressed, proceed to the corresponding floor.
3.Open the doors when arrived at destination.
4.Close doors after 8 seconds of no motion detected
5.If motion is detected while the doors are closing, reopen doors for 8 more seconds; repeat if necessary.
6.If moving “up”, disregard all “down” summons and proceed to the nearest floor above, in the queue.
7.If proceeding “down”, “ignore all “up” summons and proceed to the nearest floor below, in the queue.
8. If arrived at floor one when responding to all down summons, do not continue step 7. Go to latest summons received.
9.Upon reaching the destination, remove from summons queue.
10.Repeat steps 3-5, and then continue in the same direction until the higher floor in the queue has been reached.
11.When number “1” button is pressed, go to Floor 1 if it follows the queue order.
12. When number “2” button is pressed, go to Floor 2 if it follows the queue order.
13. When number “3” button its pressed, go to Floor 3 if it follows the queue order.
14. When number “4” button its pressed, go to Floor 4 if it follows the queue order.
15.When number “5” button its pressed, go to Floor 5 if it follows the queue order.
16.If proceeding in an up direction, light up “up arrow” above each door frame in the hallway.
17.If proceeding in a down direction, light up “down arrow” above each door frame in the hallway.
18. When on Floor 1, light up a “1” above each door frame next to arrow.
19.When on Floor 2, light up a “2” above each door frame next to arrow.
20. When on Floor 3, light up a “3” above each door frame next to arrow.
21.When on Floor 4, light up a “4” above each door frame next to arrow.
22.When on Floor 5, light up a “5” above each door frame next to arrow.
23.Upon arrival of any destination make a bell sound “ding”.
24. Open door when “open door” button is pushed
25. Close door when”close door” button is pushed, unless motion is is detected
26.When “emergency” button is pressed, send signal to front desk asking for help.
There’s a lot to love here, Taco. But there’s also plenty of room for improvement. Let’s just look at the first set of instructions and see if my remarks can help you improve the assignment overall.
—I think this could end with “return to floor 1.” There is no need for the elevator to understand the “home floor” concept. And it does not need to be told to stay idle. Idle is its natural condition. It moves only when it’s summoned to move for sent to a floor by a Destination button. I guess you call them Number buttons.
—Proceed is a better verb than Arrive, I think. “The corresponding floor” is probably enough language to end on. It can’t correspond to anything other than where the button was pushed.
—Open the doors for 10 seconds does not even suggest “close the doors after 10 seconds.” The elevator doors will not close unless you tell them to.
—I presume you mean that motion would be detected while the doors are closing. Or do you want passengers to be able to keep adding 10 seconds by breaking a sensor while the doors are still open and not closing?
—It might not matter (you decide), but for this reader (admittedly not the one who counts), the sequence of the door instructions is odd. My brain likes Open, Close, If obstructed Reopen, Close.
—You can do this if you like, but I don’t think the elevator is in charge of lighting the buttons. The button responds to the pressure by lighting. The elevator responds to the pressure by moving as directed.
—I do love the summons queue, as I indicated during my presentation of the Crabs Instructions to the class on WED OCT 08. But the Crabs version isn’t perfect, and this one isn’t either. “nearest highest” is confusing. Will this instruction continue to serve once the first floor is reached and served?
—Will this instruction continue to serve once the first floor is reached and served?
—Shouldn’t you tell the elevator to continue in the same direction until the highest floor in the queue has been served?
—Do you have to tell it to reverse course then and head down, stopping in order at the down-direction summons calls?
Those more than the door dings and bell-lighting instructions are the important ones for me, though I do appreciate that you thought of the bells and maybe the Muzak, and the lights. You didn’t mention all the lights, of course. Most modern elevators have Instructional Lights above the door frame in the hallway to indicate BOTH the elevator’s current direction of travel and what floor it’s on, for example.
I’ll grade this according to this draft, Taco, giving credit for the creation of the Queue. Put it back into Feedback Please or Grade Please following any significant improvements.
Significant improvements noted and regraded.
You won’t achieve any further grade improvements unless you scan the work of classmates who have learned how to create GENERAL rules that alleviate the need to create a different instruction for the same response to calls from five different floors.
(Might not be worth the effort, but it’s your call.)