|
Aggie Student Toolkit — Load Balancer CSCE 412 Project 4
Arnav Fotedar · Fall 2026 · C++ load balancer simulation
|
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+. | |
Running statistics that show the randomness of generated traffic.
Definition at line 33 of file RequestGenerator.h.
|
staticconstexpr |
Number of task-length histogram bins.
Definition at line 34 of file RequestGenerator.h.
|
staticconstexpr |
Arrival-count buckets: 0, 1, 2, 3, 4+.
Definition at line 35 of file RequestGenerator.h.
| unsigned long GeneratorStats::total = 0 |
Requests generated, including the initial queue.
Definition at line 37 of file RequestGenerator.h.
| unsigned long GeneratorStats::initial = 0 |
Requests generated for the initial queue.
Definition at line 38 of file RequestGenerator.h.
| unsigned long GeneratorStats::processing = 0 |
Generated requests with JobType::Processing.
Definition at line 39 of file RequestGenerator.h.
| unsigned long GeneratorStats::streaming = 0 |
Generated requests with JobType::Streaming.
Definition at line 40 of file RequestGenerator.h.
| unsigned int GeneratorStats::minTaskSeen = 0 |
Shortest task actually generated.
Definition at line 41 of file RequestGenerator.h.
| unsigned int GeneratorStats::maxTaskSeen = 0 |
Longest task actually generated.
Definition at line 42 of file RequestGenerator.h.
| unsigned long long GeneratorStats::taskCycleSum = 0 |
Sum of all task lengths, for the mean.
Definition at line 43 of file RequestGenerator.h.
| std::array<unsigned long, kTaskBins> GeneratorStats::taskHistogram {} |
Task lengths split into equal-width bins.
Definition at line 44 of file RequestGenerator.h.
| std::array<unsigned long, kArrivalBins> GeneratorStats::arrivalHistogram {} |
Cycles with 0, 1, 2, 3 and 4+ arrivals.
Definition at line 45 of file RequestGenerator.h.
| unsigned long GeneratorStats::maxArrivalsInCycle = 0 |
Largest burst generated in a single cycle.
Definition at line 46 of file RequestGenerator.h.