-
Notifications
You must be signed in to change notification settings - Fork 0
/
event.cpp
42 lines (35 loc) · 678 Bytes
/
event.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* PA4_the_murder - Jacob Tutlis - jjtutlis - James Taylor - jrtaylor
* Created by jrtaylor on 2/10/18.
*/
#include "event.h"
/**
* Blank constructor for
*/
event::event(){
}
/**
* Normally used constructor
* @param simTime the max time for the simulation to run
* @param tellers the number of tellers, used to assign to a random line
*/
event::event(int simTime, int tellers){
arrTime = rand()%simTime;
line = rand()%tellers;
}
/**
* @return arrival time
*/
int event::getArrTime(){
return arrTime;
}
/**
* @return what line the customer is in
*/
int event::getLine() {
return line;
}
/**
* destructor for an event
*/
event::~event() {}