Elevator Instructions – Bruinbird

> Define Home Floor: Floor One

> Define Call: Signal from floor to elevator, requesting elevator
> Define Send: Signal received inside elevator for requested destination
> Define Up: Approaching a floor number greater than current floor number
> Define Down: Approaching a Floor number less than current floor number
> Define CD: Current Direction. Approaching a floor greater or less than current floor
> Define Destination: Longest standing, unfulfilled “Call” or “Send” request.
> Define BP: Break Point. 
> Define List: List of requests not yet fulfilled. Organized from furthest end point to closest.
> Define Close: A destination that is close in number to current floor, AND in matching direction of CD
> Define Far: A destination that is far in number to current floor, OR is in opposite direction of CD


> When receive request
> Check if Call or Send
> If Call, check current floor
> Designate current CD as “Up” or “Down”
> Set Destination to floor of origin of the “Call” request
> If Send, Check current floor
> Designate current CD as “Up” or “Down”
> Set Destination to floor designated by “send” request
>Begin Approaching set destination
> WHILE APPROACHING DESTINATION. Check for Call or Send requests regarding floors that are
> if CD is “up”
> Check request, if it is Less than Destination floor, and greater than current floor
> Label request under “BP”
>Else if, put request into “List” and reorganize from furthest end point to closest.
> if CD is “down”
> Check request, if it is greater than Destination floor, and less than current floor
> Label request under “BP”
>Else if, put request into “List” and reorganize from furthest end point to closest.
> If requests are labeled under “BP”, stop at related floors, open doors, and REMOVE request from list and memory.
> When destination achieved. Check current Requests, and requests in “List”
> If any request is in same direction “CD” was considered before arrival, place on priority, and set as new CD
> Else if, Set request from the most “FAR” location to CD. 
>Once new CD is set, wipe previous CD from memory. 
> If request list is empty, and remains empty for 2 minutes. Return to Home Floor.
> Else if, return to top of command list.

This entry was posted in BruinBird, Elevator Instructions. Bookmark the permalink.

1 Response to Elevator Instructions – Bruinbird

  1. davidbdale's avatar davidbdale says:

    I’m going with 100 here because you followed the assignment better than I intended, writing the instructions in a language the elevator could actually follow if not “understand.” I was hoping for more natural English than this, but I didn’t specify that preference. Beautiful work, Bruinbird.

Leave a comment