7 #include "position.hpp"
8 #include "elevator.hpp"
9 #include "elevatorcontroller.hpp"
10 #include "elevatorgui.hpp"
12 #include <gtkmm/main.h>
15 int main (int argc, char *argv[])
18 const int elevators = 3;
21 Gtk::Main app(argc, argv);
23 ElevatorGUI eg(floors, elevators);
30 #if TEST_ELEVATORCONTROLLER
31 const int floors = 10;
32 const int elevators = 2;
34 ElevatorController ec(floors, elevators);
36 //ec.elevator_request (0, 2);
37 ec.call_elevator_to (3, DOWN);
39 for (int i=0; i<35; i++)
42 // Note: without the GUI, this is dependent on choosing the same elevator
43 // that was randomly chosen by the call_elevator_to() funtion.
45 // This may need to be run a few times to work :)
46 ec.elevator_request (0, 2);
48 for (int i=0; i<35; i++)
68 for (int i=0; i<100; ++i)
78 /* vim: set ts=4 sts=4 sw=4 noet tw=112: */