List of all members.
Public Member Functions |
void | SetMac (std::string type, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue()) |
void | SetPhy (std::string phyType, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue()) |
void | SetTransducer (std::string type, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue()) |
NetDeviceContainer | Install (NodeContainer c) const |
NetDeviceContainer | Install (NodeContainer c, Ptr< UanChannel > channel) const |
Ptr< UanNetDevice > | Install (Ptr< Node > node, Ptr< UanChannel > channel) const |
Member Function Documentation
void ns3::UanHelper::EnableAscii |
( |
std::ostream & |
os, |
|
|
uint32_t |
nodeid, |
|
|
uint32_t |
deviceid |
|
) |
| |
|
static |
void ns3::UanHelper::EnableAscii |
( |
std::ostream & |
os, |
|
|
NodeContainer |
n |
|
) |
| |
|
static |
void ns3::UanHelper::EnableAsciiAll |
( |
std::ostream & |
os | ) |
|
|
static |
- Parameters:
-
This method creates a simple ns3::UanChannel (with a default ns3::UanNoiseModelDefault and ns3::UanPropModelIdeal) and creates, for each of the input nodes, a new ns3::UanNetDevice attached to this shared channel. Each ns3::UanNetDevice is also configured with an ns3::UanTransducerHd, ns3::UanMac, and, ns3::UanPhy, all of which are created based on the user-specified attributes specified in UanHelper::SetTransducer, UanHelper::SetMac, and, UanHelper::SetPhy.
References ns3::UanChannel::SetNoiseModel(), and ns3::UanChannel::SetPropagationModel().
Referenced by Install().
- Parameters:
-
c | a set of nodes |
channel | a channel to use |
For each of the input nodes, a new ns3::UanNetDevice is attached to the shared input channel. Each ns3::UanNetDevice is also configured with an ns3::UanTransducerHd, a ns3::UanMac, and ns3::UanPhy, all of which are created based on the user-specified attributes specified in UanHelper::SetTransducer, UanHelper::SetMac, and UanHelper::SetPhy.
References ns3::NetDeviceContainer::Add(), ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), ns3::Object::GetObject(), Install(), and NS_LOG_DEBUG.
- Parameters:
-
node | a node where to install the uan components |
channel | a channel to use |
Create a default uan stack with:
- default channel, ideal propagation and default noise model
- default physical layer, with UanPhyGen
- default transducer, half duplex acoustic modem with UanTransducerHd
- default MAC layer, with UanMacAloha
Channel, physical layer, transducer and mac layer are added to the UanNetDevice and then added to the node.
References ns3::Node::AddDevice(), ns3::UanAddress::Allocate(), ns3::ObjectFactory::Create(), ns3::UanNetDevice::SetChannel(), ns3::UanNetDevice::SetMac(), ns3::UanNetDevice::SetPhy(), and ns3::UanNetDevice::SetTransducer().
void ns3::UanHelper::SetMac |
( |
std::string |
type, |
|
|
std::string |
n0 = "" , |
|
|
const AttributeValue & |
v0 = EmptyAttributeValue () , |
|
|
std::string |
n1 = "" , |
|
|
const AttributeValue & |
v1 = EmptyAttributeValue () , |
|
|
std::string |
n2 = "" , |
|
|
const AttributeValue & |
v2 = EmptyAttributeValue () , |
|
|
std::string |
n3 = "" , |
|
|
const AttributeValue & |
v3 = EmptyAttributeValue () , |
|
|
std::string |
n4 = "" , |
|
|
const AttributeValue & |
v4 = EmptyAttributeValue () , |
|
|
std::string |
n5 = "" , |
|
|
const AttributeValue & |
v5 = EmptyAttributeValue () , |
|
|
std::string |
n6 = "" , |
|
|
const AttributeValue & |
v6 = EmptyAttributeValue () , |
|
|
std::string |
n7 = "" , |
|
|
const AttributeValue & |
v7 = EmptyAttributeValue () |
|
) |
| |
- Parameters:
-
type | the type of ns3::UanMac to create. |
n0 | the name of the attribute to set |
v0 | the value of the attribute to set |
n1 | the name of the attribute to set |
v1 | the value of the attribute to set |
n2 | the name of the attribute to set |
v2 | the value of the attribute to set |
n3 | the name of the attribute to set |
v3 | the value of the attribute to set |
n4 | the name of the attribute to set |
v4 | the value of the attribute to set |
n5 | the name of the attribute to set |
v5 | the value of the attribute to set |
n6 | the name of the attribute to set |
v6 | the value of the attribute to set |
n7 | the name of the attribute to set |
v7 | the value of the attribute to set |
All the attributes specified in this method should exist in the requested mac.
References ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
void ns3::UanHelper::SetPhy |
( |
std::string |
phyType, |
|
|
std::string |
n0 = "" , |
|
|
const AttributeValue & |
v0 = EmptyAttributeValue () , |
|
|
std::string |
n1 = "" , |
|
|
const AttributeValue & |
v1 = EmptyAttributeValue () , |
|
|
std::string |
n2 = "" , |
|
|
const AttributeValue & |
v2 = EmptyAttributeValue () , |
|
|
std::string |
n3 = "" , |
|
|
const AttributeValue & |
v3 = EmptyAttributeValue () , |
|
|
std::string |
n4 = "" , |
|
|
const AttributeValue & |
v4 = EmptyAttributeValue () , |
|
|
std::string |
n5 = "" , |
|
|
const AttributeValue & |
v5 = EmptyAttributeValue () , |
|
|
std::string |
n6 = "" , |
|
|
const AttributeValue & |
v6 = EmptyAttributeValue () , |
|
|
std::string |
n7 = "" , |
|
|
const AttributeValue & |
v7 = EmptyAttributeValue () |
|
) |
| |
- Parameters:
-
phyType | the type of ns3::UanPhy to create. |
n0 | the name of the attribute to set |
v0 | the value of the attribute to set |
n1 | the name of the attribute to set |
v1 | the value of the attribute to set |
n2 | the name of the attribute to set |
v2 | the value of the attribute to set |
n3 | the name of the attribute to set |
v3 | the value of the attribute to set |
n4 | the name of the attribute to set |
v4 | the value of the attribute to set |
n5 | the name of the attribute to set |
v5 | the value of the attribute to set |
n6 | the name of the attribute to set |
v6 | the value of the attribute to set |
n7 | the name of the attribute to set |
v7 | the value of the attribute to set |
All the attributes specified in this method should exist in the requested phy.
References ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
void ns3::UanHelper::SetTransducer |
( |
std::string |
type, |
|
|
std::string |
n0 = "" , |
|
|
const AttributeValue & |
v0 = EmptyAttributeValue () , |
|
|
std::string |
n1 = "" , |
|
|
const AttributeValue & |
v1 = EmptyAttributeValue () , |
|
|
std::string |
n2 = "" , |
|
|
const AttributeValue & |
v2 = EmptyAttributeValue () , |
|
|
std::string |
n3 = "" , |
|
|
const AttributeValue & |
v3 = EmptyAttributeValue () , |
|
|
std::string |
n4 = "" , |
|
|
const AttributeValue & |
v4 = EmptyAttributeValue () , |
|
|
std::string |
n5 = "" , |
|
|
const AttributeValue & |
v5 = EmptyAttributeValue () , |
|
|
std::string |
n6 = "" , |
|
|
const AttributeValue & |
v6 = EmptyAttributeValue () , |
|
|
std::string |
n7 = "" , |
|
|
const AttributeValue & |
v7 = EmptyAttributeValue () |
|
) |
| |
- Parameters:
-
type | the type of ns3::Transducer to create |
n0 | the name of the attribute to set |
v0 | the value of the attribute to set |
n1 | the name of the attribute to set |
v1 | the value of the attribute to set |
n2 | the name of the attribute to set |
v2 | the value of the attribute to set |
n3 | the name of the attribute to set |
v3 | the value of the attribute to set |
n4 | the name of the attribute to set |
v4 | the value of the attribute to set |
n5 | the name of the attribute to set |
v5 | the value of the attribute to set |
n6 | the name of the attribute to set |
v6 | the value of the attribute to set |
n7 | the name of the attribute to set |
v7 | the value of the attribute to set |
All the attributes specified in this method should exist in the requested transducer.
References ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
The documentation for this class was generated from the following files:
- src/uan/helper/uan-helper.h
- src/uan/helper/uan-helper.cc