#include <netelem.h>
Inheritance diagram for PacketSource:

Public Member Functions | |
| PacketSource (Distrib *interarrival, Distrib *service) | |
| virtual void | Start (timeunits now) |
| void | Reset (bool dump=false) |
| void | AccumDelay (timeunits t) |
| PacketSource * | AddHop (NetElement *ne) |
| NetElement * | GetNextHop (unsigned int index) const |
Protected Attributes | |
| unsigned long int | numPackets_ |
|
||||||||||||
|
Creates a PacketSource.
|
|
|
Access to the packet delay statistical collector. This function is called by the cooresponding SrcSink NetElement, if any.
|
|
|
Succesive calls allow to build-up routes from the source NetElement to the destination NetElement.
|
|
|
Allows to get the a given NetElement in the route.
|
|
|
Resets interarrival and packet delay statistics. Implements NetElement. |
|
|
Starts the source
Reimplemented in BiStateSource, and VoiceTraceFileSource. |
1.4.2