-
Notifications
You must be signed in to change notification settings - Fork 0
/
teller.h
37 lines (29 loc) · 726 Bytes
/
teller.h
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
/*
* PA4_the_murder - Jacob Tutlis - jjtutlis - James Taylor - jrtaylor
* Created on: Feb 12, 2018
* Author: jjtutlis
*/
#ifndef TELLER_H_
#define TELLER_H_
#include <cstdio>
#include <cstdlib>
#include "event.h"
//
const int IDLE_MAX = 160;
class Teller{
public:
int getIdle(); //gets random time
int getActiveTime(); // gets active time
void setActiveTime(int currentTime); // sets active time
Teller();
virtual ~Teller(){; // destructor
}
private:
// random idle time between 0 - IDEL_MAX
int idleTime;
// time till teller is activated
// takes current world time and adds length needed for processing
int activeTime;
bool isOpen; // true if teller is able to process
};
#endif /* TELLER_H_ */