Subversion Repositories programming

Rev

Rev 328 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
321 ira 1
 
2
#ifndef CONTROLLER_H
3
#define CONTROLLER_H
4
 
5
#include <assert.h>
6
#include <vector>
7
#include "elevator.h"
8
using namespace std;
9
 
10
class Controller
11
{
12
    public:
13
        Controller (int num_floors, int num_elevators);
14
        ~Controller ();
15
 
16
        void request_elevator (int on_floor);
17
 
18
    private:
19
        vector<Elevator> elevators;
20
        int num_floors;
21
        int num_elevators;
22
};
23
 
24
#endif // CONTROLLER_H
25