Channel class used by UAN devices. More...
#include <uan-channel.h>
Public Types | |
typedef std::vector< std::pair < Ptr< UanNetDevice >, Ptr < UanTransducer > > > | UanDeviceList |
UanDeviceList is a standard template vector of pairs (UanNetDevice, UanTransducer). | |
Public Member Functions | |
virtual uint32_t | GetNDevices (void) const |
virtual Ptr< NetDevice > | GetDevice (uint32_t i) const |
void | TxPacket (Ptr< UanTransducer > src, Ptr< Packet > packet, double txPowerDb, UanTxMode txmode) |
void | AddDevice (Ptr< UanNetDevice > dev, Ptr< UanTransducer > trans) |
void | SetPropagationModel (Ptr< UanPropModel > prop) |
void | SetNoiseModel (Ptr< UanNoiseModel > noise) |
double | GetNoiseDbHz (double fKhz) |
void | Clear (void) |
Static Public Member Functions | |
static TypeId | GetTypeId () |
This method returns the TypeId associated to ns3::UanChannel. | |
Protected Member Functions | |
virtual void | DoDispose () |
Channel class used by UAN devices.
void ns3::UanChannel::AddDevice | ( | Ptr< UanNetDevice > | dev, | |
Ptr< UanTransducer > | trans | |||
) |
dev | Net Device of node | |
trans | Transducer of net device attached to this channel |
Adds device to receiver list for this channel
void ns3::UanChannel::Clear | ( | void | ) |
Clears all pointer references
virtual void ns3::UanChannel::DoDispose | ( | ) | [protected, virtual] |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
It is safe to call GetObject from within this method.
Reimplemented from ns3::Object.
i | index of NetDevice to retrieve |
This method must be implemented by subclasses.
Implements ns3::Channel.
virtual uint32_t ns3::UanChannel::GetNDevices | ( | void | ) | const [virtual] |
This method must be implemented by subclasses.
Implements ns3::Channel.
double ns3::UanChannel::GetNoiseDbHz | ( | double | fKhz | ) |
fKhz | Frequency in kHz |
static TypeId ns3::UanChannel::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::UanChannel.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
Attributes defined in parent class ns3::Channel:
No TraceSources defined for this type.
Reimplemented from ns3::Channel.
void ns3::UanChannel::SetNoiseModel | ( | Ptr< UanNoiseModel > | noise | ) |
noise | Noise model this channel will use to determine ambient channel noise. |
void ns3::UanChannel::SetPropagationModel | ( | Ptr< UanPropModel > | prop | ) |
prop | Propagation model this channel will use for path loss/propagation delay |
void ns3::UanChannel::TxPacket | ( | Ptr< UanTransducer > | src, | |
Ptr< Packet > | packet, | |||
double | txPowerDb, | |||
UanTxMode | txmode | |||
) |