#include <wifi-channel.h>
Public Member Functions | |
virtual uint32_t | GetNDevices (void) const |
virtual Ptr< NetDevice > | GetDevice (uint32_t i) const |
void | SetPropagationLossModel (Ptr< PropagationLossModel > loss) |
void | SetPropagationDelayModel (Ptr< PropagationDelayModel > delay) |
void | Add (Ptr< NetDevice > device, Ptr< WifiPhy > phy) |
void | Send (Ptr< WifiPhy > sender, Ptr< const Packet > packet, double txPowerDbm, WifiMode wifiMode, WifiPreamble preamble) const |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::WifiChannel. |
A 802.11 Channel.
This channel subclass can be used to connect together a set of ns3::WifiNetDevice network interfaces. A WifiChannel contains a ns3::PropagationLossModel and a ns3::PropagationDelayModel which can be overriden by the WifiChannel::SetPropagationLossModel and the WifiChannel::SetPropagationDelayModel methods. By default, no propagation models are set.
device | the device to add to the list of connected devices. | |
phy | the physical layer which will receive packets on behalf of the device. |
This method should not be invoked by normal users. It is currently invoked only from WifiPhy::SetChannel.
i | index of the requested network interface. |
Overriden from the NetDevice base class. Indexes start at 0 and end at n-1.
Implements ns3::Channel.
virtual uint32_t ns3::WifiChannel::GetNDevices | ( | void | ) | const [virtual] |
Overriden from the NetDevice base class.
Implements ns3::Channel.
static TypeId ns3::WifiChannel::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::WifiChannel.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::Channel.
void ns3::WifiChannel::Send | ( | Ptr< WifiPhy > | sender, | |
Ptr< const Packet > | packet, | |||
double | txPowerDbm, | |||
WifiMode | wifiMode, | |||
WifiPreamble | preamble | |||
) | const |
sender | the device from which the packet is originating. | |
packet | the packet to send | |
txPowerDbm | the tx power associated to the packet | |
wifiMode | the tx mode associated to the packet | |
preamble | the preamble associated to the packet |
This method should not be invoked by normal users. It is currently invoked only from WifiPhy::Send.
void ns3::WifiChannel::SetPropagationDelayModel | ( | Ptr< PropagationDelayModel > | delay | ) |
delay | the new propagation delay model. |
void ns3::WifiChannel::SetPropagationLossModel | ( | Ptr< PropagationLossModel > | loss | ) |
loss | the new propagation loss model. |