ChannelAccessManager Stub. More...
Public Member Functions | |
ChannelAccessManagerStub () | |
void | SetEifsNoDifs (Time eifsNoDifs) |
Set the duration of EIFS - DIFS. | |
void | SetSifs (Time sifs) |
Set the Short Interframe Space (SIFS). | |
void | SetSlot (Time slot) |
Set the slot duration. | |
Public Member Functions inherited from ns3::ChannelAccessManager | |
ChannelAccessManager () | |
~ChannelAccessManager () override | |
void | Add (Ptr< Txop > txop) |
void | DeactivatePhyListener (Ptr< WifiPhy > phy) |
Deactivate current registered listener for PHY events on the given PHY. | |
void | DisableEdcaFor (Ptr< Txop > qosTxop, Time duration) |
Time | GetAccessGrantStart (bool ignoreNav=false) const |
Access will never be granted to the medium before the time returned by this method. | |
Time | GetBackoffEndFor (Ptr< Txop > txop) const |
Return the time when the backoff procedure ended (or will end) for the given Txop. | |
Time | GetBackoffStartFor (Ptr< Txop > txop) const |
Return the time when the backoff procedure started for the given Txop. | |
bool | GetGenerateBackoffOnNoTx () const |
MHz_u | GetLargestIdlePrimaryChannel (Time interval, Time end) |
Return the width of the largest primary channel that has been idle for the given time interval before the given time, if any primary channel has been idle, or zero, otherwise. | |
bool | GetPer20MHzBusy (const std::set< uint8_t > &indices) const |
bool | IsBusy () const |
Check if the device is busy sending or receiving, or NAV or CCA busy. | |
bool | NeedBackoffUponAccess (Ptr< Txop > txop, bool hadFramesToTransmit, bool checkMediumBusy) |
Determine if a new backoff needs to be generated as per letter a) of Section 10.23.2.2 of IEEE 802.11-2020 ("EDCA backoff procedure"). | |
void | NotifyAckTimeoutResetNow () |
Notify that ack timer has reset. | |
void | NotifyAckTimeoutStartNow (Time duration) |
Notify that ack timer has started for the given duration. | |
void | NotifyCcaBusyStartNow (Time duration, WifiChannelListType channelType, const std::vector< Time > &per20MhzDurations) |
void | NotifyCtsTimeoutResetNow () |
Notify that CTS timer has reset. | |
void | NotifyCtsTimeoutStartNow (Time duration) |
Notify that CTS timer has started for the given duration. | |
void | NotifyNavResetNow (Time duration) |
void | NotifyNavStartNow (Time duration) |
void | NotifyOffNow () |
Notify the Txop that the device has been put in off mode. | |
void | NotifyOnNow () |
Notify the Txop that the device has been resumed from off mode. | |
void | NotifyRxEndErrorNow () |
Notify the Txop that a packet reception was just completed unsuccessfuly. | |
void | NotifyRxEndOkNow () |
Notify the Txop that a packet reception was just completed successfully. | |
void | NotifyRxStartNow (Time duration) |
void | NotifySleepNow () |
Notify the Txop that the device has been put in sleep mode. | |
void | NotifySwitchingEmlsrLink (Ptr< WifiPhy > phy, const WifiPhyOperatingChannel &channel, uint8_t linkId) |
Notify that the given PHY is about to switch to the given operating channel, which is used by the given link. | |
void | NotifySwitchingStartNow (PhyListener *phyListener, Time duration) |
void | NotifyTxStartNow (Time duration) |
void | NotifyWakeupNow () |
Notify the Txop that the device has been resumed from sleep mode. | |
void | RemovePhyListener (Ptr< WifiPhy > phy) |
Remove current registered listener for PHY events on the given PHY. | |
void | RequestAccess (Ptr< Txop > txop) |
void | ResetAllBackoffs () |
Reset the backoff for all the DCF/EDCAF. | |
void | ResetBackoff (Ptr< Txop > txop) |
Reset the backoff for the given DCF/EDCAF. | |
void | ResetState () |
Reset the state variables of this channel access manager. | |
void | SetGenerateBackoffOnNoTx (bool enable) |
Set the member variable indicating whether the backoff should be invoked when an AC gains the right to start a TXOP but it does not transmit any frame (e.g., due to constraints associated with EMLSR operations), provided that the queue is not actually empty. | |
void | SetLinkId (uint8_t linkId) |
Set the ID of the link this Channel Access Manager is associated with. | |
void | SetupFrameExchangeManager (Ptr< FrameExchangeManager > feManager) |
Set up the Frame Exchange Manager. | |
void | SetupPhyListener (Ptr< WifiPhy > phy) |
Set up (or reactivate) listener for PHY events on the given PHY. | |
Public Member Functions inherited from ns3::Object | |
Object () | |
Constructor. | |
~Object () override | |
Destructor. | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. | |
void | Dispose () |
Dispose of this Object. | |
AggregateIterator | GetAggregateIterator () const |
Get an iterator to the Objects aggregated to this one. | |
TypeId | GetInstanceTypeId () const override |
Get the most derived TypeId for this Object. | |
template<typename T > | |
Ptr< T > | GetObject () const |
Get a pointer to the requested aggregated Object. | |
template<> | |
Ptr< Object > | GetObject () const |
Specialization of () for objects of type ns3::Object. | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. | |
template<> | |
Ptr< Object > | GetObject (TypeId tid) const |
Specialization of (TypeId tid) for objects of type ns3::Object. | |
void | Initialize () |
Invoke DoInitialize on all Objects aggregated to this one. | |
bool | IsInitialized () const |
Check if the object has been initialized. | |
void | UnidirectionalAggregateObject (Ptr< Object > other) |
Aggregate an Object to another Object. | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
SimpleRefCount () | |
Default constructor. | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. | |
void | Ref () const |
Increment the reference count. | |
void | Unref () const |
Decrement the reference count. | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. | |
void | GetAttribute (std::string name, AttributeValue &value, bool permissive=false) const |
Get the value of an attribute, raising fatal errors if unsuccessful. | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising errors. | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. | |
Private Member Functions | |
Time | GetEifsNoDifs () const override |
Return the EIFS duration minus a DIFS. | |
Time | GetSifs () const override |
Return the Short Interframe Space (SIFS) for this PHY. | |
Time | GetSlot () const override |
Return the slot duration for this PHY. | |
Private Attributes | |
Time | m_eifsNoDifs |
EIFS duration minus a DIFS. | |
Time | m_sifs |
SIFS duration. | |
Time | m_slot |
slot duration | |
Additional Inherited Members | |
Static Public Member Functions inherited from ns3::ChannelAccessManager | |
static TypeId | GetTypeId () |
Get the type ID. | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId () |
Register this type. | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId () |
Get the type ID. | |
Protected Member Functions inherited from ns3::ChannelAccessManager | |
void | DoDispose () override |
Destructor implementation. | |
void | DoInitialize () override |
Initialize() implementation. | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. | |
virtual void | NotifyNewAggregate () |
Notify all Objects aggregated to this one of a new Object being aggregated. | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. | |
virtual void | NotifyConstructionCompleted () |
Notifier called once the ObjectBase is fully constructed. | |
Related Symbols inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. | |
ChannelAccessManager Stub.
Definition at line 117 of file channel-access-manager-test.cc.
|
inline |
Definition at line 120 of file channel-access-manager-test.cc.
|
inlineoverrideprivatevirtual |
Return the EIFS duration minus a DIFS.
Reimplemented from ns3::ChannelAccessManager.
Definition at line 165 of file channel-access-manager-test.cc.
References m_eifsNoDifs.
|
inlineoverrideprivatevirtual |
Return the Short Interframe Space (SIFS) for this PHY.
Reimplemented from ns3::ChannelAccessManager.
Definition at line 155 of file channel-access-manager-test.cc.
References m_sifs.
|
inlineoverrideprivatevirtual |
Return the slot duration for this PHY.
Reimplemented from ns3::ChannelAccessManager.
Definition at line 160 of file channel-access-manager-test.cc.
References m_slot.
|
inline |
Set the duration of EIFS - DIFS.
eifsNoDifs | the duration of EIFS - DIFS |
Definition at line 149 of file channel-access-manager-test.cc.
References m_eifsNoDifs.
|
inline |
Set the Short Interframe Space (SIFS).
sifs | the SIFS duration |
Definition at line 129 of file channel-access-manager-test.cc.
References m_sifs.
|
inline |
Set the slot duration.
slot | the slot duration |
Definition at line 139 of file channel-access-manager-test.cc.
References m_slot.
|
private |
EIFS duration minus a DIFS.
Definition at line 172 of file channel-access-manager-test.cc.
Referenced by GetEifsNoDifs(), and SetEifsNoDifs().
|
private |
SIFS duration.
Definition at line 171 of file channel-access-manager-test.cc.
|
private |
slot duration
Definition at line 170 of file channel-access-manager-test.cc.