INET Framework for OMNeT++/OMNEST
|
Simple traffic generator for the Ethernet model. More...
#include <EtherTrafGen.h>
Public Member Functions | |
EtherTrafGen () | |
virtual | ~EtherTrafGen () |
Public Member Functions inherited from inet::ILifecycle | |
virtual | ~ILifecycle () |
Protected Types | |
enum | Kinds { START = 100, NEXT } |
Protected Member Functions | |
virtual void | initialize (int stage) override |
virtual int | numInitStages () const override |
virtual void | handleMessage (cMessage *msg) override |
virtual void | finish () override |
virtual bool | isNodeUp () |
virtual bool | isGenerator () |
virtual void | scheduleNextPacket (simtime_t previous) |
virtual void | cancelNextPacket () |
virtual MACAddress | resolveDestMACAddress () |
virtual void | sendBurstPackets () |
virtual void | receivePacket (cPacket *msg) |
virtual bool | handleOperationStage (LifecycleOperation *operation, int stage, IDoneCallback *doneCallback) override |
Perform one stage of a lifecycle operation. More... | |
Protected Attributes | |
long | seqNum = 0 |
cPar * | sendInterval = nullptr |
cPar * | numPacketsPerBurst = nullptr |
cPar * | packetLength = nullptr |
int | etherType = 0 |
MACAddress | destMACAddress |
NodeStatus * | nodeStatus = nullptr |
cMessage * | timerMsg = nullptr |
simtime_t | startTime |
simtime_t | stopTime |
long | packetsSent = 0 |
long | packetsReceived = 0 |
Static Protected Attributes | |
static simsignal_t | sentPkSignal = registerSignal("sentPk") |
static simsignal_t | rcvdPkSignal = registerSignal("rcvdPk") |
Simple traffic generator for the Ethernet model.
|
protected |
inet::EtherTrafGen::EtherTrafGen | ( | ) |
|
virtual |
|
protectedvirtual |
Referenced by handleOperationStage().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Perform one stage of a lifecycle operation.
Processing may be done entirely within this method, or may be a longer process that involves nonzero simulation time or several events, and is triggered by this method call.
Return value: true = "done"; false = "not yet done, will invoke doneCallback when done"
Implements inet::ILifecycle.
|
overrideprotectedvirtual |
|
protectedvirtual |
Referenced by handleOperationStage(), and initialize().
|
protectedvirtual |
Referenced by handleMessage(), and initialize().
|
inlineoverrideprotectedvirtual |
|
protectedvirtual |
Referenced by handleMessage().
|
protectedvirtual |
Referenced by handleMessage().
|
protectedvirtual |
Referenced by handleMessage(), handleOperationStage(), and initialize().
|
protectedvirtual |
Referenced by handleMessage().
|
protected |
Referenced by handleMessage(), resolveDestMACAddress(), and sendBurstPackets().
|
protected |
Referenced by initialize(), and sendBurstPackets().
|
protected |
Referenced by EtherTrafGen(), initialize(), and isNodeUp().
|
protected |
Referenced by EtherTrafGen(), initialize(), and sendBurstPackets().
|
protected |
Referenced by EtherTrafGen(), initialize(), and sendBurstPackets().
|
protected |
Referenced by initialize(), and receivePacket().
|
protected |
Referenced by initialize(), and sendBurstPackets().
|
staticprotected |
Referenced by receivePacket().
|
protected |
Referenced by EtherTrafGen(), initialize(), and scheduleNextPacket().
|
staticprotected |
Referenced by sendBurstPackets().
|
protected |
Referenced by initialize(), and sendBurstPackets().
|
protected |
Referenced by initialize(), and scheduleNextPacket().
|
protected |
Referenced by initialize(), and scheduleNextPacket().
|
protected |
Referenced by cancelNextPacket(), EtherTrafGen(), finish(), initialize(), scheduleNextPacket(), and ~EtherTrafGen().