Aggie Student Toolkit — Load Balancer CSCE 412 Project 4
Arnav Fotedar · Fall 2026 · C++ load balancer simulation
Loading...
Searching...
No Matches
GeneratorStats Struct Reference

Running statistics that show the randomness of generated traffic. More...

#include <RequestGenerator.h>

Public Attributes

unsigned long total = 0
 Requests generated, including the initial queue.
unsigned long initial = 0
 Requests generated for the initial queue.
unsigned long processing = 0
 Generated requests with JobType::Processing.
unsigned long streaming = 0
 Generated requests with JobType::Streaming.
unsigned int minTaskSeen = 0
 Shortest task actually generated.
unsigned int maxTaskSeen = 0
 Longest task actually generated.
unsigned long long taskCycleSum = 0
 Sum of all task lengths, for the mean.
std::array< unsigned long, kTaskBins > taskHistogram {}
 Task lengths split into equal-width bins.
std::array< unsigned long, kArrivalBins > arrivalHistogram {}
 Cycles with 0, 1, 2, 3 and 4+ arrivals.
unsigned long maxArrivalsInCycle = 0
 Largest burst generated in a single cycle.

Static Public Attributes

static constexpr std::size_t kTaskBins = 10
 Number of task-length histogram bins.
static constexpr std::size_t kArrivalBins = 5
 Arrival-count buckets: 0, 1, 2, 3, 4+.

Detailed Description

Running statistics that show the randomness of generated traffic.

Definition at line 33 of file RequestGenerator.h.

Member Data Documentation

◆ kTaskBins

std::size_t GeneratorStats::kTaskBins = 10
staticconstexpr

Number of task-length histogram bins.

Definition at line 34 of file RequestGenerator.h.

◆ kArrivalBins

std::size_t GeneratorStats::kArrivalBins = 5
staticconstexpr

Arrival-count buckets: 0, 1, 2, 3, 4+.

Definition at line 35 of file RequestGenerator.h.

◆ total

unsigned long GeneratorStats::total = 0

Requests generated, including the initial queue.

Definition at line 37 of file RequestGenerator.h.

◆ initial

unsigned long GeneratorStats::initial = 0

Requests generated for the initial queue.

Definition at line 38 of file RequestGenerator.h.

◆ processing

unsigned long GeneratorStats::processing = 0

Generated requests with JobType::Processing.

Definition at line 39 of file RequestGenerator.h.

◆ streaming

unsigned long GeneratorStats::streaming = 0

Generated requests with JobType::Streaming.

Definition at line 40 of file RequestGenerator.h.

◆ minTaskSeen

unsigned int GeneratorStats::minTaskSeen = 0

Shortest task actually generated.

Definition at line 41 of file RequestGenerator.h.

◆ maxTaskSeen

unsigned int GeneratorStats::maxTaskSeen = 0

Longest task actually generated.

Definition at line 42 of file RequestGenerator.h.

◆ taskCycleSum

unsigned long long GeneratorStats::taskCycleSum = 0

Sum of all task lengths, for the mean.

Definition at line 43 of file RequestGenerator.h.

◆ taskHistogram

std::array<unsigned long, kTaskBins> GeneratorStats::taskHistogram {}

Task lengths split into equal-width bins.

Definition at line 44 of file RequestGenerator.h.

◆ arrivalHistogram

std::array<unsigned long, kArrivalBins> GeneratorStats::arrivalHistogram {}

Cycles with 0, 1, 2, 3 and 4+ arrivals.

Definition at line 45 of file RequestGenerator.h.

◆ maxArrivalsInCycle

unsigned long GeneratorStats::maxArrivalsInCycle = 0

Largest burst generated in a single cycle.

Definition at line 46 of file RequestGenerator.h.


The documentation for this struct was generated from the following file: