INET Framework for OMNeT++/OMNEST
TG::FlowRecord Class Reference

#include <TrafGen.h>

List of all members.

Public Member Functions

 FlowRecord ()
std::string getId ()
void setId (std::string n_id)
double getStartTime ()
void setStartTime (double n_startTime)
double getDuration ()
void setDuration (double n_duration)
IPvXAddress getSrcIP ()
void setSrcIP (IPvXAddress n_srcIP)
IPvXAddress getDstIP ()
void setDstIP (IPvXAddress n_dstIP)
unsigned char getTos ()
void setTos (unsigned char n_tos)
short getTtl ()
void setTtl (short n_ttl)
short getProtocol ()
void setProtocol (short n_protocol)
int getSrcPort ()
void setSrcPort (int n_srcPort)
int getDstPort ()
void setDstPort (int n_dstPort)
ITrafGenApplicationgetPApplication ()
std::string getAppName ()
bool setApplication (const cXMLElement &appConfig)
bool isGenerating ()
void setGenerating (bool n_gen)
bool isAnalyzing ()
void setAnalyzing (bool n_ana)
RcvStats::iterator getRcvModStatsIt ()
void setRcvModStatsIt (RcvStats::iterator n_it)
void tcpConnect (cGate *toTcp)
void tcpClose ()
void sendTcpPacket (cMessage *msg)
bool isSocketCreated ()
bool isTcpConnected ()
int getSocketConId ()

Private Attributes

std::string id
double startTime
double duration
IPvXAddress srcIP
IPvXAddress dstIP
unsigned char tos
short ttl
short protocol
int srcPort
int dstPort
std::string appName
ITrafGenApplicationpApplication
bool generating
bool analyzing
RcvStats::iterator rcvModStatsIt
TCPSocketsocket

Detailed Description

Definition at line 125 of file TrafGen.h.


Constructor & Destructor Documentation

Definition at line 834 of file TrafGen.cc.


Member Function Documentation

std::string TG::FlowRecord::getAppName ( ) [inline]

Definition at line 175 of file TrafGen.h.

{return appName;}

Definition at line 161 of file TrafGen.h.

Referenced by TrafGen::isValidFlow().

{return dstIP;}
int TG::FlowRecord::getDstPort ( ) [inline]

Definition at line 171 of file TrafGen.h.

Referenced by TrafGen::isValidFlow().

{return dstPort;}
double TG::FlowRecord::getDuration ( ) [inline]

Definition at line 157 of file TrafGen.h.

{return duration;}
std::string TG::FlowRecord::getId ( ) [inline]

Definition at line 153 of file TrafGen.h.

Referenced by TrafGen::parseFlow().

{return id;}

Definition at line 174 of file TrafGen.h.

{return pApplication;}
short TG::FlowRecord::getProtocol ( ) [inline]

Definition at line 167 of file TrafGen.h.

{return protocol;}
RcvStats::iterator TG::FlowRecord::getRcvModStatsIt ( ) [inline]

Definition at line 183 of file TrafGen.h.

{return rcvModStatsIt;}

Definition at line 191 of file TrafGen.h.

{return socket->getConnectionId();}

Definition at line 159 of file TrafGen.h.

Referenced by TrafGen::isValidFlow().

{return srcIP;}
int TG::FlowRecord::getSrcPort ( ) [inline]

Definition at line 169 of file TrafGen.h.

Referenced by TrafGen::isValidFlow().

{return srcPort;}
double TG::FlowRecord::getStartTime ( ) [inline]

Definition at line 155 of file TrafGen.h.

{return startTime;}
unsigned char TG::FlowRecord::getTos ( ) [inline]

Definition at line 163 of file TrafGen.h.

{return tos;}
short TG::FlowRecord::getTtl ( ) [inline]

Definition at line 165 of file TrafGen.h.

Referenced by TrafGen::isValidFlow().

{return ttl;}
bool TG::FlowRecord::isAnalyzing ( ) [inline]

Definition at line 180 of file TrafGen.h.

{return analyzing; }
bool TG::FlowRecord::isGenerating ( ) [inline]

Definition at line 178 of file TrafGen.h.

{return generating; }

Definition at line 189 of file TrafGen.h.

Referenced by isTcpConnected().

{return socket != NULL;}
bool TG::FlowRecord::isTcpConnected ( ) [inline]

Definition at line 190 of file TrafGen.h.

{ return (this->isSocketCreated() && socket->getState() != TCPSocket::CONNECTED); }
void TG::FlowRecord::sendTcpPacket ( cMessage *  msg) [inline]

Definition at line 188 of file TrafGen.h.

{socket->send(msg);}
void TG::FlowRecord::setAnalyzing ( bool  n_ana) [inline]

Definition at line 181 of file TrafGen.h.

{analyzing = n_ana;}
bool TG::FlowRecord::setApplication ( const cXMLElement &  appConfig)

Definition at line 860 of file TrafGen.cc.

Referenced by TrafGen::parseFlow().

void TG::FlowRecord::setDstIP ( IPvXAddress  n_dstIP) [inline]

Definition at line 162 of file TrafGen.h.

Referenced by TrafGen::parseFlow().

{dstIP = n_dstIP;}
void TG::FlowRecord::setDstPort ( int  n_dstPort) [inline]

Definition at line 172 of file TrafGen.h.

Referenced by TrafGen::parseFlow().

{dstPort = n_dstPort;}
void TG::FlowRecord::setDuration ( double  n_duration) [inline]

Definition at line 158 of file TrafGen.h.

Referenced by TrafGen::parseFlow().

{duration = n_duration;}
void TG::FlowRecord::setGenerating ( bool  n_gen) [inline]

Definition at line 179 of file TrafGen.h.

{generating = n_gen;}
void TG::FlowRecord::setId ( std::string  n_id) [inline]

Definition at line 154 of file TrafGen.h.

Referenced by TrafGen::parseFlow().

{id = n_id;}
void TG::FlowRecord::setProtocol ( short  n_protocol) [inline]

Definition at line 168 of file TrafGen.h.

Referenced by TrafGen::parseFlow().

{protocol = n_protocol;}
void TG::FlowRecord::setRcvModStatsIt ( RcvStats::iterator  n_it) [inline]

Definition at line 184 of file TrafGen.h.

{rcvModStatsIt = n_it;}
void TG::FlowRecord::setSrcIP ( IPvXAddress  n_srcIP) [inline]

Definition at line 160 of file TrafGen.h.

Referenced by TrafGen::parseFlow().

{srcIP = n_srcIP;}
void TG::FlowRecord::setSrcPort ( int  n_srcPort) [inline]

Definition at line 170 of file TrafGen.h.

Referenced by TrafGen::parseFlow().

{srcPort = n_srcPort;}
void TG::FlowRecord::setStartTime ( double  n_startTime) [inline]

Definition at line 156 of file TrafGen.h.

Referenced by TrafGen::parseFlow().

{startTime = n_startTime;}
void TG::FlowRecord::setTos ( unsigned char  n_tos) [inline]

Definition at line 164 of file TrafGen.h.

Referenced by TrafGen::parseFlow().

{tos = n_tos;}
void TG::FlowRecord::setTtl ( short  n_ttl) [inline]

Definition at line 166 of file TrafGen.h.

Referenced by TrafGen::parseFlow().

{ttl = n_ttl;}
void TG::FlowRecord::tcpClose ( ) [inline]

Definition at line 187 of file TrafGen.h.

{socket->close();}
void TG::FlowRecord::tcpConnect ( cGate *  toTcp)

Definition at line 877 of file TrafGen.cc.


Member Data Documentation

bool TG::FlowRecord::analyzing [private]

Definition at line 143 of file TrafGen.h.

Referenced by FlowRecord(), isAnalyzing(), and setAnalyzing().

std::string TG::FlowRecord::appName [private]

Definition at line 139 of file TrafGen.h.

Referenced by getAppName().

Definition at line 132 of file TrafGen.h.

Referenced by FlowRecord(), getDstIP(), and setDstIP().

int TG::FlowRecord::dstPort [private]

Definition at line 137 of file TrafGen.h.

Referenced by FlowRecord(), getDstPort(), and setDstPort().

double TG::FlowRecord::duration [private]

Definition at line 130 of file TrafGen.h.

Referenced by FlowRecord(), getDuration(), and setDuration().

Definition at line 142 of file TrafGen.h.

Referenced by FlowRecord(), isGenerating(), and setGenerating().

std::string TG::FlowRecord::id [private]

Definition at line 128 of file TrafGen.h.

Referenced by getId().

Definition at line 140 of file TrafGen.h.

Referenced by FlowRecord(), and getPApplication().

short TG::FlowRecord::protocol [private]

Definition at line 135 of file TrafGen.h.

Referenced by FlowRecord(), getProtocol(), and setProtocol().

RcvStats::iterator TG::FlowRecord::rcvModStatsIt [private]

Definition at line 145 of file TrafGen.h.

Referenced by getRcvModStatsIt(), and setRcvModStatsIt().

Definition at line 131 of file TrafGen.h.

Referenced by FlowRecord(), getSrcIP(), and setSrcIP().

int TG::FlowRecord::srcPort [private]

Definition at line 136 of file TrafGen.h.

Referenced by FlowRecord(), getSrcPort(), and setSrcPort().

double TG::FlowRecord::startTime [private]

Definition at line 129 of file TrafGen.h.

Referenced by FlowRecord(), getStartTime(), and setStartTime().

unsigned char TG::FlowRecord::tos [private]

Definition at line 133 of file TrafGen.h.

Referenced by FlowRecord(), getTos(), and setTos().

short TG::FlowRecord::ttl [private]

Definition at line 134 of file TrafGen.h.

Referenced by FlowRecord(), getTtl(), and setTtl().


The documentation for this class was generated from the following files: