#include <TxopProcedure.h>
Enumerator |
---|
SINGLE_PROTECTION |
|
MULTIPLE_PROTECTION |
|
UNDEFINED_PROTECTION |
|
simtime_t inet::ieee80211::TxopProcedure::getLimit |
( |
| ) |
const |
|
virtual |
simtime_t limit
Definition: TxopProcedure.h:41
ProtectionMechanism protectionMechanism
Definition: TxopProcedure.h:42
simtime_t inet::ieee80211::TxopProcedure::getRemaining |
( |
| ) |
const |
|
virtual |
Referenced by inet::ieee80211::HcfFs::hasMoreTxOps().
96 throw cRuntimeError(
"Txop has not started yet");
simtime_t limit
Definition: TxopProcedure.h:41
simtime_t start
Definition: TxopProcedure.h:40
simtime_t inet::ieee80211::TxopProcedure::getStart |
( |
| ) |
const |
|
virtual |
simtime_t start
Definition: TxopProcedure.h:40
Referenced by startTxop().
45 if (dynamic_cast<const Ieee80211DsssMode*>(mode) || dynamic_cast<const Ieee80211HrDsssMode*>(mode))
return ms(6.016);
46 else if (dynamic_cast<const Ieee80211HTMode*>(mode) || dynamic_cast<const Ieee80211OFDMMode*>(mode))
return ms(3.008);
49 if (dynamic_cast<const Ieee80211DsssMode*>(mode) || dynamic_cast<const Ieee80211HrDsssMode*>(mode))
return ms(3.264);
50 else if (dynamic_cast<const Ieee80211HTMode*>(mode) || dynamic_cast<const Ieee80211OFDMMode*>(mode))
return ms(1.504);
52 default:
throw cRuntimeError(
"Unknown access category = %d", ac);
milli< s >::type ms
Definition: Units.h:902
Definition: AccessCategory.h:31
Definition: AccessCategory.h:33
value< double, units::s > s
Definition: Units.h:1049
Definition: AccessCategory.h:34
Definition: AccessCategory.h:32
void inet::ieee80211::TxopProcedure::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::ieee80211::ModeSetListener.
34 limit = par(
"txopLimit");
simtime_t limit
Definition: TxopProcedure.h:41
Local initializations.
Definition: InitStages.h:35
virtual void initialize(int stage) override
Definition: ModeSetListener.cc:25
bool inet::ieee80211::TxopProcedure::isFinalFragment |
( |
Ieee80211Frame * |
frame | ) |
const |
|
virtual |
bool inet::ieee80211::TxopProcedure::isTxopInitiator |
( |
Ieee80211Frame * |
frame | ) |
const |
|
virtual |
bool inet::ieee80211::TxopProcedure::isTxopTerminator |
( |
Ieee80211Frame * |
frame | ) |
const |
|
virtual |
virtual int inet::ieee80211::TxopProcedure::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
75 throw cRuntimeError(
"Txop is already running");
const value_type & get() const
Definition: Units.h:89
Ieee80211ModeSet * modeSet
Definition: ModeSetListener.h:31
simtime_t limit
Definition: TxopProcedure.h:41
virtual s getTxopLimit(const IIeee80211Mode *mode, AccessCategory ac)
Definition: TxopProcedure.cc:38
const IIeee80211Mode * getSlowestMandatoryMode() const
Definition: Ieee80211ModeSet.cc:239
simtime_t start
Definition: TxopProcedure.h:40
virtual ProtectionMechanism selectProtectionMechanism(AccessCategory ac) const
Definition: TxopProcedure.cc:56
ProtectionMechanism protectionMechanism
Definition: TxopProcedure.h:42
void inet::ieee80211::TxopProcedure::stopTxop |
( |
| ) |
|
|
virtual |
simtime_t start
Definition: TxopProcedure.h:40
ProtectionMechanism protectionMechanism
Definition: TxopProcedure.h:42
simtime_t inet::ieee80211::TxopProcedure::limit = -1 |
|
protected |
simtime_t inet::ieee80211::TxopProcedure::start = -1 |
|
protected |
The documentation for this class was generated from the following files: