SourceCBR Class Reference

#include <source.h>

Inheritance diagram for SourceCBR:

Source DLinkable

List of all members.

Public Member Functions

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

Private Member Functions

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

Private Attributes

bytestamp_t Gap


Detailed Description

Definition at line 242 of file source.h.


Constructor & Destructor Documentation

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

Definition at line 252 of file source.h.

00256                                   : Source(id, prior, pct_sz, preamble )
00257     { 
00258         SetLoad( load );
00259         Reset();
00260     }

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

Definition at line 262 of file source.h.

00262 {}


Member Function Documentation

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

Implements Source.

Definition at line 247 of file source.h.

00247 { return MIN_BURST;   }

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

Implements Source.

Definition at line 248 of file source.h.

00248 { return Gap;         }

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

Implements Source.

Definition at line 264 of file source.h.

00265     {
00266         SetInRange<DOUBLE>( load, 0.0, 1.0 );
00267         Gap = SetGap((1.0 / load - 1.0) * PctSize * MIN_BURST - Preamble);
00268     }


Member Data Documentation

Definition at line 245 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