20 #ifndef YANS_WIFI_CHANNEL_H
21 #define YANS_WIFI_CHANNEL_H
25 #include "ns3/packet.h"
30 #include "ns3/nstime.h"
35 class PropagationLossModel;
36 class PropagationDelayModel;
113 typedef std::vector<Ptr<YansWifiPhy> >
PhyList;
Ptr< PropagationDelayModel > m_delay
Propagation delay model.
Simulation virtual time values and global simulation resolution.
Smart pointer class similar to boost::intrusive_ptr.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
void SetPropagationLossModel(Ptr< PropagationLossModel > loss)
void SetPropagationDelayModel(Ptr< PropagationDelayModel > delay)
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
virtual Ptr< NetDevice > GetDevice(uint32_t i) const
virtual ~YansWifiChannel()
virtual uint32_t GetNDevices(void) const
Ptr< PropagationLossModel > m_loss
Propagation loss model.
PhyList m_phyList
List of YansWifiPhys connected to this YansWifiChannel.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static TypeId GetTypeId(void)
void Send(Ptr< YansWifiPhy > sender, Ptr< const Packet > packet, double txPowerDbm, WifiTxVector txVector, WifiPreamble preamble, uint8_t packetType, Time duration) const
std::vector< Ptr< YansWifiPhy > > PhyList
A vector of pointers to YansWifiPhy.
Wifi Channel interface specificationThis class works in tandem with the ns3::WifiPhy class...
void Add(Ptr< YansWifiPhy > phy)
Adds the given YansWifiPhy to the PHY list.
A Yans wifi channelThis wifi channel implements the propagation model described in "Yet Another Netwo...
void Receive(uint32_t i, Ptr< Packet > packet, double *atts, WifiTxVector txVector, WifiPreamble preamble) const
This method is scheduled by Send for each associated YansWifiPhy.
a unique identifier for an interface.