22 #include "ns3/boolean.h"
23 #include "ns3/double.h"
25 #include "ns3/string.h"
26 #include "ns3/tuple.h"
53 .AddAttribute(
"Support160MHzOperation",
54 "Whether or not 160 MHz operation is to be supported.",
59 .AddAttribute(
"SecondaryCcaSensitivityThresholds",
60 "Tuple {threshold for 20MHz PPDUs, threshold for 40MHz PPDUs, threshold "
62 "describing the CCA sensitivity thresholds for PPDUs that do not occupy "
63 "the primary channel. "
64 "The power of a received PPDU that does not occupy the primary channel "
65 "should be higher than "
66 "the threshold (dBm) associated to the PPDU bandwidth to allow the PHY "
67 "layer to declare CCA BUSY state.",
69 MakeTupleAccessor<DoubleValue, DoubleValue, DoubleValue>(
72 MakeTupleChecker<DoubleValue, DoubleValue, DoubleValue>(
73 MakeDoubleChecker<double>(),
74 MakeDoubleChecker<double>(),
75 MakeDoubleChecker<double>()));
110 const std::map<uint16_t, double>&
A base class which provides memory management and object aggregation.
Hold variables of type string.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
std::tuple< double, double, double > SecondaryCcaSensitivityThresholds
Tuple identifying CCA sensitivity thresholds for secondary channels.
void Set160MHzOperationSupported(bool enable)
Enable or disable 160 MHz operation support.
void SetSecondaryCcaSensitivityThresholds(const SecondaryCcaSensitivityThresholds &thresholds)
Sets the CCA sensitivity thresholds for PPDUs that do not occupy the primary channel.
bool Get160MHzOperationSupported() const
bool m_160MHzSupported
whether 160 MHz operation is supported
~VhtConfiguration() override
std::map< uint16_t, double > m_secondaryCcaSensitivityThresholds
CCA sensitivity thresholds for signals that do not occupy the primary channel, indexed by signal band...
SecondaryCcaSensitivityThresholds GetSecondaryCcaSensitivityThresholds() const
static TypeId GetTypeId()
Get the type ID.
const std::map< uint16_t, double > & GetSecondaryCcaSensitivityThresholdsPerBw() const
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeChecker > MakeBooleanChecker()
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)