Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members

BiStateSource Class Reference

#include <netelem.h>

Inheritance diagram for BiStateSource:

PacketSource NetElement List of all members.

Public Member Functions

 BiStateSource (SourceState *on, SourceState *off, timeunits maxdelay=0)
virtual ~BiStateSource (void)
void Start (timeunits now)

Detailed Description

Two-state source.
Note:
to speed up the simulation the full burst generated at any state is enqueued at once in the event list.


Constructor & Destructor Documentation

BiStateSource::BiStateSource SourceState on,
SourceState off,
timeunits  maxdelay = 0
 

Creates a two-state alternating source.

Parameters:
on pointer to first (initial) SourceState
off pointer to second SourceState
maxdelay a generated packet can wait for the generation of more packets to be packed together in the same transmission PDU up to maxdelay timeunits. This parameter determines the maximum number of packets that will be packed together in a PDU. Defaults to 0, meaning no waiting time (or one packet per PDU).

BiStateSource::~BiStateSource void   )  [virtual]
 

Deletes the SourceState objects


Member Function Documentation

void BiStateSource::Start timeunits  now  )  [virtual]
 

Activate the BiStateSource into its first SourceState

Parameters:
now time to fire the generation process

Reimplemented from PacketSource.


The documentation for this class was generated from the following files:
Generated on Fri Jan 19 15:35:17 2007 by  doxygen 1.4.2