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

#include <queue_graph.h>

Public Member Functions

 graph (int init_N, int init_max_queue_len, std::vector< std::vector< std::pair< int, int >>> init_network, std::vector< station > temp)
 
std::tuple< int, float > find_least_dep_time ()
 
void add_customer_to_graph (float t, int customer_id)
 
void departure_updates (int station_index, float t)
 
void server_updates (float t)
 
void write_to_csv (std::string file_name)
 

Private Attributes

int num_nodes
 
int N
 
int max_queue_len
 
std::vector< std::vector< std::pair< int, int > > > network
 
std::vector< stationstation_list
 
std::vector< std::tuple< int, float, int, float, float > > system_counter_variable
 

Constructor & Destructor Documentation

◆ graph()

graph::graph ( int  init_N,
int  init_max_queue_len,
std::vector< std::vector< std::pair< int, int >>>  init_network,
std::vector< station temp 
)

Member Function Documentation

◆ add_customer_to_graph()

void graph::add_customer_to_graph ( float  t,
int  customer_id 
)

◆ departure_updates()

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

◆ find_least_dep_time()

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

◆ server_updates()

void graph::server_updates ( float  t)

◆ write_to_csv()

void graph::write_to_csv ( std::string  file_name = "data_system")

Member Data Documentation

◆ max_queue_len

int graph::max_queue_len
private

◆ N

int graph::N
private

◆ network

std::vector< std::vector< std::pair<int,int> > > graph::network
private

◆ num_nodes

int graph::num_nodes
private

◆ station_list

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

◆ system_counter_variable

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

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