A Discrete-Event Network Simulator
API
ChannelAccessManagerStub Class Reference

ChannelAccessManager Stub. More...

+ Inheritance diagram for ChannelAccessManagerStub:
+ Collaboration diagram for ChannelAccessManagerStub:

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...
 
- Public Member Functions inherited from ns3::ChannelAccessManager
 ChannelAccessManager ()
 
virtual ~ChannelAccessManager ()
 
void Add (Ptr< Txop > txop)
 
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...
 
- Public Member Functions inherited from ns3::Object
 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<typename T >
Ptr< T > GetObject (void) const
 Get a pointer to the requested aggregated Object. More...
 
template<typename T >
Ptr< T > GetObject (TypeId tid) const
 Get a pointer to the requested aggregated Object by TypeId. More...
 
template<>
Ptr< ObjectGetObject () const
 Specialization of () for objects of type ns3::Object. More...
 
template<>
Ptr< ObjectGetObject (TypeId tid) const
 Specialization of (TypeId tid) for objects of type ns3::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...
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 Default constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 
- Public Member Functions inherited from ns3::ObjectBase
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...
 
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 Public Member Functions inherited from ns3::Object
static TypeId GetTypeId (void)
 Register this type. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Protected Member Functions inherited from ns3::ChannelAccessManager
void DoDispose (void) override
 Destructor implementation. More...
 
- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 Copy an Object. 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...
 
- Protected Member Functions inherited from ns3::ObjectBase
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...
 

Detailed Description

ChannelAccessManager Stub.

Definition at line 107 of file channel-access-manager-test.cc.

Constructor & Destructor Documentation

◆ ChannelAccessManagerStub()

ChannelAccessManagerStub::ChannelAccessManagerStub ( )
inline

Definition at line 110 of file channel-access-manager-test.cc.

Member Function Documentation

◆ GetEifsNoDifs()

Time ChannelAccessManagerStub::GetEifsNoDifs ( void  ) const
inlineoverrideprivatevirtual

Return the EIFS duration minus a DIFS.

Returns
the EIFS duration minus a DIFS

Reimplemented from ns3::ChannelAccessManager.

Definition at line 152 of file channel-access-manager-test.cc.

◆ GetSifs()

Time ChannelAccessManagerStub::GetSifs ( void  ) const
inlineoverrideprivatevirtual

Return the Short Interframe Space (SIFS) for this PHY.

Returns
the SIFS duration

Reimplemented from ns3::ChannelAccessManager.

Definition at line 142 of file channel-access-manager-test.cc.

◆ GetSlot()

Time ChannelAccessManagerStub::GetSlot ( void  ) const
inlineoverrideprivatevirtual

Return the slot duration for this PHY.

Returns
the slot duration

Reimplemented from ns3::ChannelAccessManager.

Definition at line 147 of file channel-access-manager-test.cc.

◆ SetEifsNoDifs()

void ChannelAccessManagerStub::SetEifsNoDifs ( Time  eifsNoDifs)
inline

Set the duration of EIFS - DIFS.

Parameters
eifsNoDifsthe duration of EIFS - DIFS

Definition at line 136 of file channel-access-manager-test.cc.

◆ SetSifs()

void ChannelAccessManagerStub::SetSifs ( Time  sifs)
inline

Set the Short Interframe Space (SIFS).

Parameters
sifsthe SIFS duration

Definition at line 118 of file channel-access-manager-test.cc.

◆ SetSlot()

void ChannelAccessManagerStub::SetSlot ( Time  slot)
inline

Set the slot duration.

Parameters
slotthe slot duration

Definition at line 127 of file channel-access-manager-test.cc.

Member Data Documentation

◆ m_eifsNoDifs

Time ChannelAccessManagerStub::m_eifsNoDifs
private

EIFS duration minus a DIFS.

Definition at line 159 of file channel-access-manager-test.cc.

◆ m_sifs

Time ChannelAccessManagerStub::m_sifs
private

SIFS duration.

Definition at line 158 of file channel-access-manager-test.cc.

◆ m_slot

Time ChannelAccessManagerStub::m_slot
private

slot duration

Definition at line 157 of file channel-access-manager-test.cc.


The documentation for this class was generated from the following file: