7 #include "position.hpp"
8 #include "elevator.hpp"
9 #include "elevatorcontroller.hpp"
12 int main (int argc, char *argv[])
14 const int floors = 10;
15 const int elevators = 2;
17 ElevatorController ec(floors, elevators);
19 //ec.elevator_request (0, 2);
20 ec.call_elevator_to (3, DOWN);
22 for (int i=0; i<35; i++)
25 // Note: without the GUI, this is dependent on choosing the same elevator
26 // that was randomly chosen by the call_elevator_to() funtion.
28 // This may need to be run a few times to work :)
29 ec.elevator_request (0, 2);
31 for (int i=0; i<35; i++)
50 for (int i=0; i<100; ++i)
60 /* vim: set ts=4 sts=4 sw=4 noet tw=112: */