| 83 | } |
| 84 | |
| 85 | inline double FlowGen::MaxFlowPkts() const { |
| 86 | switch (duration_) { |
| 87 | case Duration::kUniform: |
| 88 | return flow_pkts_; |
| 89 | case Duration::kPareto: |
| 90 | return scaled_pareto_variate(pareto_.inversed_alpha, pareto_.mean, |
| 91 | flow_pkts_, 1.0); |
| 92 | default: |
| 93 | CHECK(0); |
| 94 | } |
| 95 | return 0; |
| 96 | } |
| 97 | |
| 98 | inline uint64_t FlowGen::NextFlowArrival() { |
| 99 | switch (arrival_) { |
nothing calls this directly
no test coverage detected