#include <trf_gen_v3.h>
Public Member Functions | |
StreamExpon (load_t ld, float mean_burst) | |
virtual | ~StreamExpon () |
virtual void | SetLoad (load_t load) |
Private Member Functions | |
virtual burst_size_t | NextBurstSize (void) |
virtual pause_size_t | NextPauseSize (void) |
Private Attributes | |
float | MeanPause |
float | MeanBurst |
burst_size_t | burst |
pause_size_t | pause |
Definition at line 279 of file trf_gen_v3.h.
GEN::StreamExpon::StreamExpon | ( | load_t | ld, | |
float | mean_burst | |||
) | [inline] |
virtual GEN::StreamExpon::~StreamExpon | ( | ) | [inline, virtual] |
virtual burst_size_t GEN::StreamExpon::NextBurstSize | ( | void | ) | [inline, private, virtual] |
Reimplemented from GEN::Stream.
Definition at line 288 of file trf_gen_v3.h.
00288 { 00289 burst=round<burst_size_t>(exponential(MeanBurst)); 00290 return burst; 00291 }
virtual pause_size_t GEN::StreamExpon::NextPauseSize | ( | void | ) | [inline, private, virtual] |
Reimplemented from GEN::Stream.
Definition at line 293 of file trf_gen_v3.h.
00293 { 00294 pause=round<pause_size_t>(exponential(MeanPause)); 00295 return pause; 00296 }
virtual void GEN::StreamExpon::SetLoad | ( | load_t | load | ) | [inline, virtual] |
Reimplemented from GEN::Stream.
Definition at line 312 of file trf_gen_v3.h.
00313 { 00314 MeanPause = MeanBurst * ( 1.0F / SetInRange(load, MIN_LOAD, MAX_LOAD) - 1.0F ); 00315 }
burst_size_t GEN::StreamExpon::burst [private] |
Definition at line 285 of file trf_gen_v3.h.
float GEN::StreamExpon::MeanBurst [private] |
Definition at line 283 of file trf_gen_v3.h.
float GEN::StreamExpon::MeanPause [private] |
Definition at line 282 of file trf_gen_v3.h.
pause_size_t GEN::StreamExpon::pause [private] |
Definition at line 286 of file trf_gen_v3.h.