A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
Configuration
+ Collaboration diagram for Configuration:

Topics

 Config implementations
 
 

Files

file  config-test-suite.cc
 Config test suite.
 
file  config.h
 Declaration of the various ns3::Config functions and classes.
 
file  names-test-suite.cc
 Object Names test suite.
 
file  names.cc
 ns3::Names, ns3::NamesNode and ns3::NamePriv implementations.
 
file  names.h
 Declaration of class ns3::Names.
 

Namespaces

namespace  ns3::Config
 Namespace for the various functions implementing the Config system.
 

Classes

class  ns3::Config::MatchContainer
 hold a set of objects which match a specific search string. More...
 
class  ns3::NameNode
 Node in the naming tree. More...
 
class  ns3::Names
 A directory of name and Ptr<Object> associations that allows us to give any ns3 Object a name. More...
 
class  ns3::NamesPriv
 The singleton root Names object. More...
 

Functions

void ns3::Config::Connect (std::string path, const CallbackBase &cb)
 
bool ns3::Config::ConnectFailSafe (std::string path, const CallbackBase &cb)
 
void ns3::Config::ConnectWithoutContext (std::string path, const CallbackBase &cb)
 
bool ns3::Config::ConnectWithoutContextFailSafe (std::string path, const CallbackBase &cb)
 
void ns3::Config::Disconnect (std::string path, const CallbackBase &cb)
 
void ns3::Config::DisconnectWithoutContext (std::string path, const CallbackBase &cb)
 
Ptr< Objectns3::Config::GetRootNamespaceObject (uint32_t i)
 
std::size_t ns3::Config::GetRootNamespaceObjectN ()
 
MatchContainer ns3::Config::LookupMatches (std::string path)
 
void ns3::Config::RegisterRootNamespaceObject (Ptr< Object > obj)
 
void ns3::Config::Reset ()
 Reset the initial value of every attribute as well as the value of every global to what they were before any call to SetDefault and SetGlobal.
 
void ns3::Config::Set (std::string path, const AttributeValue &value)
 
void ns3::Config::SetDefault (std::string name, const AttributeValue &value)
 
bool ns3::Config::SetDefaultFailSafe (std::string name, const AttributeValue &value)
 
bool ns3::Config::SetFailSafe (std::string path, const AttributeValue &value)
 
void ns3::Config::SetGlobal (std::string name, const AttributeValue &value)
 
bool ns3::Config::SetGlobalFailSafe (std::string name, const AttributeValue &value)
 
void ns3::Config::UnregisterRootNamespaceObject (Ptr< Object > obj)
 

Detailed Description

Configuration of simulation parameters and tracing.

Function Documentation

◆ Connect()

void ns3::Config::Connect ( std::string path,
const CallbackBase & cb )
Parameters
[in]pathA path to match trace sources.
[in]cbThe callback to connect to the matching trace sources.

This function will attempt to find all trace sources which match the input path and will then connect the input callback to them in such a way that the callback will receive an extra context string upon trace event notification. If no matching trace sources are found, this method will throw a fatal error. Use ConnectFailSafe if the absence of matching trace sources should not be fatal.

Definition at line 967 of file config.cc.

References ns3::Config::ConnectFailSafe(), NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Referenced by ns3::LteHelper::ActivateDataRadioBearer(), ns3::RadioBearerStatsConnector::ConnectTracesDrbEnb(), ns3::RadioBearerStatsConnector::ConnectTracesDrbUe(), ns3::RadioBearerStatsConnector::ConnectTracesSrb0(), ns3::RadioBearerStatsConnector::ConnectTracesSrb1(), BlockAckAggregationDisabledTest::DoRun(), Bug2222TestCase::DoRun(), Bug2831TestCase::DoRun(), Bug2843TestCase::DoRun(), Bug730TestCase::DoRun(), CarrierAggregationConfigTestCase::DoRun(), CarrierAggregationTestCase::DoRun(), CsmaPacketSocketTestCase::DoRun(), CsmaPingTestCase::DoRun(), DsssModulationTest::DoRun(), IdealRateManagerChannelWidthTest::DoRun(), IdealRateManagerMimoTest::DoRun(), Issue169TestCase::DoRun(), LteCellSelectionTestCase::DoRun(), LteCqiGenerationDlPowerControlTestCase::DoRun(), LteCqiGenerationTestCase::DoRun(), LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::DoRun(), LteEnbAntennaTestCase::DoRun(), LteHandoverDelayTestCase::DoRun(), LteHandoverFailureTestCase::DoRun(), LteHandoverTargetTestCase::DoRun(), LteInterferenceTestCase::DoRun(), LteLinkAdaptationTestCase::DoRun(), LtePrimaryCellChangeTestCase::DoRun(), LteRadioLinkFailureTestCase::DoRun(), LteRrcConnectionEstablishmentErrorTestCase::DoRun(), LteRrcConnectionEstablishmentTestCase::DoRun(), LteSecondaryCellSelectionTestCase::DoRun(), LteUeMeasurementsHandoverTestCase::DoRun(), LteUeMeasurementsPiecewiseTestCase1::DoRun(), LteUeMeasurementsPiecewiseTestCase2::DoRun(), LteUeMeasurementsPiecewiseTestCase3::DoRun(), LteUeMeasurementsTestCase::DoRun(), Ns2MobilityHelperTest::DoRun(), ns3::tests::ObjectVectorTraceConfigTestCase::DoRun(), Ns3TcpLossTestCase::DoRun(), Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCaseCsma::DoRun(), Ns3TcpSocketTestCaseP2P::DoRun(), Ns3TcpStateTestCase::DoRun(), OfdmaAckSequenceTest::DoRun(), QosFragmentationTestCase::DoRun(), SpectrumIdealPhyTestCase::DoRun(), TestUnsupportedModulationReception::DoRun(), WifiPrimaryChannelsTest::DoRun(), WifiTxopTest::DoRun(), ns3::UanHelper::EnableAscii(), ns3::WimaxHelper::EnableAsciiForConnection(), ns3::CsmaHelper::EnableAsciiInternal(), ns3::FdNetDeviceHelper::EnableAsciiInternal(), ns3::PointToPointHelper::EnableAsciiInternal(), ns3::WifiPhyHelper::EnableAsciiInternal(), ns3::WimaxHelper::EnableAsciiInternal(), ns3::ClickInternetStackHelper::EnableAsciiIpv4Internal(), ns3::InternetStackHelper::EnableAsciiIpv4Internal(), ns3::InternetStackHelper::EnableAsciiIpv6Internal(), ns3::AthstatsHelper::EnableAthstats(), ns3::LteHelper::EnableDlMacTraces(), ns3::LteHelper::EnableDlPhyTraces(), ns3::LteHelper::EnableDlRxPhyTraces(), ns3::LteHelper::EnableDlTxPhyTraces(), ns3::LteHelper::EnableUlMacTraces(), ns3::LteHelper::EnableUlPhyTraces(), ns3::LteHelper::EnableUlRxPhyTraces(), ns3::LteHelper::EnableUlTxPhyTraces(), ns3::RadioBearerStatsConnector::EnsureConnected(), ns3::PyViz::RegisterCsmaLikeDevice(), ns3::PyViz::RegisterDropTracePath(), ns3::PyViz::RegisterPointToPointLikeDevice(), ns3::PyViz::RegisterWifiLikeDevice(), Experiment::Run(), Issue40TestCase::RunOne(), TestInterBssConstantObssPdAlgo::RunOne(), Bug2470TestCase::RunSubtest(), ns3::SubscriberStationNetDevice::SetBasicConnection(), ns3::SubscriberStationNetDevice::SetPrimaryConnection(), StaWifiMacScanningTestCase::Setup(), ns3::RadioBearerStatsConnector::StoreUeManagerPath(), TraceCwnd(), TraceInFlight(), TraceNextRx(), TraceNextTx(), TraceRto(), TraceRtt(), and TraceSsThresh().

+ Here is the call graph for this function:

◆ ConnectFailSafe()

bool ns3::Config::ConnectFailSafe ( std::string path,
const CallbackBase & cb )
Parameters
[in]pathA path to match trace sources.
[in]cbThe callback to connect to the matching trace sources.

This function will attempt to find all trace sources which match the input path and will then connect the input callback to them in such a way that the callback will receive an extra context string upon trace event notification.

Returns
true if any trace sources could be connected.

Definition at line 977 of file config.cc.

References ns3::Config::ConfigImpl::ConnectFailSafe(), ns3::Singleton< ConfigImpl >::Get(), and NS_LOG_FUNCTION.

Referenced by ns3::PyViz::PyViz(), ns3::Config::Connect(), ns3::AnimationInterface::ConnectCallbacks(), ns3::RadioBearerStatsConnector::ConnectTracesDrbEnb(), and ns3::RadioBearerStatsConnector::ConnectTracesDrbUe().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ConnectWithoutContext()

void ns3::Config::ConnectWithoutContext ( std::string path,
const CallbackBase & cb )
Parameters
[in]pathA path to match trace sources.
[in]cbThe callback to connect to the matching trace sources.

This function will attempt to find all trace sources which match the input path and will then connect the input callback to them. If no matching trace sources are found, this method will throw a fatal error. Use ConnectWithoutContextFailSafe if the absence of matching trace sources should not be fatal.

Definition at line 943 of file config.cc.

References ns3::Config::ConnectWithoutContextFailSafe(), NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Referenced by ns3::ApplicationPacketProbe::ConnectByPath(), ns3::BooleanProbe::ConnectByPath(), ns3::DoubleProbe::ConnectByPath(), ns3::Ipv4PacketProbe::ConnectByPath(), ns3::Ipv6PacketProbe::ConnectByPath(), ns3::PacketProbe::ConnectByPath(), ns3::TimeProbe::ConnectByPath(), ns3::Uinteger16Probe::ConnectByPath(), ns3::Uinteger32Probe::ConnectByPath(), ns3::Uinteger8Probe::ConnectByPath(), Ns3TcpCubicTestCase::ConnectCwndTrace(), ConnectSocketTraces(), CsmaBridgeTestCase::DoRun(), CsmaBroadcastTestCase::DoRun(), CsmaMulticastTestCase::DoRun(), CsmaOneSubnetTestCase::DoRun(), CsmaPingTestCase::DoRun(), CsmaRawIpSocketTestCase::DoRun(), CsmaStarTestCase::DoRun(), Ipv4DeduplicationTest::DoRun(), ns3::tests::ObjectVectorTraceConfigTestCase::DoRun(), Ns3TcpLossTestCase::DoRun(), WifiChannelSwitchingTest::DoRun(), WifiUseAvailBwTest::DoRun(), EmlsrOperationsTestBase::DoSetup(), MultiLinkOperationsTestBase::DoSetup(), OrigBlockAckWindowStalled::DoSetup(), ns3::WifiPhyHelper::EnableAsciiInternal(), ns3::SpectrumAnalyzerHelper::Install(), ScheduleN0PacketSinkConnection(), ScheduleN0TcpCwndTraceConnection(), ScheduleN0TcpRttTraceConnection(), ScheduleN1PacketSinkConnection(), ScheduleN1TcpCwndTraceConnection(), ScheduleN1TcpRttTraceConnection(), ScheduleSecondPacketSinkConnection(), ScheduleSecondTcpCwndTraceConnection(), ScheduleSecondTcpRttTraceConnection(), TraceCwnd(), TraceCwnd(), TraceCwnd(), TraceCwnd(), TraceCwnd(), TraceDroppingState(), TraceEveryDrop(), TraceQueueLength(), and TraceSojourn().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ConnectWithoutContextFailSafe()

bool ns3::Config::ConnectWithoutContextFailSafe ( std::string path,
const CallbackBase & cb )
Parameters
[in]pathA path to match trace sources.
[in]cbThe callback to connect to the matching trace sources.

This function will attempt to find all trace sources which match the input path and will then connect the input callback to them. If no matching trace sources are found, this method will return false; otherwise true.

Returns
true if any trace sources could be connected.

Definition at line 953 of file config.cc.

References ns3::Config::ConfigImpl::ConnectWithoutContextFailSafe(), ns3::Singleton< ConfigImpl >::Get(), and NS_LOG_FUNCTION.

Referenced by ns3::Ipv4FlowProbe::Ipv4FlowProbe(), ns3::Ipv6FlowProbe::Ipv6FlowProbe(), ns3::AnimationInterface::ConnectCallbacks(), ns3::Config::ConnectWithoutContext(), ns3::MobilityHelper::EnableAscii(), ScheduleFirstDctcpTraceConnection(), ScheduleFirstPacketSinkConnection(), ScheduleFirstTcpCwndTraceConnection(), ScheduleFirstTcpRttTraceConnection(), and ScheduleSecondDctcpTraceConnection().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Disconnect()

void ns3::Config::Disconnect ( std::string path,
const CallbackBase & cb )
Parameters
[in]pathA path to match trace sources.
[in]cbThe callback to connect to the matching trace sources.

This function undoes the work of Config::ConnectWithContext.

Definition at line 984 of file config.cc.

References ns3::Config::ConfigImpl::Disconnect(), ns3::Singleton< ConfigImpl >::Get(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ DisconnectWithoutContext()

void ns3::Config::DisconnectWithoutContext ( std::string path,
const CallbackBase & cb )
Parameters
[in]pathA path to match trace sources.
[in]cbThe callback to disconnect to the matching trace sources.

This function undoes the work of Config::Connect.

Definition at line 960 of file config.cc.

References ns3::Config::ConfigImpl::DisconnectWithoutContext(), ns3::Singleton< ConfigImpl >::Get(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ GetRootNamespaceObject()

Ptr< Object > ns3::Config::GetRootNamespaceObject ( uint32_t i)
Parameters
[in]iThe index of the requested object.
Returns
The requested root namespace object

Definition at line 1019 of file config.cc.

References ns3::Singleton< ConfigImpl >::Get(), ns3::Config::ConfigImpl::GetRootNamespaceObject(), and NS_LOG_FUNCTION.

Referenced by GetTypicalAggregations(), and ns3::AttributeIterator::Iterate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetRootNamespaceObjectN()

std::size_t ns3::Config::GetRootNamespaceObjectN ( )
Returns
The number of registered root namespace objects.

Definition at line 1012 of file config.cc.

References ns3::Singleton< ConfigImpl >::Get(), ns3::Config::ConfigImpl::GetRootNamespaceObjectN(), and NS_LOG_FUNCTION_NOARGS.

Referenced by GetTypicalAggregations(), and ns3::AttributeIterator::Iterate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LookupMatches()

MatchContainer ns3::Config::LookupMatches ( std::string path)
Parameters
[in]pathThe path to perform a match against
Returns
A container which contains all the objects which match the input path.

Definition at line 991 of file config.cc.

References ns3::Singleton< ConfigImpl >::Get(), ns3::Config::ConfigImpl::LookupMatches(), and NS_LOG_FUNCTION.

Referenced by ns3::RandomVariableStreamHelper::AssignStreams(), ns3::LteStatsCalculator::FindCellIdFromEnbRlcPath(), ns3::LteStatsCalculator::FindImsiFromEnbRlcPath(), ns3::LteStatsCalculator::FindImsiFromLteNetDevice(), ns3::LteStatsCalculator::FindImsiFromUePhy(), ns3::RadioEnvironmentMapHelper::Install(), ns3::GnuplotHelper::PlotProbe(), and ns3::FileHelper::WriteProbe().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RegisterRootNamespaceObject()

void ns3::Config::RegisterRootNamespaceObject ( Ptr< Object > obj)
Parameters
[in]objA new root object

Each root object is used during path matching as the root of the path by Config::Connect, and Config::Set.

Definition at line 998 of file config.cc.

References ns3::Singleton< ConfigImpl >::Get(), NS_LOG_FUNCTION, and ns3::Config::ConfigImpl::RegisterRootNamespaceObject().

Referenced by ns3::BuildingListPriv::DoGet(), ns3::ChannelListPriv::DoGet(), ns3::NodeListPriv::DoGet(), ns3::tests::ObjectVectorConfigTestCase::DoRun(), ns3::tests::ObjectVectorTraceConfigTestCase::DoRun(), ns3::tests::RootNamespaceConfigTestCase::DoRun(), ns3::tests::SearchAttributesOfParentObjectsTestCase::DoRun(), and ns3::tests::UnderRootNamespaceConfigTestCase::DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Reset()

void ns3::Config::Reset ( )

Reset the initial value of every attribute as well as the value of every global to what they were before any call to SetDefault and SetGlobal.

Definition at line 848 of file config.cc.

References ns3::GlobalValue::Begin(), ns3::GlobalValue::End(), ns3::TypeId::GetAttribute(), ns3::TypeId::GetAttributeN(), ns3::TypeId::GetRegistered(), ns3::TypeId::GetRegisteredN(), NS_LOG_FUNCTION_NOARGS, ns3::TypeId::AttributeInformation::originalInitialValue, and ns3::TypeId::SetAttributeInitialValue().

Referenced by LteCqiGenerationDlPowerControlTestCase::DoRun(), LteCqiGenerationTestCase::DoRun(), LteDistributedFfrAreaTestCase::DoRun(), LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::DoRun(), LteDownlinkPowerControlTestCase::DoRun(), LteEnbAntennaTestCase::DoRun(), LteEnhancedFfrAreaTestCase::DoRun(), LteEpcE2eDataTestCase::DoRun(), LteHardFrTestCase::DoRun(), LteInterferenceHardFrTestCase::DoRun(), LteInterferenceStrictFrTestCase::DoRun(), LteLinkAdaptationTestCase::DoRun(), LteRrcConnectionEstablishmentErrorTestCase::DoRun(), LteRrcConnectionEstablishmentTestCase::DoRun(), LteSoftFfrAreaTestCase::DoRun(), LteSoftFrAreaTestCase::DoRun(), LteStrictFrAreaTestCase::DoRun(), LteStrictFrTestCase::DoRun(), LteUplinkClosedLoopPowerControlAbsoluteModeTestCase::DoRun(), LteUplinkClosedLoopPowerControlAccumulatedModeTestCase::DoRun(), LteUplinkOpenLoopPowerControlTestCase::DoRun(), LteX2HandoverMeasuresTestCase::DoRun(), LteX2HandoverTestCase::DoRun(), and ns3::TestCase::Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Set()

void ns3::Config::Set ( std::string path,
const AttributeValue & value )
Parameters
[in]pathA path to match attributes.
[in]valueThe value to set in all matching attributes.

This function will attempt to find attributes which match the input path and will then set their value to the input value. If no such attributes are found, the function will throw a fatal error; use SetFailSafe if the lack of a match is to be permitted.

Definition at line 869 of file config.cc.

References ns3::Singleton< ConfigImpl >::Get(), NS_LOG_FUNCTION, and ns3::Config::ConfigImpl::Set().

Referenced by ns3::RawTextConfigLoad::Attributes(), ns3::XmlConfigLoad::Attributes(), IdealRateManagerChannelWidthTest::ChangeChannelWidth(), WifiChannelSwitchingTest::ChannelSwitch(), Bug730TestCase::DoRun(), DsssModulationTest::DoRun(), LteEpcE2eDataTestCase::DoRun(), ns3::tests::ObjectVectorConfigTestCase::DoRun(), ns3::tests::RootNamespaceConfigTestCase::DoRun(), ns3::tests::SearchAttributesOfParentObjectsTestCase::DoRun(), ns3::tests::UnderRootNamespaceConfigTestCase::DoRun(), QosFragmentationTestCase::DoRun(), SetChannelFrequencyTest::DoRun(), Experiment::IncrementCw(), NetAnimExperiment::IncrementCw(), Experiment::Run(), Experiment::Run(), TestInterBssConstantObssPdAlgo::RunOne(), IdealRateManagerMimoTest::SetApMimoSettings(), and IdealRateManagerMimoTest::SetStaMimoSettings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetDefault()

void ns3::Config::SetDefault ( std::string name,
const AttributeValue & value )
Parameters
[in]nameThe full name of the attribute
[in]valueThe value to set.

This method overrides the initial value of the matching attribute. This method cannot fail: it will crash if the input attribute name or value is invalid.

Definition at line 883 of file config.cc.

References NS_FATAL_ERROR, NS_LOG_FUNCTION, and ns3::Config::SetDefaultFailSafe().

Referenced by TcpBytesInFlightTest::ConfigureEnvironment(), TcpDctcpCodePointsTest::ConfigureEnvironment(), TcpRateLinuxWithSocketsTest::ConfigureEnvironment(), BatteryLifetimeTest::ConstantLoadTest(), ns3::RawTextConfigLoad::Default(), ns3::XmlConfigLoad::Default(), BasicEnergyDepletionTest::DepletionTestCase(), AttributeTestCase< T >::DoRun(), BlockAckAggregationDisabledTest::DoRun(), Bug772ChainTest::DoRun(), CarrierAggregationConfigTestCase::DoRun(), CarrierAggregationTestCase::DoRun(), ChainRegressionTest::DoRun(), CsmaMulticastTestCase::DoRun(), CsmaPingTestCase::DoRun(), CsmaRawIpSocketTestCase::DoRun(), EpcS1uDlTestCase::DoRun(), EpcS1uUlTestCase::DoRun(), FriisPropagationLossModelTestCase::DoRun(), Ipv4DeduplicationPerformanceTest::DoRun(), Ipv4DeduplicationTest::DoRun(), Ipv4DynamicGlobalRoutingTestCase::DoRun(), Ipv4FragmentationTest::DoRun(), Issue211Test::DoRun(), LenaCqaFfMacSchedulerTestCase1::DoRun(), LenaCqaFfMacSchedulerTestCase2::DoRun(), LenaDataPhyErrorModelTestCase::DoRun(), LenaDlCtrlPhyErrorModelTestCase::DoRun(), LenaFdBetFfMacSchedulerTestCase1::DoRun(), LenaFdBetFfMacSchedulerTestCase2::DoRun(), LenaFdMtFfMacSchedulerTestCase::DoRun(), LenaFdTbfqFfMacSchedulerTestCase1::DoRun(), LenaFdTbfqFfMacSchedulerTestCase2::DoRun(), LenaHarqTestCase::DoRun(), LenaMimoTestCase::DoRun(), LenaPfFfMacSchedulerTestCase1::DoRun(), LenaPfFfMacSchedulerTestCase2::DoRun(), LenaPssFfMacSchedulerTestCase1::DoRun(), LenaPssFfMacSchedulerTestCase2::DoRun(), LenaRrFfMacSchedulerTestCase::DoRun(), LenaTdBetFfMacSchedulerTestCase1::DoRun(), LenaTdBetFfMacSchedulerTestCase2::DoRun(), LenaTdMtFfMacSchedulerTestCase::DoRun(), LenaTdTbfqFfMacSchedulerTestCase1::DoRun(), LenaTdTbfqFfMacSchedulerTestCase2::DoRun(), LenaTtaFfMacSchedulerTestCase::DoRun(), LogDistancePropagationLossModelTestCase::DoRun(), LteCqiGenerationDlPowerControlTestCase::DoRun(), LteCqiGenerationTestCase::DoRun(), LteDistributedFfrAreaTestCase::DoRun(), LteDownlinkCtrlSinrTestCase::DoRun(), LteDownlinkDataSinrTestCase::DoRun(), LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::DoRun(), LteDownlinkPowerControlTestCase::DoRun(), LteEnbAntennaTestCase::DoRun(), LteEnhancedFfrAreaTestCase::DoRun(), LteEpcE2eDataTestCase::DoRun(), LteHandoverFailureTestCase::DoRun(), LteHandoverTargetTestCase::DoRun(), LteHardFrTestCase::DoRun(), LteInterferenceHardFrTestCase::DoRun(), LteInterferenceStrictFrTestCase::DoRun(), LteInterferenceTestCase::DoRun(), LteLinkAdaptationTestCase::DoRun(), LtePathlossModelSystemTestCase::DoRun(), LtePrimaryCellChangeTestCase::DoRun(), LteRadioLinkFailureTestCase::DoRun(), LteRlcAmE2eTestCase::DoRun(), LteRrcConnectionEstablishmentErrorTestCase::DoRun(), LteRrcConnectionEstablishmentTestCase::DoRun(), LteSecondaryCellHandoverTestCase::DoRun(), LteSoftFfrAreaTestCase::DoRun(), LteSoftFrAreaTestCase::DoRun(), LteStrictFrAreaTestCase::DoRun(), LteStrictFrTestCase::DoRun(), LteUeMeasurementsHandoverTestCase::DoRun(), LteUeMeasurementsPiecewiseTestCase1::DoRun(), LteUeMeasurementsPiecewiseTestCase2::DoRun(), LteUeMeasurementsPiecewiseTestCase3::DoRun(), LteUeMeasurementsTestCase::DoRun(), LteUplinkClosedLoopPowerControlAbsoluteModeTestCase::DoRun(), LteUplinkClosedLoopPowerControlAccumulatedModeTestCase::DoRun(), LteUplinkOpenLoopPowerControlTestCase::DoRun(), LteX2HandoverMeasuresTestCase::DoRun(), LteX2HandoverTestCase::DoRun(), ns3::LenaDeactivateBearerTestCase::DoRun(), ns3::tests::ManyUniformRandomVariablesOneGetValueCallTestCase::DoRun(), ns3::tests::OneUniformRandomVariableManyGetValueCallsTestCase::DoRun(), Ns3TcpCubicTestCase::DoRun(), Ns3TcpLossTestCase::DoRun(), Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCaseCsma::DoRun(), Ns3TcpStateTestCase::DoRun(), OfdmaAckSequenceTest::DoRun(), PreservePacketsInAmpdus::DoRun(), RangePropagationLossModelTestCase::DoRun(), RttEstimatorTestCase::DoRun(), TestUnsupportedModulationReception::DoRun(), ThreeGppSpectrumPropagationLossModelTest::DoRun(), TwoRayGroundPropagationLossModelTestCase::DoRun(), WifiTxopTest::DoRun(), BackoffGenerationTest::DoSetup(), EmlsrCcaBusyTest::DoSetup(), EmlsrDlTxopTest::DoSetup(), EmlsrLinkSwitchTest::DoSetup(), EmlsrOperationsTestBase::DoSetup(), EmlsrUlTxopTest::DoSetup(), MultiLinkMuTxTest::DoSetup(), Ns3TcpLossTestCase::DoSetup(), ReleaseSeqNoAfterCtsTimeoutTest::DoSetup(), StartSeqNoUpdateAfterAddBaTimeoutTest::DoSetup(), experiment(), experiment(), LteAggregationThroughputScaleTestCase::GetThroughput(), Experiment::Run(), InterferenceExperiment::Run(), RoutingExperiment::Run(), TbfQueueDiscTestCase::RunTbfTest(), and BatteryLifetimeTest::VariableLoadTest().

+ Here is the call graph for this function:

◆ SetDefaultFailSafe()

bool ns3::Config::SetDefaultFailSafe ( std::string name,
const AttributeValue & value )
Parameters
[in]nameThe full name of the attribute
[in]valueThe value to set.
Returns
true if the value was set successfully, false otherwise.

This method overrides the initial value of the matching attribute.

Definition at line 893 of file config.cc.

References ns3::TypeId::AttributeInformation::checker, ns3::TypeId::GetAttribute(), ns3::TypeId::GetAttributeN(), ns3::TypeId::LookupAttributeByName(), ns3::TypeId::LookupByNameFailSafe(), ns3::TypeId::AttributeInformation::name, NS_LOG_FUNCTION, and ns3::TypeId::SetAttributeInitialValue().

Referenced by ns3::cell_edited_callback_config_default(), AttributeTestCase< T >::DoRun(), ns3::CommandLine::HandleAttribute(), and ns3::Config::SetDefault().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetFailSafe()

bool ns3::Config::SetFailSafe ( std::string path,
const AttributeValue & value )
Parameters
[in]pathA path to match attributes.
[in]valueThe value to set in all matching attributes.

This function will attempt to find attributes which match the input path and will then set their value to the input value, and will return true if at least one such attribute is found.

Returns
true if any matching attributes could be set.

Definition at line 876 of file config.cc.

References ns3::Singleton< ConfigImpl >::Get(), NS_LOG_FUNCTION, and ns3::Config::ConfigImpl::SetFailSafe().

+ Here is the call graph for this function:

◆ SetGlobal()

void ns3::Config::SetGlobal ( std::string name,
const AttributeValue & value )
Parameters
[in]nameThe name of the requested GlobalValue.
[in]valueThe value to set

This method is equivalent to GlobalValue::Bind

Definition at line 929 of file config.cc.

References ns3::GlobalValue::Bind(), and NS_LOG_FUNCTION.

Referenced by LenaDataPhyErrorModelTestCase::DoRun(), LenaDlCtrlPhyErrorModelTestCase::DoRun(), LteCellSelectionTestCase::DoRun(), LtePrimaryCellChangeTestCase::DoRun(), LteRlcAmE2eTestCase::DoRun(), LteSecondaryCellSelectionTestCase::DoRun(), OfdmaAckSequenceTest::DoRun(), ThreeGppHttpObjectTestCase::DoRun(), ThreadedSimulatorEventsTestCase::DoSetup(), ThreadedSimulatorEventsTestCase::DoTeardown(), ns3::RawTextConfigLoad::Global(), ns3::XmlConfigLoad::Global(), ns3::RngSeedManager::SetRun(), and ns3::RngSeedManager::SetSeed().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetGlobalFailSafe()

bool ns3::Config::SetGlobalFailSafe ( std::string name,
const AttributeValue & value )
Parameters
[in]nameThe name of the requested GlobalValue.
[in]valueThe value to set
Returns
true if the GlobalValue could be set.

This method is equivalent to GlobalValue::BindFailSafe

Definition at line 936 of file config.cc.

References ns3::GlobalValue::BindFailSafe(), and NS_LOG_FUNCTION.

Referenced by ns3::CommandLine::HandleAttribute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UnregisterRootNamespaceObject()

void ns3::Config::UnregisterRootNamespaceObject ( Ptr< Object > obj)
Parameters
[in]objA new root object

This function undoes the work of Config::RegisterRootNamespaceObject.

Definition at line 1005 of file config.cc.

References ns3::Singleton< ConfigImpl >::Get(), NS_LOG_FUNCTION, and ns3::Config::ConfigImpl::UnregisterRootNamespaceObject().

Referenced by ns3::BuildingListPriv::Delete(), ns3::ChannelListPriv::Delete(), and ns3::NodeListPriv::Delete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: