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
#include "controller.h"
3
 
4
Controller::Controller (int num_floors, int num_elevators) : num_floors (num_floors), num_elevators (num_elevators)
5
{
6
    assert (num_floors > 2);
7
    assert (num_elevators > 0);
8
 
9
    elevators = vector<Elevator> (num_elevators, Elevator (num_floors));
10
}
11
 
12
Controller::~Controller ()
13
{
14
}
15
 
16
void Controller::request_elevator (int on_floor)
17
{
18
}
19