2 * CS356 Project 01 -- Elevator Simulator
4 * ElevatorController Class Specification
7 #ifndef ELEVATORCONTROLLER_HPP
8 #define ELEVATORCONTROLLER_HPP
10 #include "direction.hpp"
11 #include "elevator.hpp"
19 typedef std::vector<Elevator> ElevatorList;
21 /* Forward-declare Exceptions */
22 class bad_elevator { };
25 class ElevatorController
28 ElevatorController (int floors, int elevators);
30 void call_elevator_to (int floor, Direction direction);
31 void elevator_request (int elevator_number, int floor);
32 void move_elevators ();
35 int number_of_floors_;
36 int number_of_elevators_;
38 ElevatorList elevators_;
42 /* vim: set ts=4 sts=4 sw=4 noet tw=112: */
44 #endif /* ELEVATORCONTROLLER_HPP */