dev-master
9999999-devAssessment for LenderHomePage.com
MIT
The Requires
The Development Requires
by Austin White
dev-algorithm
dev-algorithmAssessment for LenderHomePage.com
MIT
The Requires
The Development Requires
by Austin White
Wallogit.com
2017 © Pedro Peláez
Assessment for LenderHomePage.com
First there is an elevator class., (*1)
It has a direction (up, down, stand, maintenance), a current floor and a list of floor requests sorted in the direction., (*2)
Each elevator has a set of signals: Alarm, Door open, Door close., (*3)
The scheduling will be like:, (*4)
Sample data: * Elevator standing in first floor * Request from 6th floor go down to ground(first floor). * Request from 5th floor go up to 7th floor * Request from 3rd floor go down to ground * Request from ground go up to 7th floor. * Floor 2 and 4 are in maintenance., (*5)
Install Composer., (*6)
Terminal:, (*7)
$ git clone git@github.com:AustinW/elevator.git $ cd elevator $ php composer.phar install
$ php composer.phar phpunit
Or:, (*8)
$ phpunit
Assessment for LenderHomePage.com
MIT
Assessment for LenderHomePage.com
MIT