24 #include "ns3/net-device.h"
25 #include "ns3/channel.h"
26 #include "ns3/packet.h"
27 #include "ns3/uan-prop-model.h"
28 #include "ns3/uan-noise-model.h"
Abstract Channel Base Class.
Smart pointer class similar to boost::intrusive_ptr.
a unique identifier for an interface.
Channel class used by UAN devices.
void SetNoiseModel(Ptr< UanNoiseModel > noise)
Set the noise model this channel will use to determine ambient channel noise.
double GetNoiseDbHz(double fKhz)
Get the noise level on the channel.
virtual std::size_t GetNDevices(void) const
void AddDevice(Ptr< UanNetDevice > dev, Ptr< UanTransducer > trans)
Adds device to receiver list for this channel.
Ptr< UanPropModel > m_prop
The propagation model.
virtual ~UanChannel()
Dummy destructor, see DoDispose.
Ptr< UanNoiseModel > m_noise
The noise model.
void Clear(void)
Clear all pointer references.
virtual void DoDispose(void)
Destructor implementation.
static TypeId GetTypeId(void)
Register this type.
virtual void TxPacket(Ptr< UanTransducer > src, Ptr< Packet > packet, double txPowerDb, UanTxMode txmode)
Send a packet out on the channel.
bool m_cleared
Has Clear ever been called on the channel.
std::vector< std::pair< Ptr< UanNetDevice >, Ptr< UanTransducer > > > UanDeviceList
UanDeviceList is a standard template vector of pairs (UanNetDevice, UanTransducer)
UanDeviceList m_devList
The list of devices on this channel.
void SendUp(uint32_t i, Ptr< Packet > packet, double rxPowerDb, UanTxMode txMode, UanPdp pdp)
Send a packet up to the receiving UanTransducer.
virtual Ptr< NetDevice > GetDevice(std::size_t i) const
void SetPropagationModel(Ptr< UanPropModel > prop)
Set the propagation model this channel will use for path loss/propagation delay.
The power delay profile returned by propagation models.
Abstraction of packet modulation information.
Every class exported by the ns3 library is enclosed in the ns3 namespace.