RINASim
October 2016
Documentation of framework for OMNeT++
|
#include <DTPState.h>
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 | |
PDU * | currentPDU |
unsigned int | maxFlowSDUSize |
unsigned int | maxFlowPDUSize |
unsigned int | seqNumRollOverThresh |
int | state |
bool | dtcpPresent |
PDUQ_t | reassemblyPDUQ |
PDUQ_t | generatedPDUs |
PDUQ_t | postablePDUs |
const QoSCube * | qoSCube |
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 |
ATimer * | tmpAtimer |
Definition at line 60 of file DTPState.h.
DTPState::DTPState | ( | ) |
Definition at line 27 of file DTPState.cc.
|
virtual |
Definition at line 155 of file DTPState.cc.
void DTPState::addPDUToReassemblyQ | ( | DataTransferPDU * | pdu | ) |
Definition at line 364 of file DTPState.cc.
Referenced by DTP::addPDUToReassemblyQ().
|
private |
Definition at line 145 of file DTPState.cc.
Referenced by ~DTPState().
|
private |
Definition at line 127 of file DTPState.cc.
Referenced by clearGeneratedPDUQ(), clearPostablePDUQ(), and clearReassemblyPDUQ().
|
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().
const PDU * DTPState::getCurrentPdu | ( | ) | const |
Definition at line 339 of file DTPState.cc.
Referenced by RcvrAckPolicyBase::defaultAction(), ECNPolicyBase::defaultAction(), RcvrControlAckPolicyBase::defaultAction(), RcvFCOverrunPolicyBase::defaultAction(), LostControlPDUPolicyBase::defaultAction(), SndFCOverrunPolicyBase::defaultAction(), NoOverridePeakPolicyBase::defaultAction(), SenderAckPolicyBase::defaultAction(), RTTEstimatorPolicyBase::defaultAction(), DTP::handleDataTransferPDUFromRMT(), SenderAckPolicyTCP::run(), RTTEstimatorPolicyTCP::run(), and SenderAckPolicyLG::run().
unsigned int DTPState::getDropDup | ( | ) | const |
Definition at line 428 of file DTPState.cc.
Referenced by DTP::redrawGUI().
PDUQ_t * DTPState::getGeneratedPDUQ | ( | ) |
Definition at line 409 of file DTPState.cc.
Referenced by NoRateSlowDownPolicyBase::defaultAction(), TxControlPolicyBase::defaultAction(), DTP::handleMsgFromUp(), TxControlPolicyLG::run(), TxControlPolicyTCPTahoe::run(), and DTP::trySendGenPDUs().
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 |
Definition at line 194 of file DTPState.cc.
Referenced by SendingAckPolicyBase::defaultAction(), DTP::handleDataTransferPDUFromRMT(), and DTP::redrawGUI().
double DTPState::getMPL | ( | ) | const |
Definition at line 33 of file DTPState.cc.
Referenced by DTP::schedule(), DTCP::startReliableCPDUTimer(), and DTCP::startRendezvousTimer().
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().
const QoSCube * DTPState::getQoSCube | ( | ) | const |
Definition at line 433 of file DTPState.cc.
Referenced by SenderAckPolicyTCP::ackPDU(), RTTEstimatorPolicyBase::defaultAction(), DTP::getATime(), DTP::getQoSCube(), DTP::handleDTPATimer(), DTP::schedule(), and DTP::startATimer().
unsigned int DTPState::getRcvLeftWinEdge | ( | ) | const |
Definition at line 258 of file DTPState.cc.
Referenced by RcvrFCPolicyBase::defaultAction(), RcvrControlAckPolicyBase::defaultAction(), DTP::delimitFromRMT(), DTP::fillControlAckPDU(), DTP::handleDataTransferPDUFromRMT(), DTP::handleDTPATimer(), DTP::redrawGUI(), RcvrAckPolicyLG::run(), DTP::sendAckFlowPDU(), and DTCP::updateRcvRtWinEdge().
std::vector< DataTransferPDU * > * DTPState::getReassemblyPDUQ | ( | ) |
Definition at line 351 of file DTPState.cc.
Referenced by DTP::delimitFromRMT(), DTP::handleDTPATimer(), DTP::isDuplicate(), and DTP::redrawGUI().
double DTPState::getRtt | ( | ) | const |
Definition at line 303 of file DTPState.cc.
Referenced by RTTEstimatorPolicyBase::defaultAction(), TxControlPolicyLG::getActualRate(), DTP::getRxTime(), DTP::initialize(), DTP::redrawGUI(), TxControlPolicyLG::run(), DTP::runRTTEstimatorPolicy(), DTP::schedule(), DTCP::startReliableCPDUTimer(), and DTCP::startRendezvousTimer().
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().
|
protectedvirtual |
Definition at line 473 of file DTPState.cc.
|
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().
|
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::isDtcpPresent | ( | ) | const |
Definition at line 162 of file DTPState.cc.
Referenced by DTP::changeInBuffers(), SenderInactivityPolicyBase::defaultAction(), RcvrInactivityPolicyBase::defaultAction(), DTP::generatePDUsnew(), DTP::handleDataTransferPDUFromRMT(), DTP::handleDTPATimer(), DTP::handleMessage(), DTP::redrawGUI(), DTP::rendezvousCondition(), DTP::runInitialSeqNumPolicy(), DTP::runRcvrInactivityTimerPolicy(), DTP::runSenderInactivityTimerPolicy(), DTP::schedule(), DTP::sendAckFlowPDU(), DTP::trySendGenPDUs(), and DTP::~DTP().
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().
|
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::pushBackToPostablePDUQ | ( | DataTransferPDU * | pdu | ) |
Definition at line 424 of file DTPState.cc.
Referenced by NoRateSlowDownPolicyBase::defaultAction(), TxControlPolicyBase::defaultAction(), TxControlPolicyLG::run(), TxControlPolicyTCPTahoe::run(), and DTP::trySendGenPDUs().
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 | ) |
Definition at line 344 of file DTPState.cc.
Referenced by RcvFCOverrunPolicyBase::defaultAction(), DTP::handleMsgFromRMT(), and DTP::trySendGenPDUs().
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 | ) |
Definition at line 309 of file DTPState.cc.
Referenced by RTTEstimatorPolicyBase::defaultAction(), and RTTEstimatorPolicyTCP::run().
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 | ( | ) |
|
private |
Definition at line 110 of file DTPState.h.
Referenced by initDefaults(), isBlockingPort(), and setBlockingPort().
|
private |
Definition at line 63 of file DTPState.h.
Referenced by getCurrentPdu(), initDefaults(), resetRcvVars(), and setCurrentPdu().
|
private |
Definition at line 96 of file DTPState.h.
Referenced by getDropDup(), and initDefaults().
|
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().
|
private |
Definition at line 109 of file DTPState.h.
Referenced by initDefaults(), isEcnSet(), resetRcvVars(), and setEcnSet().
|
private |
Definition at line 81 of file DTPState.h.
Referenced by clearGeneratedPDUQ(), getGeneratedPDUQ(), and pushBackToGeneratedPDUQ().
|
private |
Definition at line 87 of file DTPState.h.
Referenced by initDefaults(), isIncompDeliv(), and setIncompDeliv().
|
private |
Definition at line 92 of file DTPState.h.
Referenced by getLastSduDelivered(), initDefaults(), and setLastSduDelivered().
|
private |
Definition at line 99 of file DTPState.h.
Referenced by getLastSeqNumSent(), resetSndVars(), and setLastSeqNumSent().
|
private |
Definition at line 69 of file DTPState.h.
Referenced by getMaxFlowPduSize(), initialize(), and setMaxFlowPduSize().
|
private |
Definition at line 68 of file DTPState.h.
Referenced by getMaxFlowSduSize(), initialize(), and setMaxFlowSduSize().
|
private |
Definition at line 89 of file DTPState.h.
Referenced by getMaxSeqNumRcvd(), incMaxSeqNumRcvd(), initDefaults(), resetRcvVars(), and setMaxSeqNumRcvd().
|
private |
Definition at line 104 of file DTPState.h.
Referenced by getMPL(), initialize(), and setMpl().
|
private |
Definition at line 91 of file DTPState.h.
Referenced by getNextSeqNumToSend(), getNextSeqNumToSendWithoutIncrement(), incNextSeqNumToSend(), resetSndVars(), and setNextSeqNumToSend().
|
private |
Definition at line 86 of file DTPState.h.
Referenced by isPartDeliv(), and setPartDeliv().
|
private |
Definition at line 82 of file DTPState.h.
Referenced by clearPostablePDUQ(), getPostablePDUQ(), and pushBackToPostablePDUQ().
|
private |
Definition at line 84 of file DTPState.h.
Referenced by getQoSCube(), initDefaults(), initialize(), setQoSCube(), and updateRcvLWE().
|
private |
Definition at line 88 of file DTPState.h.
Referenced by getRcvLeftWinEdge(), incRcvLeftWindowEdge(), initDefaults(), resetRcvVars(), setRcvLeftWinEdge(), and updateRcvLWE().
|
private |
Definition at line 80 of file DTPState.h.
Referenced by addPDUToReassemblyQ(), clearReassemblyPDUQ(), getReassemblyPDUQ(), pushBackToReassemblyPDUQ(), and updateRcvLWE().
|
private |
Definition at line 103 of file DTPState.h.
Referenced by getRtt(), initialize(), and setRtt().
|
private |
Definition at line 71 of file DTPState.h.
Referenced by getSeqNumRollOverThresh(), resetSndVars(), and setSeqNumRollOverThresh().
|
private |
Definition at line 102 of file DTPState.h.
Referenced by isSetDrfFlag(), resetSndVars(), and setSetDrfFlag().
|
private |
Definition at line 72 of file DTPState.h.
Referenced by getState(), and setState().
|
private |
Definition at line 116 of file DTPState.h.
Referenced by getTmpAtimer(), initDefaults(), resetRcvVars(), and setTmpAtimer().