|
INET Framework for OMNeT++/OMNEST
|
#include <TrafGen.h>
Public Member Functions | |
| SntFlowRecord () | |
| std::string | getId () |
| void | setId (std::string n_id) |
| double | getStartTime () |
| void | setStartTime (double n_startTime) |
| void | addTotalSentPkts () |
| void | addTotalBytes (long bytes) |
| long | getTotalSentPkts () |
| long | getTotalBytes () |
Private Attributes | |
| std::string | id |
| double | startTime |
| long | totalSentPkts |
| long | totalBytes |
| TG::SntFlowRecord::SntFlowRecord | ( | ) | [inline] |
Definition at line 107 of file TrafGen.h.
{totalSentPkts = 0; totalBytes = 0;}
| void TG::SntFlowRecord::addTotalBytes | ( | long | bytes | ) | [inline] |
Definition at line 116 of file TrafGen.h.
{totalBytes += bytes;}
| void TG::SntFlowRecord::addTotalSentPkts | ( | ) | [inline] |
Definition at line 115 of file TrafGen.h.
{++totalSentPkts;}
| std::string TG::SntFlowRecord::getId | ( | ) | [inline] |
| double TG::SntFlowRecord::getStartTime | ( | ) | [inline] |
| long TG::SntFlowRecord::getTotalBytes | ( | ) | [inline] |
| long TG::SntFlowRecord::getTotalSentPkts | ( | ) | [inline] |
| void TG::SntFlowRecord::setId | ( | std::string | n_id | ) | [inline] |
| void TG::SntFlowRecord::setStartTime | ( | double | n_startTime | ) | [inline] |
Definition at line 112 of file TrafGen.h.
Referenced by TrafGen::initStats().
{startTime = n_startTime;}
std::string TG::SntFlowRecord::id [private] |
double TG::SntFlowRecord::startTime [private] |
Definition at line 102 of file TrafGen.h.
Referenced by getStartTime(), and setStartTime().
long TG::SntFlowRecord::totalBytes [private] |
Definition at line 104 of file TrafGen.h.
Referenced by addTotalBytes(), getTotalBytes(), and SntFlowRecord().
long TG::SntFlowRecord::totalSentPkts [private] |
Definition at line 103 of file TrafGen.h.
Referenced by addTotalSentPkts(), getTotalSentPkts(), and SntFlowRecord().