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. | |
![]() | |
ChannelAccessManager () | |
~ChannelAccessManager () override | |
void | Add (Ptr< Txop > txop) |
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. | |
uint16_t | 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) |
Determine if a new backoff needs to be generated when a packet is queued for transmission. | |
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 | NotifySwitchingStartNow (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. | |
void | RequestAccess (Ptr< Txop > txop) |
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 listener for PHY events. | |
![]() | |
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. | |
![]() | |
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. | |
![]() | |
virtual | ~ObjectBase () |
Virtual destructor. | |
void | GetAttribute (std::string name, AttributeValue &value) 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. | |
virtual TypeId | GetInstanceTypeId () const =0 |
Get the most derived TypeId for this Object. | |
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 TypeId | GetTypeId () |
Register this type. | |
![]() | |
static TypeId | GetTypeId () |
Get the type ID. | |
![]() | |
void | DoDispose () override |
Destructor implementation. | |
void | DoInitialize () override |
Initialize() implementation. | |
![]() | |
Object (const Object &o) | |
Copy an Object. | |
virtual void | DoDispose () |
Destructor implementation. | |
virtual void | DoInitialize () |
Initialize() implementation. | |
virtual void | NotifyNewAggregate () |
Notify all Objects aggregated to this one of a new Object being aggregated. | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. | |
virtual void | NotifyConstructionCompleted () |
Notifier called once the ObjectBase is fully constructed. | |
![]() | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. | |
ChannelAccessManager Stub.
Definition at line 111 of file channel-access-manager-test.cc.
|
inline |
Definition at line 114 of file channel-access-manager-test.cc.
|
inlineoverrideprivatevirtual |
Return the EIFS duration minus a DIFS.
Reimplemented from ns3::ChannelAccessManager.
Definition at line 159 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 149 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 154 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 143 of file channel-access-manager-test.cc.
References m_eifsNoDifs.
|
inline |
Set the Short Interframe Space (SIFS).
sifs | the SIFS duration |
Definition at line 123 of file channel-access-manager-test.cc.
References m_sifs.
|
inline |
Set the slot duration.
slot | the slot duration |
Definition at line 133 of file channel-access-manager-test.cc.
References m_slot.
|
private |
EIFS duration minus a DIFS.
Definition at line 166 of file channel-access-manager-test.cc.
Referenced by GetEifsNoDifs(), and SetEifsNoDifs().
|
private |
SIFS duration.
Definition at line 165 of file channel-access-manager-test.cc.
|
private |
slot duration
Definition at line 164 of file channel-access-manager-test.cc.