Public Member Functions | Static Public Member Functions

ns3::WifiChannel Class Reference

A 802.11 Channel. More...

#include <wifi-channel.h>

Inheritance diagram for ns3::WifiChannel:
Inheritance graph
[legend]
Collaboration diagram for ns3::WifiChannel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual uint32_t GetNDevices (void) const
virtual Ptr< NetDeviceGetDevice (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.

Detailed Description

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.


Member Function Documentation

void ns3::WifiChannel::Add ( Ptr< NetDevice device,
Ptr< WifiPhy phy 
)
Parameters:
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.

virtual Ptr<NetDevice> ns3::WifiChannel::GetDevice ( uint32_t  i  )  const [virtual]
Parameters:
i index of the requested network interface.
Returns:
the requested network interfaces connected to this channel.

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]
Returns:
the number of network interfaces connected to this channel.

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:

  • /NodeList/[i]/DeviceList/[i]/$ns3WifiNetDevice/Channel

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
Parameters:
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  ) 
Parameters:
delay the new propagation delay model.
void ns3::WifiChannel::SetPropagationLossModel ( Ptr< PropagationLossModel loss  ) 
Parameters:
loss the new propagation loss model.

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