Dynamic C-server Queueing System Simulation  1.0
Simulating data for delay prediction
Public Member Functions | Private Attributes | List of all members
tandem Class Reference

#include <tandem.h>

Public Member Functions

 tandem (std::vector< station > temp)
 
std::tuple< int, float > find_least_dep_time ()
 
void print_system_status (float t)
 
void add_customer_to_system (float t, int arriving_customer)
 
void departure_updates (int station_index, float t)
 
void server_updates (float t)
 
void write_to_csv (std::string tandem_name)
 
void logger (float t)
 
void initialize_CSV (std::string file_name)
 
void dump_counter_variable_memory (std::string file_name)
 

Private Attributes

std::vector< stationstation_list
 
int number_of_station
 
std::vector< std::tuple< int, float, int, std::vector< std::tuple< int, int, int > >, float, float > > system_counter_variable
 
int N
 

Constructor & Destructor Documentation

◆ tandem()

tandem::tandem ( std::vector< station temp)

Member Function Documentation

◆ add_customer_to_system()

void tandem::add_customer_to_system ( float  t,
int  arriving_customer 
)

◆ departure_updates()

void tandem::departure_updates ( int  station_index,
float  t 
)

◆ dump_counter_variable_memory()

void tandem::dump_counter_variable_memory ( std::string  file_name = "data_system")

◆ find_least_dep_time()

std::tuple< int, float > tandem::find_least_dep_time ( )

◆ initialize_CSV()

void tandem::initialize_CSV ( std::string  file_name = "data_system")

◆ logger()

void tandem::logger ( float  t)

◆ print_system_status()

void tandem::print_system_status ( float  t)

◆ server_updates()

void tandem::server_updates ( float  t)

◆ write_to_csv()

void tandem::write_to_csv ( std::string  tandem_name = "data_system")

Member Data Documentation

◆ N

int tandem::N
private

◆ number_of_station

int tandem::number_of_station
private

◆ station_list

std::vector<station> tandem::station_list
private

◆ system_counter_variable

std::vector<std::tuple<int, float, int,std::vector<std::tuple<int,int,int> >, float, float> > tandem::system_counter_variable
private

The documentation for this class was generated from the following files: