Instantiate subclasses of ns3::Object. More...
#include "object-factory.h"
Public Member Functions | |
ObjectFactory () | |
Default constructor. | |
template<typename... Args> | |
ObjectFactory (const std::string &typeId, Args &&... args) | |
Construct a factory for a specific TypeId by name. | |
Ptr< Object > | Create () const |
Create an Object instance of the configured TypeId. | |
template<typename T > | |
Ptr< T > | Create () const |
Create an Object instance of the requested type. | |
TypeId | GetTypeId () const |
Get the TypeId which will be created by this ObjectFactory. | |
bool | IsTypeIdSet () const |
Check if the ObjectFactory has been configured with a TypeId. | |
void | Set () |
Base case to stop the recursion performed by the templated version of this method. | |
template<typename... Args> | |
void | Set (const std::string &name, const AttributeValue &value, Args &&... args) |
Set an attribute to be set during construction. | |
void | SetTypeId (TypeId tid) |
Set the TypeId of the Objects to be created by this factory. | |
void | SetTypeId (std::string tid) |
Set the TypeId of the Objects to be created by this factory. | |
Private Member Functions | |
void | DoSet (const std::string &name, const AttributeValue &value) |
Set an attribute to be set during construction. | |
Private Attributes | |
AttributeConstructionList | m_parameters |
The list of attributes and values to be used in constructing objects by this factory. | |
TypeId | m_tid |
The TypeId this factory will create. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const ObjectFactory &factory) |
Print the factory configuration on an output stream. | |
std::istream & | operator>> (std::istream &is, ObjectFactory &factory) |
Read a factory configuration from an input stream. | |
Instantiate subclasses of ns3::Object.
This class can also hold a set of attributes to set automatically during the object construction.
Definition at line 36 of file object-factory.h.
ns3::ObjectFactory::ObjectFactory | ( | ) |
Default constructor.
This factory is not capable of constructing a real Object until it has at least a TypeId.
Definition at line 25 of file object-factory.cc.
References NS_LOG_FUNCTION.
ns3::ObjectFactory::ObjectFactory | ( | const std::string & | typeId, |
Args &&... | args ) |
Construct a factory for a specific TypeId by name.
Args | [deduced] Template type parameter pack for the sequence of name-value pairs |
[in] | typeId | The name of the TypeId this factory should create. |
[in] | args | A sequence of name-value pairs of additional attributes to set. |
The args sequence can be made of any number of pairs, each consisting of a name (of std::string type) followed by a value (of const AttributeValue & type).
Definition at line 205 of file object-factory.h.
References Set(), and SetTypeId().
Create an Object instance of the configured TypeId.
Definition at line 82 of file object-factory.cc.
References ns3::TypeId::GetConstructor(), ns3::TypeId::GetUid(), m_parameters, m_tid, NS_ASSERT, NS_ASSERT_MSG, and NS_LOG_FUNCTION.
Referenced by ns3::FileHelper::AddProbe(), ns3::GnuplotHelper::AddProbe(), ns3::SpectrumChannelHelper::AddPropagationLoss(), ns3::SpectrumChannelHelper::AddSpectrumPropagationLoss(), ns3::LteUeRrc::ApplyRadioResourceConfigDedicated(), BuildSimpleTopology(), ns3::LteHelper::ChannelModelInitialization(), ns3::PfifoFastQueueDisc::CheckConfig(), ns3::PrioQueueDisc::CheckConfig(), ns3::TbfQueueDisc::CheckConfig(), PowerRateAdaptationTest::ConfigureNode(), ns3::AodvHelper::Create(), ns3::DsdvHelper::Create(), ns3::DsrHelper::Create(), ns3::GridBuildingAllocator::Create(), Create(), ns3::OlsrHelper::Create(), ns3::RipHelper::Create(), ns3::RipNgHelper::Create(), ns3::SpectrumChannelHelper::Create(), ns3::SpectrumPhyHelper::Create(), ns3::SpectrumWifiPhyHelper::Create(), ns3::WifiMacHelper::Create(), ns3::YansWifiChannelHelper::Create(), ns3::YansWifiPhyHelper::Create(), ns3::ClickInternetStackHelper::CreateAndAggregateObjectFromTypeId(), ns3::InternetStackHelper::CreateAndAggregateObjectFromTypeId(), ns3::MeshHelper::CreateInterface(), UanTest::CreateNode(), ns3::CreateObjectWithAttributes(), InterferenceHelperSequenceTest::CreateOne(), WifiTest::CreateOne(), ns3::TcpOption::CreateOption(), ns3::QueueDiscFactory::CreateQueueDisc(), ns3::TcpGeneralTest::CreateSocket(), ns3::TcpL4Protocol::CreateSocket(), ns3::PointerValue::DeserializeFromString(), ns3::FqCobaltQueueDisc::DoEnqueue(), ns3::FqCoDelQueueDisc::DoEnqueue(), ns3::FqPieQueueDisc::DoEnqueue(), ns3::AcousticModemEnergyModelHelper::DoInstall(), ns3::ApplicationHelper::DoInstall(), ns3::BasicEnergyHarvesterHelper::DoInstall(), ns3::BasicEnergySourceHelper::DoInstall(), ns3::GenericBatteryModelHelper::DoInstall(), ns3::LiIonEnergySourceHelper::DoInstall(), ns3::RadvdHelper::DoInstall(), ns3::RvBatteryModelHelper::DoInstall(), ns3::WifiRadioEnergyModelHelper::DoInstall(), BasicEnergyHarvesterTestCase::DoRun(), Bug2831TestCase::DoRun(), BuildingsPenetrationLossesTestCase::DoRun(), DcfImmediateAccessBroadcastTestCase::DoRun(), InterferenceHelperSequenceTest::DoRun(), ns3::tests::ObjectFactoryTestCase::DoRun(), PointerAttributeTestCase::DoRun(), SteadyStateRandomWaypointTest::DoRun(), ThreeGppChannelConditionModelTestCase::DoRun(), ThreeGppV2vBuildingsChCondModelTestCase::DoRun(), ThreeGppV2vHighwayLosNlosvChCondModelTestCase::DoRun(), ThreeGppV2vUrbanLosNlosvChCondModelTestCase::DoRun(), V2vHighwayProbChCondModelTestCase::DoRun(), V2vUrbanProbChCondModelTestCase::DoRun(), WaypointMobilityModelAddWaypointTest::DoRun(), WaypointMobilityModelNotifyTest::DoRun(), AmpduAggregationTest::DoSetup(), ns3::GetImpl(), ns3::FlowMonitorHelper::GetMonitor(), ns3::AdhocAlohaNoackIdealPhyHelper::Install(), ns3::BridgeHelper::Install(), ns3::CsmaHelper::Install(), ns3::CsmaHelper::Install(), ns3::EnergyHarvesterHelper::Install(), ns3::EnergySourceHelper::Install(), ns3::GenericBatteryModelHelper::Install(), ns3::GroupMobilityHelper::Install(), ns3::LrWpanHelper::Install(), ns3::MobilityHelper::Install(), ns3::OpenFlowSwitchHelper::Install(), ns3::OpenFlowSwitchHelper::Install(), ns3::PointToPointHelper::Install(), ns3::SimpleNetDeviceHelper::Install(), ns3::SimpleNetDeviceHelper::Install(), ns3::SixLowPanHelper::Install(), ns3::SpectrumAnalyzerHelper::Install(), ns3::TapBridgeHelper::Install(), ns3::TrafficControlHelper::Install(), ns3::TvSpectrumTransmitterHelper::Install(), ns3::TvSpectrumTransmitterHelper::Install(), ns3::UanHelper::Install(), ns3::WaveformGeneratorHelper::Install(), ns3::WifiHelper::Install(), ns3::TvSpectrumTransmitterHelper::InstallAdjacent(), ns3::TvSpectrumTransmitterHelper::InstallAdjacent(), ns3::DhcpHelper::InstallDhcpClientPriv(), ns3::DhcpHelper::InstallDhcpServer(), ns3::CsmaHelper::InstallPriv(), ns3::FdNetDeviceHelper::InstallPriv(), ns3::SimpleNetDeviceHelper::InstallPriv(), ns3::LteHelper::InstallSingleEnbDevice(), ns3::LteSimpleHelper::InstallSingleEnbDevice(), ns3::LteHelper::InstallSingleUeDevice(), ns3::LteSimpleHelper::InstallSingleUeDevice(), ns3::VisualSimulatorImpl::NotifyConstructionCompleted(), RoutingExperiment::Run(), FifoQueueDiscTestCase::RunFifoTest(), WifiTest::RunOne(), ThreeGppShadowingTestCase::RunTest(), ns3::GroupMobilityHelper::SetMemberPositionAllocator(), ns3::NetDeviceQueueInterface::SetNTxQueues(), ns3::MobilityHelper::SetPositionAllocator(), ns3::GroupMobilityHelper::SetReferenceMobilityModel(), ns3::GroupMobilityHelper::SetReferencePositionAllocator(), ns3::DefaultSimulatorImpl::SetScheduler(), ns3::DistributedSimulatorImpl::SetScheduler(), ns3::NullMessageSimulatorImpl::SetScheduler(), ns3::RealtimeSimulatorImpl::SetScheduler(), ns3::MeshHelper::SetStackInstaller(), ns3::UeManager::SetupDataRadioBearer(), DsdvManetExample::SetupMobility(), and BasicEnergyUpdateTest::StateSwitchTest().
Ptr< T > ns3::ObjectFactory::Create | ( | ) | const |
Create an Object instance of the requested type.
This method performs an extra call to ns3::Object::GetObject before returning a pointer of the requested type to the user. This method is really syntactical sugar.
T | [explicit] The requested Object type. |
Definition at line 194 of file object-factory.h.
References Create(), and NS_ASSERT_MSG.
|
private |
Set an attribute to be set during construction.
[in] | name | The name of the attribute to set. |
[in] | value | The value of the attribute to set. |
Definition at line 51 of file object-factory.cc.
References ns3::AttributeConstructionList::Add(), ns3::TypeId::AttributeInformation::checker, ns3::TypeId::GetName(), ns3::TypeId::LookupAttributeByName(), m_parameters, m_tid, NS_FATAL_ERROR, and NS_LOG_FUNCTION.
Referenced by Set().
TypeId ns3::ObjectFactory::GetTypeId | ( | ) | const |
Get the TypeId which will be created by this ObjectFactory.
Definition at line 75 of file object-factory.cc.
References m_tid, and NS_LOG_FUNCTION.
Referenced by BenchSuite::BenchSuite(), ns3::ApplicationHelper::AssignStreams(), ns3::WifiRadioEnergyModelHelper::DoInstall(), ns3::LteHelper::GetEnbComponentCarrierManagerType(), ns3::LteHelper::GetFfrAlgorithmType(), ns3::LteHelper::GetHandoverAlgorithmType(), ns3::MobilityHelper::GetMobilityModelType(), ns3::LteHelper::GetSchedulerType(), ns3::LteHelper::GetUeComponentCarrierManagerType(), ns3::MobilityHelper::Install(), and ns3::TrafficControlHelper::Install().
bool ns3::ObjectFactory::IsTypeIdSet | ( | ) | const |
Check if the ObjectFactory has been configured with a TypeId.
Definition at line 45 of file object-factory.cc.
References ns3::TypeId::GetUid(), and m_tid.
Referenced by ns3::ApplicationHelper::AssignStreams(), ns3::WifiMacHelper::Create(), ns3::GroupMobilityHelper::Install(), ns3::LrWpanHelper::Install(), and ns3::WifiHelper::Install().
|
inline |
Base case to stop the recursion performed by the templated version of this method.
Definition at line 94 of file object-factory.h.
Referenced by ObjectFactory(), and Set().
void ns3::ObjectFactory::Set | ( | const std::string & | name, |
const AttributeValue & | value, | ||
Args &&... | args ) |
Set an attribute to be set during construction.
Args | [deduced] Template type parameter pack for the sequence of name-value pairs |
[in] | name | The name of the attribute to set. |
[in] | value | The value of the attribute to set. |
[in] | args | A sequence of name-value pairs of additional attributes to set. |
The args sequence can be made of any number of pairs, each consisting of a name (of std::string type) followed by a value (of const AttributeValue & type).
Definition at line 213 of file object-factory.h.
References DoSet(), and Set().
Referenced by ns3::BulkSendHelper::BulkSendHelper(), ns3::OnOffHelper::OnOffHelper(), ns3::PacketSinkHelper::PacketSinkHelper(), ns3::PingHelper::PingHelper(), ns3::ThreeGppHttpClientHelper::ThreeGppHttpClientHelper(), ns3::ThreeGppHttpServerHelper::ThreeGppHttpServerHelper(), ns3::V4TraceRouteHelper::V4TraceRouteHelper(), BuildSimpleTopology(), ns3::PfifoFastQueueDisc::CheckConfig(), ns3::WifiHelper::ConfigEhtOptions(), ns3::WifiHelper::ConfigHeOptions(), ns3::WifiHelper::ConfigHtOptions(), ns3::WifiHelper::ConfigVhtOptions(), ns3::GridBuildingAllocator::Create(), ns3::WifiMacHelper::Create(), ns3::MeshHelper::CreateInterface(), ns3::CreateObjectWithAttributes(), InterferenceHelperSequenceTest::CreateOne(), WifiTest::CreateOne(), UanTest::DoPhyTests(), DcfImmediateAccessBroadcastTestCase::DoRun(), PointerAttributeTestCase::DoRun(), SteadyStateRandomWaypointTest::DoRun(), WaypointMobilityModelAddWaypointTest::DoRun(), WaypointMobilityModelNotifyTest::DoRun(), AmpduAggregationTest::DoSetup(), ns3::FqCobaltQueueDisc::InitializeParams(), ns3::FqCoDelQueueDisc::InitializeParams(), ns3::FqPieQueueDisc::InitializeParams(), ns3::TapBridgeHelper::Install(), ns3::DhcpHelper::InstallDhcpServer(), RoutingExperiment::Run(), FifoQueueDiscTestCase::RunFifoTest(), ns3::AcousticModemEnergyModelHelper::Set(), ns3::AodvHelper::Set(), ns3::BasicEnergyHarvesterHelper::Set(), ns3::BasicEnergySourceHelper::Set(), ns3::DsdvHelper::Set(), ns3::DsrHelper::Set(), ns3::GenericBatteryModelHelper::Set(), ns3::LiIonEnergySourceHelper::Set(), ns3::OlsrHelper::Set(), ns3::RipHelper::Set(), ns3::RipNgHelper::Set(), ns3::RvBatteryModelHelper::Set(), ns3::WifiRadioEnergyModelHelper::Set(), ns3::WifiMacHelper::SetAckManager(), ns3::WifiMacHelper::SetApEmlsrManager(), ns3::WifiMacHelper::SetAssocManager(), ns3::ApplicationHelper::SetAttribute(), ns3::FdNetDeviceHelper::SetAttribute(), ns3::TapBridgeHelper::SetAttribute(), ns3::TvSpectrumTransmitterHelper::SetAttribute(), ns3::GridBuildingAllocator::SetBuildingAttribute(), ns3::CcHelper::SetCcAttribute(), ns3::SimpleNetDeviceHelper::SetChannel(), ns3::SpectrumChannelHelper::SetChannel(), ns3::WifiMacHelper::SetChannelAccessManager(), ns3::CsmaHelper::SetChannelAttribute(), ns3::PointToPointHelper::SetChannelAttribute(), ns3::SimpleNetDeviceHelper::SetChannelAttribute(), ns3::DhcpHelper::SetClientAttribute(), ns3::OnOffHelper::SetConstantRate(), ns3::WifiMacHelper::SetDcf(), ns3::AdhocAlohaNoackIdealPhyHelper::SetDeviceAttribute(), ns3::BridgeHelper::SetDeviceAttribute(), ns3::CsmaHelper::SetDeviceAttribute(), ns3::OpenFlowSwitchHelper::SetDeviceAttribute(), ns3::PointToPointHelper::SetDeviceAttribute(), ns3::SimpleNetDeviceHelper::SetDeviceAttribute(), ns3::SixLowPanHelper::SetDeviceAttribute(), ns3::SpectrumAnalyzerHelper::SetDeviceAttribute(), ns3::WaveformGeneratorHelper::SetDeviceAttribute(), ns3::WifiMacHelper::SetEmlsrManager(), ns3::LteHelper::SetEnbAntennaModelAttribute(), ns3::LteHelper::SetEnbComponentCarrierManagerAttribute(), ns3::LteHelper::SetEnbDeviceAttribute(), ns3::LteHelper::SetFadingModelAttribute(), ns3::LteHelper::SetFfrAlgorithmAttribute(), ns3::WifiMacHelper::SetFrameExchangeManager(), ns3::LteHelper::SetHandoverAlgorithmAttribute(), ns3::WifiPhyHelper::SetInterferenceHelper(), ns3::WifiMacHelper::SetMacQueueScheduler(), ns3::MeshHelper::SetMacType(), ns3::GroupMobilityHelper::SetMemberMobilityModel(), ns3::MobilityHelper::SetMobilityModel(), ns3::FlowMonitorHelper::SetMonitorAttribute(), ns3::WifiMacHelper::SetMultiUserScheduler(), ns3::WifiHelper::SetObssPdAlgorithm(), ns3::LteHelper::SetPathlossModelAttribute(), ns3::SpectrumPhyHelper::SetPhy(), ns3::AdhocAlohaNoackIdealPhyHelper::SetPhyAttribute(), ns3::SpectrumAnalyzerHelper::SetPhyAttribute(), ns3::SpectrumPhyHelper::SetPhyAttribute(), ns3::WaveformGeneratorHelper::SetPhyAttribute(), ns3::WifiMacHelper::SetProtectionManager(), ns3::CsmaHelper::SetQueue(), ns3::PointToPointHelper::SetQueue(), ns3::SimpleNetDeviceHelper::SetQueue(), ns3::TrafficControlHelper::SetQueueLimits(), ns3::LteHelper::SetSchedulerAttribute(), ns3::DhcpHelper::SetServerAttribute(), ns3::LteHelper::SetSpectrumChannelAttribute(), ns3::MeshHelper::SetStackInstaller(), ns3::WifiMacHelper::SetType(), ns3::LteHelper::SetUeAntennaModelAttribute(), ns3::LteHelper::SetUeComponentCarrierManagerAttribute(), ns3::LteHelper::SetUeDeviceAttribute(), and DsdvManetExample::SetupMobility().
void ns3::ObjectFactory::SetTypeId | ( | std::string | tid | ) |
Set the TypeId of the Objects to be created by this factory.
[in] | tid | The TypeId of the object to instantiate. |
Definition at line 38 of file object-factory.cc.
References ns3::TypeId::LookupByName(), m_tid, and NS_LOG_FUNCTION.
void ns3::ObjectFactory::SetTypeId | ( | TypeId | tid | ) |
Set the TypeId of the Objects to be created by this factory.
[in] | tid | The TypeId of the object to instantiate. |
Definition at line 31 of file object-factory.cc.
References ns3::TypeId::GetName(), m_tid, and NS_LOG_FUNCTION.
Referenced by ns3::AcousticModemEnergyModelHelper::AcousticModemEnergyModelHelper(), ns3::AdhocAlohaNoackIdealPhyHelper::AdhocAlohaNoackIdealPhyHelper(), ns3::AodvHelper::AodvHelper(), ns3::BasicEnergyHarvesterHelper::BasicEnergyHarvesterHelper(), ns3::BasicEnergySourceHelper::BasicEnergySourceHelper(), ns3::BridgeHelper::BridgeHelper(), ns3::CcHelper::CcHelper(), ns3::CsmaHelper::CsmaHelper(), ns3::DhcpHelper::DhcpHelper(), ns3::DsdvHelper::DsdvHelper(), ns3::DsrHelper::DsrHelper(), ns3::FdNetDeviceHelper::FdNetDeviceHelper(), ns3::FlowMonitorHelper::FlowMonitorHelper(), anonymous_namespace{test-string-value-formatting.cc}::FormattingTestObjectHelper::FormattingTestObjectHelper(), ns3::GenericBatteryModelHelper::GenericBatteryModelHelper(), ns3::GridBuildingAllocator::GridBuildingAllocator(), ns3::LiIonEnergySourceHelper::LiIonEnergySourceHelper(), ns3::LteHelper::LteHelper(), ns3::LteSimpleHelper::LteSimpleHelper(), ns3::MobilityHelper::MobilityHelper(), ObjectFactory(), ns3::OlsrHelper::OlsrHelper(), ns3::OpenFlowSwitchHelper::OpenFlowSwitchHelper(), ns3::PointToPointHelper::PointToPointHelper(), ns3::RipHelper::RipHelper(), ns3::RipNgHelper::RipNgHelper(), ns3::RvBatteryModelHelper::RvBatteryModelHelper(), ns3::SimpleNetDeviceHelper::SimpleNetDeviceHelper(), SimulatorTestSuite::SimulatorTestSuite(), ns3::SixLowPanHelper::SixLowPanHelper(), ns3::SpectrumAnalyzerHelper::SpectrumAnalyzerHelper(), ns3::TapBridgeHelper::TapBridgeHelper(), ns3::TapBridgeHelper::TapBridgeHelper(), ThreadedSimulatorTestSuite::ThreadedSimulatorTestSuite(), ns3::TvSpectrumTransmitterHelper::TvSpectrumTransmitterHelper(), ns3::UanHelper::UanHelper(), ns3::WaveformGeneratorHelper::WaveformGeneratorHelper(), ns3::WifiHelper::WifiHelper(), ns3::WifiMacHelper::WifiMacHelper(), ns3::WifiRadioEnergyModelHelper::WifiRadioEnergyModelHelper(), ns3::FileHelper::AddProbe(), ns3::GnuplotHelper::AddProbe(), ns3::LteUeRrc::ApplyRadioResourceConfigDedicated(), BuildSimpleTopology(), ns3::PfifoFastQueueDisc::CheckConfig(), ns3::PrioQueueDisc::CheckConfig(), ns3::TbfQueueDisc::CheckConfig(), ns3::WifiMacHelper::Create(), ns3::ClickInternetStackHelper::CreateAndAggregateObjectFromTypeId(), ns3::InternetStackHelper::CreateAndAggregateObjectFromTypeId(), ns3::MeshHelper::CreateInterface(), ns3::CreateObjectWithAttributes(), ns3::TcpOption::CreateOption(), ns3::TcpGeneralTest::CreateSocket(), ns3::TcpL4Protocol::CreateSocket(), UanTest::DoPhyTests(), BasicEnergyHarvesterTestCase::DoRun(), BasicEnergyUpdateTest::DoRun(), Bug2831TestCase::DoRun(), BuildingsPenetrationLossesTestCase::DoRun(), DcfImmediateAccessBroadcastTestCase::DoRun(), InterferenceHelperSequenceTest::DoRun(), ns3::tests::ObjectFactoryTestCase::DoRun(), PointerAttributeTestCase::DoRun(), SteadyStateRandomWaypointTest::DoRun(), ThreeGppChannelConditionModelTestCase::DoRun(), ThreeGppV2vBuildingsChCondModelTestCase::DoRun(), ThreeGppV2vHighwayLosNlosvChCondModelTestCase::DoRun(), ThreeGppV2vUrbanLosNlosvChCondModelTestCase::DoRun(), V2vHighwayProbChCondModelTestCase::DoRun(), V2vUrbanProbChCondModelTestCase::DoRun(), WaypointMobilityModelAddWaypointTest::DoRun(), WaypointMobilityModelNotifyTest::DoRun(), WifiTest::DoRun(), AmpduAggregationTest::DoSetup(), ns3::anonymous_namespace{visual-simulator-impl.cc}::GetDefaultSimulatorImplFactory(), ns3::GetImpl(), ns3::FqCobaltQueueDisc::InitializeParams(), ns3::FqCoDelQueueDisc::InitializeParams(), ns3::FqPieQueueDisc::InitializeParams(), ns3::EnergyHarvesterHelper::Install(), ns3::EnergySourceHelper::Install(), ns3::PointToPointHelper::Install(), RoutingExperiment::Run(), FifoQueueDiscTestCase::RunFifoTest(), ns3::WifiMacHelper::SetAckManager(), ns3::WifiMacHelper::SetApEmlsrManager(), ns3::WifiMacHelper::SetAssocManager(), ns3::SimpleNetDeviceHelper::SetChannel(), ns3::SpectrumChannelHelper::SetChannel(), ns3::WifiMacHelper::SetEmlsrManager(), ns3::LteHelper::SetEnbAntennaModelType(), ns3::LteHelper::SetEnbComponentCarrierManagerType(), ns3::LteHelper::SetFadingModel(), ns3::LteHelper::SetFfrAlgorithmType(), ns3::LteHelper::SetHandoverAlgorithmType(), ns3::Simulator::SetImplementation(), ns3::WifiPhyHelper::SetInterferenceHelper(), ns3::WifiMacHelper::SetMacQueueScheduler(), ns3::MeshHelper::SetMacType(), ns3::GroupMobilityHelper::SetMemberMobilityModel(), ns3::MobilityHelper::SetMobilityModel(), ns3::WifiMacHelper::SetMultiUserScheduler(), ns3::WifiHelper::SetObssPdAlgorithm(), ns3::LteHelper::SetPathlossModelType(), ns3::SpectrumPhyHelper::SetPhy(), ns3::WifiMacHelper::SetProtectionManager(), ns3::CsmaHelper::SetQueue(), ns3::PointToPointHelper::SetQueue(), ns3::SimpleNetDeviceHelper::SetQueue(), ns3::TrafficControlHelper::SetQueueLimits(), ns3::LteHelper::SetSchedulerType(), ns3::LteHelper::SetSpectrumChannelType(), ns3::MeshHelper::SetStackInstaller(), ns3::NetDeviceQueueInterface::SetTxQueuesType(), ns3::WifiMacHelper::SetType(), ns3::ApplicationHelper::SetTypeId(), ns3::ApplicationHelper::SetTypeId(), ns3::FdNetDeviceHelper::SetTypeId(), ns3::LteHelper::SetUeAntennaModelType(), ns3::LteHelper::SetUeComponentCarrierManagerType(), ns3::UeManager::SetupDataRadioBearer(), DsdvManetExample::SetupMobility(), PowerRateAdaptationTest::TestAparf(), PowerRateAdaptationTest::TestParf(), and PowerRateAdaptationTest::TestRrpaa().
|
friend |
Print the factory configuration on an output stream.
The configuration will be printed as a string with the form "<TypeId-name>[<attribute-name>=<attribute-value>|...]"
[in,out] | os | The stream. |
[in] | factory | The ObjectFactory. |
Definition at line 98 of file object-factory.cc.
|
friend |
Read a factory configuration from an input stream.
The configuration should be in the form "<TypeId-name>[<attribute-name>=<attribute-value>|...]"
[in,out] | is | The input stream. |
[out] | factory | The factory to configure as described by the stream. |
Definition at line 116 of file object-factory.cc.
|
private |
The list of attributes and values to be used in constructing objects by this factory.
Definition at line 160 of file object-factory.h.
|
private |
The TypeId this factory will create.
Definition at line 155 of file object-factory.h.
Referenced by Create(), DoSet(), GetTypeId(), IsTypeIdSet(), SetTypeId(), and SetTypeId().