List of all members.
Public Member Functions |
void | SetChannel (Ptr< SpectrumChannel > channel) |
void | SetChannel (std::string channelName) |
void | SetPhyAttribute (std::string name, const AttributeValue &v) |
void | SetDeviceAttribute (std::string n1, const AttributeValue &v1) |
void | SetAntenna (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 | SetRxSpectrumModel (Ptr< SpectrumModel > m) |
void | EnableAsciiAll (std::string prefix) |
NetDeviceContainer | Install (NodeContainer c) const |
NetDeviceContainer | Install (Ptr< Node > node) const |
NetDeviceContainer | Install (std::string nodeName) const |
Member Function Documentation
void ns3::SpectrumAnalyzerHelper::EnableAsciiAll |
( |
std::string |
prefix | ) |
|
Enable ASCII output. This will create one filename for every created SpectrumAnalyzer instance.
- Parameters:
-
prefix | the prefix of the filename of the traces that will be created. |
References NS_LOG_FUNCTION.
- Parameters:
-
c | the set of nodes on which a device must be created |
- Returns:
- a device container which contains all the devices created by this method.
References ns3::NetDeviceContainer::Add(), ns3::Node::AddDevice(), ns3::SpectrumChannel::AddRx(), ns3::NodeContainer::Begin(), ns3::Config::ConnectWithoutContext(), ns3::ObjectFactory::Create(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::NodeContainer::End(), ns3::AsciiTraceHelper::GetFilenameFromDevice(), ns3::Node::GetId(), ns3::Object::GetObject(), NS_ASSERT, NS_ASSERT_MSG, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
Referenced by Install().
- Parameters:
-
node | the node on which a device must be created |
- Returns:
- a device container which contains all the devices created by this method.
References Install(), and NS_LOG_FUNCTION.
- Parameters:
-
nodeName | the name of node on which a device must be created |
- Returns:
- a device container which contains all the devices created by this method.
References Install(), and NS_LOG_FUNCTION.
void ns3::SpectrumAnalyzerHelper::SetAntenna |
( |
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 the model to set |
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 |
Configure the AntennaModel instance for each new device to be created
References ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
void ns3::SpectrumAnalyzerHelper::SetChannel |
( |
std::string |
channelName | ) |
|
void ns3::SpectrumAnalyzerHelper::SetDeviceAttribute |
( |
std::string |
n1, |
|
|
const AttributeValue & |
v1 |
|
) |
| |
void ns3::SpectrumAnalyzerHelper::SetPhyAttribute |
( |
std::string |
name, |
|
|
const AttributeValue & |
v |
|
) |
| |
- Parameters:
-
name | the name of the attribute to set |
v | the value of the attribute |
Set these attributes on each HdOfdmSpectrumPhy instance to be created
References NS_LOG_FUNCTION, and ns3::ObjectFactory::Set().
The documentation for this class was generated from the following files:
- src/spectrum/helper/spectrum-analyzer-helper.h
- src/spectrum/helper/spectrum-analyzer-helper.cc