Dynamic C-server Queueing System Simulation  1.0
Simulating data for delay prediction
tandem.h
Go to the documentation of this file.
1 #include "station.h"
2 #ifndef TANDEM_H
3 #define TANDEM_H
4 class tandem
5 {
6  std::vector<station> station_list;
8  std::vector<std::tuple<int, float, int,std::vector<std::tuple<int,int,int>>, float, float>> system_counter_variable;
9  /*
10  0 - Customer id
11  1 - Time of arrival
12  2 - Number of people in system at arrival
13  3 - Vector containing information about all the stations
14  3 - Service times at last station
15  4 - Departure times of system
16  */
17  int N; //Number of people in system
18 
19 public:
20  tandem(std::vector<station> temp);
21  std::tuple<int, float> find_least_dep_time();
22  void print_system_status(float t);
23  void add_customer_to_system(float t, int arriving_customer);
24  void departure_updates(int station_index, float t);
25  void server_updates(float t);
26  void write_to_csv(std::string tandem_name);
27  void logger(float t);
28  void initialize_CSV(std::string file_name);
29  void dump_counter_variable_memory(std::string file_name);
30 };
31 #endif
std::vector< station > station_list
Definition: tandem.h:6
void departure_updates(int station_index, float t)
Definition: tandem.cpp:41
void initialize_CSV(std::string file_name)
Definition: tandem.cpp:161
int number_of_station
Definition: tandem.h:7
tandem(std::vector< station > temp)
Definition: tandem.cpp:3
std::tuple< int, float > find_least_dep_time()
Definition: tandem.cpp:25
void dump_counter_variable_memory(std::string file_name)
Definition: tandem.cpp:177
void logger(float t)
Definition: tandem.cpp:101
void add_customer_to_system(float t, int arriving_customer)
Definition: tandem.cpp:10
void print_system_status(float t)
Definition: tandem.cpp:83
int N
Definition: tandem.h:17
Definition: tandem.h:4
std::vector< std::tuple< int, float, int, std::vector< std::tuple< int, int, int > >, float, float > > system_counter_variable
Definition: tandem.h:8
void write_to_csv(std::string tandem_name)
Definition: tandem.cpp:108
void server_updates(float t)
Definition: tandem.cpp:93