A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::EmlsrSwitchMainPhyBackTrace Struct Reference

Struct to trace that main PHY switched to leave a link on which an aux PHY was expected to gain a TXOP but the main PHY did not manage to gain a TXOP in the pre-configured amount of time. More...

#include "advanced-emlsr-manager.h"

+ Inheritance diagram for ns3::EmlsrSwitchMainPhyBackTrace:
+ Collaboration diagram for ns3::EmlsrSwitchMainPhyBackTrace:

Public Member Functions

 EmlsrSwitchMainPhyBackTrace (Time time, std::optional< WifiExpectedAccessReason > reason, bool switching)
 Constructor provided because this struct is not an aggregate (it has a base struct), hence we cannot use designated initializers.
 
- Public Member Functions inherited from ns3::EmlsrMainPhySwitchTraceImpl< EmlsrSwitchMainPhyBackTrace >
std::shared_ptr< EmlsrMainPhySwitchTraceClone () const override
 
std::string_view GetName () const override
 
- Public Member Functions inherited from ns3::EmlsrMainPhySwitchTrace
virtual ~EmlsrMainPhySwitchTrace ()=default
 

Public Attributes

std::optional< WifiExpectedAccessReasonearlySwitchReason
 the reason why the main PHY switches back before the expiration of the switch main PHY back timer
 
Time elapsed
 the time elapsed since the switch main PHY back timer started
 
bool isSwitching
 whether the main PHY is switching while it is requested to switch back
 
- Public Attributes inherited from ns3::EmlsrMainPhySwitchTrace
std::optional< uint8_t > fromLinkId
 ID of the link the main PHY is moving from (if any)
 
uint8_t toLinkId {WIFI_LINKID_UNDEFINED}
 ID of the link the main PHY is moving to.
 

Static Public Attributes

static constexpr std::string_view m_name = "TxopNotGainedOnAuxPhyLink"
 trace name
 

Detailed Description

Struct to trace that main PHY switched to leave a link on which an aux PHY was expected to gain a TXOP but the main PHY did not manage to gain a TXOP in the pre-configured amount of time.

Definition at line 188 of file advanced-emlsr-manager.h.

Constructor & Destructor Documentation

◆ EmlsrSwitchMainPhyBackTrace()

ns3::EmlsrSwitchMainPhyBackTrace::EmlsrSwitchMainPhyBackTrace ( Time time,
std::optional< WifiExpectedAccessReason > reason,
bool switching )
inline

Constructor provided because this struct is not an aggregate (it has a base struct), hence we cannot use designated initializers.

Parameters
timethe value for the elapsed field
reasonthe value for the earlySwitchReason field
switchingthe value for the isSwitching field

Definition at line 206 of file advanced-emlsr-manager.h.

Member Data Documentation

◆ earlySwitchReason

std::optional<WifiExpectedAccessReason> ns3::EmlsrSwitchMainPhyBackTrace::earlySwitchReason

the reason why the main PHY switches back before the expiration of the switch main PHY back timer

Definition at line 194 of file advanced-emlsr-manager.h.

◆ elapsed

Time ns3::EmlsrSwitchMainPhyBackTrace::elapsed

the time elapsed since the switch main PHY back timer started

Definition at line 192 of file advanced-emlsr-manager.h.

◆ isSwitching

bool ns3::EmlsrSwitchMainPhyBackTrace::isSwitching

whether the main PHY is switching while it is requested to switch back

Definition at line 196 of file advanced-emlsr-manager.h.

◆ m_name

std::string_view ns3::EmlsrSwitchMainPhyBackTrace::m_name = "TxopNotGainedOnAuxPhyLink"
staticconstexpr

trace name

Definition at line 190 of file advanced-emlsr-manager.h.


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