SourceExpon Class Reference

#include <source.h>

Inheritance diagram for SourceExpon:

Source DLinkable

List of all members.

Public Member Functions

 SourceExpon (int16u id, int16u prior, pct_size_t pct_sz, pct_size_t preamble, DOUBLE load, DOUBLE mean_burst)
virtual ~SourceExpon ()
virtual void SetLoad (DOUBLE load)

Private Member Functions

virtual int32u GetBurstSize (void)
virtual bytestamp_t GetGapSize (void)

Private Attributes

bytestamp_t MeanGap
DOUBLE MeanBurst


Detailed Description

Definition at line 210 of file source.h.


Constructor & Destructor Documentation

SourceExpon::SourceExpon ( int16u  id,
int16u  prior,
pct_size_t  pct_sz,
pct_size_t  preamble,
DOUBLE  load,
DOUBLE  mean_burst 
) [inline]

Definition at line 221 of file source.h.

00226                                         : Source(id, prior, pct_sz, preamble )
00227     { 
00228         MeanBurst = mean_burst;
00229         SetLoad( load );
00230         Reset();
00231     }

virtual SourceExpon::~SourceExpon (  )  [inline, virtual]

Definition at line 232 of file source.h.

00232 {}


Member Function Documentation

virtual int32u SourceExpon::GetBurstSize ( void   )  [inline, private, virtual]

Implements Source.

Definition at line 216 of file source.h.

00216 { return round<int32u>(_exponent_() * (MeanBurst - MIN_BURST) + MIN_BURST); }

virtual bytestamp_t SourceExpon::GetGapSize ( void   )  [inline, private, virtual]

Implements Source.

Definition at line 217 of file source.h.

00217 { return _exponent_() * (MeanGap - Preamble ) + Preamble; }

virtual void SourceExpon::SetLoad ( DOUBLE  load  )  [inline, virtual]

Implements Source.

Definition at line 234 of file source.h.

00235     {
00236         SetInRange<DOUBLE>( load, 0.0, 1.0 );
00237         MeanGap = SetGap( MeanBurst * ( PctSize / load - PctSpace ));
00238     }


Member Data Documentation

Definition at line 214 of file source.h.

Definition at line 213 of file source.h.


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

Generated on Thu Nov 28 14:47:25 2013 for red_wireless by  doxygen 1.5.7.1