Rev 332 | Blame | Last modification | View Log | RSS feed
#include <cstdio>
#include <unistd.h>
using namespace std;
#include "controller.h"
#include "elevator.h"
int main (int argc, char *argv[])
{
int i = 0;
Controller c (10, 2);
c.start_all_elevators ();
c.request_elevator (2, MOVE_UP);
sleep (20);
c.request_elevator (2, MOVE_DOWN);
sleep (40);
c.stop_all_elevators ();
return 0;
}