RINASim  October 2016
Documentation of framework for OMNeT++
DTPState Class Reference

#include <DTPState.h>

Inheritance diagram for DTPState:

Public Member Functions

 DTPState ()
 
virtual ~DTPState ()
 
void initDefaults ()
 
void incDropDup ()
 
unsigned int getDropDup () const
 
bool isDtcpPresent () const
 
void setDtcpPresent (bool dtcpPresent)
 
bool isIncompDeliv () const
 
void setIncompDeliv (bool incompDeliv)
 
unsigned int getMaxFlowPduSize () const
 
void setMaxFlowPduSize (unsigned int maxFlowPduSize)
 
unsigned int getMaxFlowSduSize () const
 
void setMaxFlowSduSize (unsigned int maxFlowSduSize)
 
unsigned int getMaxSeqNumRcvd () const
 
void setMaxSeqNumRcvd (unsigned int maxSeqNumRcvd)
 
void incMaxSeqNumRcvd ()
 
void incRcvLeftWindowEdge ()
 
unsigned int getNextSeqNumToSend ()
 
unsigned int getNextSeqNumToSendWithoutIncrement ()
 
void setNextSeqNumToSend (unsigned int nextSeqNumToSend)
 
void incNextSeqNumToSend ()
 
bool isPartDeliv () const
 
void setPartDeliv (bool partDeliv)
 
bool isRateFullfilled () const
 
void setRateFullfilled (bool rateFullfilled)
 
unsigned int getRcvLeftWinEdge () const
 
void setRcvLeftWinEdge (unsigned int rcvLeftWinEdge)
 
unsigned int getSeqNumRollOverThresh () const
 
void setSeqNumRollOverThresh (unsigned int seqNumRollOverThresh)
 
int getState () const
 
void setState (int state)
 
bool isSetDrfFlag () const
 
void setSetDrfFlag (bool setDrfFlag)
 
double getRtt () const
 
void setRtt (double rtt)
 
unsigned int getLastCtrlSeqNumRcv ()
 
unsigned int getLastSeqNumSent () const
 
void setLastSeqNumSent (unsigned int lastSeqNumSent)
 
bool isEcnSet () const
 
void setEcnSet (bool ecnSet)
 
const PDUgetCurrentPdu () const
 
void setCurrentPdu (PDU *currentPdu)
 
std::vector< DataTransferPDU * > * getReassemblyPDUQ ()
 
void pushBackToReassemblyPDUQ (DataTransferPDU *pdu)
 
void addPDUToReassemblyQ (DataTransferPDU *pdu)
 
void clearReassemblyPDUQ ()
 
PDUQ_tgetGeneratedPDUQ ()
 
void pushBackToGeneratedPDUQ (DataTransferPDU *pdu)
 
PDUQ_tgetPostablePDUQ ()
 
void pushBackToPostablePDUQ (DataTransferPDU *pdu)
 
const QoSCubegetQoSCube () const
 
void setQoSCube (const QoSCube *&qoSCube)
 
unsigned int getLastSduDelivered () const
 
void setLastSduDelivered (unsigned int lastSduDelivered)
 
void updateRcvLWE (unsigned int seqNum)
 
void updateSndLWE ()
 
double getMPL () const
 
void setMpl (double mpl)
 
bool isBlockingPort () const
 
void setBlockingPort (bool blockingPort)
 
ATimergetTmpAtimer () const
 
void setTmpAtimer (ATimer *tmpAtimer)
 
void resetRcvVars ()
 
void resetSndVars ()
 

Protected Member Functions

virtual void handleMessage (cMessage *msg)
 
virtual void initialize (int step)
 
int numInitStages () const
 

Private Member Functions

void clearPDUQ (std::vector< DataTransferPDU * > *pduQ)
 
void clearGeneratedPDUQ ()
 
void clearPostablePDUQ ()
 

Private Attributes

PDUcurrentPDU
 
unsigned int maxFlowSDUSize
 
unsigned int maxFlowPDUSize
 
unsigned int seqNumRollOverThresh
 
int state
 
bool dtcpPresent
 
PDUQ_t reassemblyPDUQ
 
PDUQ_t generatedPDUs
 
PDUQ_t postablePDUs
 
const QoSCubeqoSCube
 
bool partDeliv
 
bool incompDeliv
 
unsigned int rcvLeftWinEdge
 
unsigned int maxSeqNumRcvd
 
unsigned int nextSeqNumToSend
 
unsigned int lastSDUDelivered
 
unsigned int dropDup
 
unsigned int lastSeqNumSent
 
bool setDRFFlag
 
double rtt
 
double mpl
 
bool ecnSet
 
bool blockingPort
 
ATimertmpAtimer
 

Detailed Description

Definition at line 60 of file DTPState.h.

Constructor & Destructor Documentation

DTPState::DTPState ( )

Definition at line 27 of file DTPState.cc.

DTPState::~DTPState ( )
virtual

Definition at line 155 of file DTPState.cc.

Member Function Documentation

void DTPState::addPDUToReassemblyQ ( DataTransferPDU pdu)

Definition at line 364 of file DTPState.cc.

Referenced by DTP::addPDUToReassemblyQ().

void DTPState::clearGeneratedPDUQ ( )
private

Definition at line 145 of file DTPState.cc.

Referenced by ~DTPState().

void DTPState::clearPDUQ ( std::vector< DataTransferPDU * > *  pduQ)
private

Definition at line 127 of file DTPState.cc.

Referenced by clearGeneratedPDUQ(), clearPostablePDUQ(), and clearReassemblyPDUQ().

void DTPState::clearPostablePDUQ ( )
private

Definition at line 150 of file DTPState.cc.

Referenced by ~DTPState().

void DTPState::clearReassemblyPDUQ ( )

Definition at line 140 of file DTPState.cc.

Referenced by DTP::flushReassemblyPDUQ(), and ~DTPState().

unsigned int DTPState::getDropDup ( ) const

Definition at line 428 of file DTPState.cc.

Referenced by DTP::redrawGUI().

unsigned int DTPState::getLastCtrlSeqNumRcv ( )
unsigned int DTPState::getLastSduDelivered ( ) const

Definition at line 438 of file DTPState.cc.

unsigned int DTPState::getLastSeqNumSent ( ) const

Definition at line 319 of file DTPState.cc.

Referenced by DTP::rendezvousCondition().

unsigned int DTPState::getMaxFlowPduSize ( ) const

Definition at line 178 of file DTPState.cc.

unsigned int DTPState::getMaxFlowSduSize ( ) const

Definition at line 186 of file DTPState.cc.

unsigned int DTPState::getMaxSeqNumRcvd ( ) const
double DTPState::getMPL ( ) const
unsigned int DTPState::getNextSeqNumToSend ( )

Definition at line 215 of file DTPState.cc.

Referenced by DTP::generateDTPDU(), DTP::generatePDUsnew(), and DTP::sendEmptyDTPDU().

unsigned int DTPState::getNextSeqNumToSendWithoutIncrement ( )

Definition at line 220 of file DTPState.cc.

Referenced by DTP::fillRendezvousPDU(), DTP::redrawGUI(), and DTP::rendezvousCondition().

PDUQ_t * DTPState::getPostablePDUQ ( )

Definition at line 419 of file DTPState.cc.

Referenced by DTP::trySendGenPDUs().

std::vector< DataTransferPDU * > * DTPState::getReassemblyPDUQ ( )
unsigned int DTPState::getSeqNumRollOverThresh ( ) const

Definition at line 274 of file DTPState.cc.

int DTPState::getState ( ) const

Definition at line 282 of file DTPState.cc.

ATimer * DTPState::getTmpAtimer ( ) const

Definition at line 478 of file DTPState.cc.

Referenced by RcvrAckPolicyBase::defaultAction().

void DTPState::handleMessage ( cMessage *  msg)
protectedvirtual

Definition at line 473 of file DTPState.cc.

void DTPState::incDropDup ( )
inline

Definition at line 130 of file DTPState.h.

Referenced by DTP::handleDataTransferPDUFromRMT().

void DTPState::incMaxSeqNumRcvd ( )

Definition at line 203 of file DTPState.cc.

Referenced by DTP::handleDataTransferPDUFromRMT().

void DTPState::incNextSeqNumToSend ( )

Definition at line 229 of file DTPState.cc.

void DTPState::incRcvLeftWindowEdge ( )

Definition at line 207 of file DTPState.cc.

void DTPState::initDefaults ( )

Definition at line 104 of file DTPState.cc.

Referenced by DTPState().

void DTPState::initialize ( int  step)
protectedvirtual

Definition at line 64 of file DTPState.cc.

bool DTPState::isBlockingPort ( ) const

Definition at line 43 of file DTPState.cc.

Referenced by DTP::notifyStartSending(), and DTP::notifyStopSending().

bool DTPState::isEcnSet ( ) const

Definition at line 329 of file DTPState.cc.

Referenced by RcvrAckPolicyLG::run().

bool DTPState::isIncompDeliv ( ) const

Definition at line 170 of file DTPState.cc.

bool DTPState::isPartDeliv ( ) const

Definition at line 234 of file DTPState.cc.

bool DTPState::isRateFullfilled ( ) const
bool DTPState::isSetDrfFlag ( ) const

Definition at line 298 of file DTPState.cc.

Referenced by DTP::setDRFInPDU().

int DTPState::numInitStages ( ) const
inlineprotected

Definition at line 217 of file DTPState.h.

void DTPState::pushBackToGeneratedPDUQ ( DataTransferPDU pdu)

Definition at line 414 of file DTPState.cc.

Referenced by DTP::generateDTPDU(), and DTP::generatePDUsnew().

void DTPState::pushBackToReassemblyPDUQ ( DataTransferPDU pdu)

Definition at line 356 of file DTPState.cc.

void DTPState::resetRcvVars ( )

Definition at line 53 of file DTPState.cc.

Referenced by RcvrInactivityPolicyBase::defaultAction().

void DTPState::resetSndVars ( )

Definition at line 95 of file DTPState.cc.

Referenced by SenderInactivityPolicyBase::defaultAction(), and initDefaults().

void DTPState::setBlockingPort ( bool  blockingPort)

Definition at line 48 of file DTPState.cc.

Referenced by DTP::notifyStartSending(), and DTP::notifyStopSending().

void DTPState::setCurrentPdu ( PDU currentPdu)
void DTPState::setDtcpPresent ( bool  dtcpPresent)

Definition at line 166 of file DTPState.cc.

void DTPState::setEcnSet ( bool  ecnSet)

Definition at line 334 of file DTPState.cc.

Referenced by ECNPolicyBase::defaultAction().

void DTPState::setIncompDeliv ( bool  incompDeliv)

Definition at line 174 of file DTPState.cc.

void DTPState::setLastSduDelivered ( unsigned int  lastSduDelivered)

Definition at line 443 of file DTPState.cc.

void DTPState::setLastSeqNumSent ( unsigned int  lastSeqNumSent)

Definition at line 324 of file DTPState.cc.

Referenced by DTP::sendToRMT().

void DTPState::setMaxFlowPduSize ( unsigned int  maxFlowPduSize)

Definition at line 182 of file DTPState.cc.

void DTPState::setMaxFlowSduSize ( unsigned int  maxFlowSduSize)

Definition at line 190 of file DTPState.cc.

void DTPState::setMaxSeqNumRcvd ( unsigned int  maxSeqNumRcvd)

Definition at line 198 of file DTPState.cc.

Referenced by DTP::handleDataTransferPDUFromRMT().

void DTPState::setMpl ( double  mpl)

Definition at line 38 of file DTPState.cc.

void DTPState::setNextSeqNumToSend ( unsigned int  nextSeqNumToSend)

Definition at line 225 of file DTPState.cc.

Referenced by InitialSeqNumPolicyBase::defaultAction().

void DTPState::setPartDeliv ( bool  partDeliv)

Definition at line 238 of file DTPState.cc.

void DTPState::setQoSCube ( const QoSCube *&  qoSCube)

Definition at line 448 of file DTPState.cc.

Referenced by EFCP::createEFCPI(), and DTP::setQoSCube().

void DTPState::setRateFullfilled ( bool  rateFullfilled)
void DTPState::setRcvLeftWinEdge ( unsigned int  rcvLeftWinEdge)

Definition at line 262 of file DTPState.cc.

Referenced by DTP::handleDataTransferPDUFromRMT(), and DTP::handleDTPATimer().

void DTPState::setRtt ( double  rtt)
void DTPState::setSeqNumRollOverThresh ( unsigned int  seqNumRollOverThresh)

Definition at line 278 of file DTPState.cc.

void DTPState::setSetDrfFlag ( bool  setDrfFlag)

Definition at line 314 of file DTPState.cc.

Referenced by DTP::generatePDUsnew(), and DTP::setDRFInPDU().

void DTPState::setState ( int  state)

Definition at line 286 of file DTPState.cc.

void DTPState::setTmpAtimer ( ATimer tmpAtimer)

Definition at line 483 of file DTPState.cc.

Referenced by RcvrAckPolicyBase::defaultAction(), and DTP::handleDTPATimer().

void DTPState::updateRcvLWE ( unsigned int  seqNum)

Definition at line 453 of file DTPState.cc.

Referenced by DTP::svUpdate().

void DTPState::updateSndLWE ( )

Member Data Documentation

bool DTPState::blockingPort
private

Definition at line 110 of file DTPState.h.

Referenced by initDefaults(), isBlockingPort(), and setBlockingPort().

PDU* DTPState::currentPDU
private

Definition at line 63 of file DTPState.h.

Referenced by getCurrentPdu(), initDefaults(), resetRcvVars(), and setCurrentPdu().

unsigned int DTPState::dropDup
private

Definition at line 96 of file DTPState.h.

Referenced by getDropDup(), and initDefaults().

bool DTPState::dtcpPresent
private

a Boolean that indicates whether this connection is using DTCP.

Definition at line 73 of file DTPState.h.

Referenced by initDefaults(), initialize(), isDtcpPresent(), and setDtcpPresent().

bool DTPState::ecnSet
private

Definition at line 109 of file DTPState.h.

Referenced by initDefaults(), isEcnSet(), resetRcvVars(), and setEcnSet().

PDUQ_t DTPState::generatedPDUs
private

Definition at line 81 of file DTPState.h.

Referenced by clearGeneratedPDUQ(), getGeneratedPDUQ(), and pushBackToGeneratedPDUQ().

bool DTPState::incompDeliv
private

Definition at line 87 of file DTPState.h.

Referenced by initDefaults(), isIncompDeliv(), and setIncompDeliv().

unsigned int DTPState::lastSDUDelivered
private

Definition at line 92 of file DTPState.h.

Referenced by getLastSduDelivered(), initDefaults(), and setLastSduDelivered().

unsigned int DTPState::lastSeqNumSent
private

Definition at line 99 of file DTPState.h.

Referenced by getLastSeqNumSent(), resetSndVars(), and setLastSeqNumSent().

unsigned int DTPState::maxFlowPDUSize
private

Definition at line 69 of file DTPState.h.

Referenced by getMaxFlowPduSize(), initialize(), and setMaxFlowPduSize().

unsigned int DTPState::maxFlowSDUSize
private

Definition at line 68 of file DTPState.h.

Referenced by getMaxFlowSduSize(), initialize(), and setMaxFlowSduSize().

unsigned int DTPState::maxSeqNumRcvd
private
double DTPState::mpl
private

Definition at line 104 of file DTPState.h.

Referenced by getMPL(), initialize(), and setMpl().

unsigned int DTPState::nextSeqNumToSend
private
bool DTPState::partDeliv
private

Definition at line 86 of file DTPState.h.

Referenced by isPartDeliv(), and setPartDeliv().

PDUQ_t DTPState::postablePDUs
private

Definition at line 82 of file DTPState.h.

Referenced by clearPostablePDUQ(), getPostablePDUQ(), and pushBackToPostablePDUQ().

const QoSCube* DTPState::qoSCube
private

Definition at line 84 of file DTPState.h.

Referenced by getQoSCube(), initDefaults(), initialize(), setQoSCube(), and updateRcvLWE().

unsigned int DTPState::rcvLeftWinEdge
private
PDUQ_t DTPState::reassemblyPDUQ
private
double DTPState::rtt
private

Definition at line 103 of file DTPState.h.

Referenced by getRtt(), initialize(), and setRtt().

unsigned int DTPState::seqNumRollOverThresh
private

Definition at line 71 of file DTPState.h.

Referenced by getSeqNumRollOverThresh(), resetSndVars(), and setSeqNumRollOverThresh().

bool DTPState::setDRFFlag
private

Definition at line 102 of file DTPState.h.

Referenced by isSetDrfFlag(), resetSndVars(), and setSetDrfFlag().

int DTPState::state
private

Definition at line 72 of file DTPState.h.

Referenced by getState(), and setState().

ATimer* DTPState::tmpAtimer
private

Definition at line 116 of file DTPState.h.

Referenced by getTmpAtimer(), initDefaults(), resetRcvVars(), and setTmpAtimer().


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