#include <trf_gen_v3.h>
Public Member Functions | |
StreamPareto (load_t ld, float mean_burst, shape_t shape) | |
virtual | ~StreamPareto () |
virtual void | SetLoad (load_t load) |
Private Member Functions | |
virtual burst_size_t | NextBurstSize (void) |
virtual pause_size_t | NextPauseSize (void) |
Private Attributes | |
float | MinBurst |
float | MinPause |
shape_t | Shape |
pause_size_t | pause |
burst_size_t | burst |
Definition at line 223 of file trf_gen_v3.h.
virtual GEN::StreamPareto::~StreamPareto | ( | ) | [inline, virtual] |
virtual burst_size_t GEN::StreamPareto::NextBurstSize | ( | void | ) | [inline, private, virtual] |
Reimplemented from GEN::Stream.
Definition at line 236 of file trf_gen_v3.h.
00237 { 00238 //Generate a pareto distribution 00239 //According to http://www.omnetpp.org/listarchive/msg10899.php and 00240 //the file included in omnetpp: test/dist/omnetpp.ini, lines 390-425. 00241 burst=round<burst_size_t>(pareto_shifted(Shape,MinBurst,0)); 00242 return burst; 00243 }
virtual pause_size_t GEN::StreamPareto::NextPauseSize | ( | void | ) | [inline, private, virtual] |
Reimplemented from GEN::Stream.
Definition at line 244 of file trf_gen_v3.h.
00245 { 00246 pause=round<pause_size_t>(pareto_shifted(Shape,MinPause,0)); 00247 return pause; 00248 }
virtual void GEN::StreamPareto::SetLoad | ( | load_t | load | ) | [inline, virtual] |
Reimplemented from GEN::Stream.
Definition at line 265 of file trf_gen_v3.h.
00266 { 00267 MinPause = MinBurst * ( 1.0F / SetInRange(load, MIN_LOAD, MAX_LOAD) - 1.0F ); 00268 }
burst_size_t GEN::StreamPareto::burst [private] |
Definition at line 233 of file trf_gen_v3.h.
float GEN::StreamPareto::MinBurst [private] |
Definition at line 227 of file trf_gen_v3.h.
float GEN::StreamPareto::MinPause [private] |
Definition at line 228 of file trf_gen_v3.h.
pause_size_t GEN::StreamPareto::pause [private] |
Definition at line 232 of file trf_gen_v3.h.
shape_t GEN::StreamPareto::Shape [private] |
Definition at line 229 of file trf_gen_v3.h.