ChannelAccessManager Stub. More...
Public Member Functions | |
ChannelAccessManagerStub () | |
void | SetEifsNoDifs (Time eifsNoDifs) |
Set the duration of EIFS - DIFS. More... | |
void | SetSifs (Time sifs) |
Set the Short Interframe Space (SIFS). More... | |
void | SetSlot (Time slot) |
Set the slot duration. More... | |
![]() | |
ChannelAccessManager () | |
virtual | ~ChannelAccessManager () |
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. More... | |
bool | IsBusy (void) const |
Check if the device is busy sending or receiving, or NAV or CCA busy. More... | |
bool | NeedBackoffUponAccess (Ptr< Txop > txop) |
Determine if a new backoff needs to be generated when a packet is queued for transmission. More... | |
void | NotifyAckTimeoutResetNow (void) |
Notify that ack timer has reset. More... | |
void | NotifyAckTimeoutStartNow (Time duration) |
Notify that ack timer has started for the given duration. More... | |
void | NotifyCtsTimeoutResetNow (void) |
Notify that CTS timer has reset. More... | |
void | NotifyCtsTimeoutStartNow (Time duration) |
Notify that CTS timer has started for the given duration. More... | |
void | NotifyMaybeCcaBusyStartNow (Time duration) |
void | NotifyNavResetNow (Time duration) |
void | NotifyNavStartNow (Time duration) |
void | NotifyOffNow (void) |
Notify the Txop that the device has been put in off mode. More... | |
void | NotifyOnNow (void) |
Notify the Txop that the device has been resumed from off mode. More... | |
void | NotifyRxEndErrorNow (void) |
Notify the Txop that a packet reception was just completed unsuccessfully. More... | |
void | NotifyRxEndOkNow (void) |
Notify the Txop that a packet reception was just completed successfully. More... | |
void | NotifyRxStartNow (Time duration) |
void | NotifySleepNow (void) |
Notify the Txop that the device has been put in sleep mode. More... | |
void | NotifySwitchingStartNow (Time duration) |
void | NotifyTxStartNow (Time duration) |
void | NotifyWakeupNow (void) |
Notify the Txop that the device has been resumed from sleep mode. More... | |
void | RemovePhyListener (Ptr< WifiPhy > phy) |
Remove current registered listener for PHY events. More... | |
void | RequestAccess (Ptr< Txop > txop) |
void | SetupFrameExchangeManager (Ptr< FrameExchangeManager > feManager) |
Set up the Frame Exchange Manager. More... | |
void | SetupPhyListener (Ptr< WifiPhy > phy) |
Set up listener for PHY events. More... | |
![]() | |
Object () | |
Constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose (void) |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator (void) const |
Get an iterator to the Objects aggregated to this one. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Get the most derived TypeId for this Object. More... | |
template<> | |
Ptr< Object > | GetObject () const |
Specialization of () for objects of type ns3::Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
template<> | |
Ptr< Object > | GetObject (TypeId tid) const |
Specialization of (TypeId tid) for objects of type ns3::Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (void) const |
Get a pointer to the requested aggregated Object. More... | |
void | Initialize (void) |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized (void) const |
Check if the object has been initialized. More... | |
![]() | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
![]() | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising erros. More... | |
virtual TypeId | GetInstanceTypeId (void) const =0 |
Get the most derived TypeId for this Object. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Private Member Functions | |
Time | GetEifsNoDifs (void) const override |
Return the EIFS duration minus a DIFS. More... | |
Time | GetSifs (void) const override |
Return the Short Interframe Space (SIFS) for this PHY. More... | |
Time | GetSlot (void) const override |
Return the slot duration for this PHY. More... | |
Private Attributes | |
Time | m_eifsNoDifs |
EIFS duration minus a DIFS. More... | |
Time | m_sifs |
SIFS duration. More... | |
Time | m_slot |
slot duration More... | |
Additional Inherited Members | |
![]() | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
![]() | |
void | DoDispose (void) override |
Destructor implementation. More... | |
![]() | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | DoDispose (void) |
Destructor implementation. More... | |
virtual void | DoInitialize (void) |
Initialize() implementation. More... | |
virtual void | NotifyNewAggregate (void) |
Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
![]() | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
ChannelAccessManager Stub.
Definition at line 103 of file channel-access-manager-test.cc.
|
inline |
Definition at line 106 of file channel-access-manager-test.cc.
|
inlineoverrideprivatevirtual |
Return the EIFS duration minus a DIFS.
Reimplemented from ns3::ChannelAccessManager.
Definition at line 148 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 138 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 143 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 132 of file channel-access-manager-test.cc.
References m_eifsNoDifs.
|
inline |
Set the Short Interframe Space (SIFS).
sifs | the SIFS duration |
Definition at line 114 of file channel-access-manager-test.cc.
References m_sifs.
|
inline |
Set the slot duration.
slot | the slot duration |
Definition at line 123 of file channel-access-manager-test.cc.
References m_slot.
|
private |
EIFS duration minus a DIFS.
Definition at line 155 of file channel-access-manager-test.cc.
Referenced by GetEifsNoDifs(), and SetEifsNoDifs().
|
private |
SIFS duration.
Definition at line 154 of file channel-access-manager-test.cc.
|
private |
slot duration
Definition at line 153 of file channel-access-manager-test.cc.