20 #include "ns3/assert.h" 33 .SetGroupName (
"Wave")
54 std::map<uint32_t, WaveChannel *> ::iterator i;
73 std::vector<uint32_t> schs;
74 schs.push_back (
SCH1);
75 schs.push_back (
SCH2);
76 schs.push_back (
SCH3);
77 schs.push_back (
SCH4);
78 schs.push_back (
SCH5);
79 schs.push_back (
SCH6);
87 std::vector<uint32_t> channels;
88 channels.push_back (
CCH);
89 channels.push_back (
SCH1);
90 channels.push_back (
SCH2);
91 channels.push_back (
SCH3);
92 channels.push_back (
SCH4);
93 channels.push_back (
SCH5);
94 channels.push_back (
SCH6);
103 return NumberOfWaveChannels;
110 return channelNumber ==
CCH;
117 if (channelNumber < SCH1 || channelNumber >
SCH6)
121 if (channelNumber % 2 == 1)
125 return (channelNumber !=
CCH);
132 if (channelNumber < SCH1 || channelNumber >
SCH6)
136 if (channelNumber % 2 == 1)
147 return m_channels[channelNumber]->operatingClass;
175 return m_channels[channelNumber]->txPowerLevel;
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
static std::vector< uint32_t > GetWaveChannels(void)
static std::vector< uint32_t > GetSchs(void)
bool GetManagementAdaptable(uint32_t channelNumber)
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
static bool IsWaveChannel(uint32_t channelNumber)
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
WifiPreamble GetManagementPreamble(uint32_t channelNumber)
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
static uint32_t GetNumberOfWaveChannels(void)
static uint32_t GetCch(void)
static bool IsCch(uint32_t channelNumber)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t GetOperatingClass(uint32_t channelNumber)
static bool IsSch(uint32_t channelNumber)
uint32_t GetManagementPowerLevel(uint32_t channelNumber)
WifiMode GetManagementDataRate(uint32_t channelNumber)
A base class which provides memory management and object aggregation.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
static TypeId GetTypeId(void)
Get the type ID.
virtual ~ChannelManager()
std::map< uint32_t, WaveChannel * > m_channels
list of channels
manage 7 WaveChannels and the tx information such as data rate and txPowerLevel.