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