diff --git a/src/buildings/model/building-list.cc b/src/buildings/model/building-list.cc index 4c5c0028e..063870de3 100644 --- a/src/buildings/model/building-list.cc +++ b/src/buildings/model/building-list.cc @@ -126,7 +126,7 @@ BuildingListPriv::Add (Ptr building) { uint32_t index = m_buildings.size (); m_buildings.push_back (building); - Simulator::ScheduleWithContext (index, TimeStep (0), &Building::Start, building); + Simulator::ScheduleWithContext (index, TimeStep (0), &Building::Initialize, building); return index; } diff --git a/src/click/model/ipv4-click-routing.cc b/src/click/model/ipv4-click-routing.cc index 5913f1f36..f6bd189a1 100644 --- a/src/click/model/ipv4-click-routing.cc +++ b/src/click/model/ipv4-click-routing.cc @@ -76,7 +76,7 @@ Ipv4ClickRouting::~Ipv4ClickRouting () } void -Ipv4ClickRouting::DoStart () +Ipv4ClickRouting::DoInitialize () { uint32_t id = m_ipv4->GetObject ()->GetId (); diff --git a/src/click/model/ipv4-click-routing.h b/src/click/model/ipv4-click-routing.h index c3295389d..a332a1ce9 100644 --- a/src/click/model/ipv4-click-routing.h +++ b/src/click/model/ipv4-click-routing.h @@ -67,7 +67,7 @@ public: Ptr GetRandomVariable (void); protected: - virtual void DoStart (void); + virtual void DoInitialize (void); public: virtual void DoDispose (); @@ -191,7 +191,7 @@ public: private: /** - * \brief Used internally in DoStart () to Add a mapping to m_clickInstanceFromSimNode mapping + * \brief Used internally in DoInitialize () to Add a mapping to m_clickInstanceFromSimNode mapping */ void AddSimNodeToClickMapping (); diff --git a/src/click/test/ipv4-click-routing-test.cc b/src/click/test/ipv4-click-routing-test.cc index 748838c65..8568ed12a 100644 --- a/src/click/test/ipv4-click-routing-test.cc +++ b/src/click/test/ipv4-click-routing-test.cc @@ -76,7 +76,7 @@ ClickIfidFromNameTest::DoRun () AddNetworkDevice (node, Mac48Address ("00:00:00:00:00:01"), Ipv4Address ("10.1.1.1"), Ipv4Mask ("255.255.255.0")); Ptr ipv4 = node->GetObject (); Ptr click = DynamicCast (ipv4->GetRoutingProtocol ()); - click->DoStart (); + click->DoInitialize (); int ret; @@ -120,7 +120,7 @@ ClickIpMacAddressFromNameTest::DoRun () AddNetworkDevice (node, Mac48Address ("00:00:00:00:00:02"), Ipv4Address ("10.1.1.2"), Ipv4Mask ("255.255.255.0")); Ptr ipv4 = node->GetObject (); Ptr click = DynamicCast (ipv4->GetRoutingProtocol ()); - click->DoStart (); + click->DoInitialize (); char *buf = NULL; buf = new char [255]; @@ -171,7 +171,7 @@ ClickTrivialTest::DoRun () Ptr ipv4 = node->GetObject (); Ptr click = DynamicCast (ipv4->GetRoutingProtocol ()); click->SetNodeName ("myNode"); - click->DoStart (); + click->DoInitialize (); int ret = 0; char *buf = NULL; diff --git a/src/core/model/object.cc b/src/core/model/object.cc index edef50b3b..fcd633242 100644 --- a/src/core/model/object.cc +++ b/src/core/model/object.cc @@ -92,7 +92,7 @@ Object::GetTypeId (void) Object::Object () : m_tid (Object::GetTypeId ()), m_disposed (false), - m_started (false), + m_initialized (false), m_aggregates ((struct Aggregates *) std::malloc (sizeof (struct Aggregates))), m_getObjectCount (0) { @@ -127,7 +127,7 @@ Object::~Object () Object::Object (const Object &o) : m_tid (o.m_tid), m_disposed (false), - m_started (false), + m_initialized (false), m_aggregates ((struct Aggregates *) std::malloc (sizeof (struct Aggregates))), m_getObjectCount (0) { @@ -176,12 +176,12 @@ Object::DoGetObject (TypeId tid) const return 0; } void -Object::Start (void) +Object::Initialize (void) { /** * Note: the code here is a bit tricky because we need to protect ourselves from - * modifications in the aggregate array while DoStart is called. The user's - * implementation of the DoStart method could call GetObject (which could + * modifications in the aggregate array while DoInitialize is called. The user's + * implementation of the DoInitialize method could call GetObject (which could * reorder the array) and it could call AggregateObject which would add an * object at the end of the array. To be safe, we restart iteration over the * array whenever we call some user code, just in case. @@ -192,10 +192,10 @@ restart: for (uint32_t i = 0; i < n; i++) { Object *current = m_aggregates->buffer[i]; - if (!current->m_started) + if (!current->m_initialized) { - current->DoStart (); - current->m_started = true; + current->DoInitialize (); + current->m_initialized = true; goto restart; } } @@ -339,10 +339,10 @@ Object::DoDispose (void) } void -Object::DoStart (void) +Object::DoInitialize (void) { NS_LOG_FUNCTION (this); - NS_ASSERT (!m_started); + NS_ASSERT (!m_initialized); } bool diff --git a/src/core/model/object.h b/src/core/model/object.h index 65f3d9473..35311d79c 100644 --- a/src/core/model/object.h +++ b/src/core/model/object.h @@ -153,14 +153,14 @@ private: AggregateIterator GetAggregateIterator (void) const; /** - * This method calls the virtual DoStart method on all the objects - * aggregated to this object. DoStart will be called only once over + * This method calls the virtual DoInitialize method on all the objects + * aggregated to this object. DoInitialize will be called only once over * the lifetime of an object, just like DoDispose is called only * once. * - * \sa DoStart + * \sa DoInitialize */ - void Start (void); + void Initialize (void); protected: /** @@ -172,15 +172,15 @@ protected: */ virtual void NotifyNewAggregate (void); /** - * This method is called only once by Object::Start. If the user - * calls Object::Start multiple times, DoStart is called only the + * This method is called only once by Object::Initialize. If the user + * calls Object::Initialize multiple times, DoInitialize is called only the * first time. * * Subclasses are expected to override this method and _chain up_ * to their parent's implementation once they are done. It is * safe to call GetObject and AggregateObject from within this method. */ - virtual void DoStart (void); + virtual void DoInitialize (void); /** * This method is called by Object::Dispose or by the object's * destructor, whichever comes first. @@ -281,10 +281,10 @@ private: */ bool m_disposed; /** - * Set to true once the DoStart method has run, + * Set to true once the DoInitialize method has run, * false otherwise */ - bool m_started; + bool m_initialized; /** * a pointer to an array of 'aggregates'. i.e., a pointer to * each object aggregated to this object is stored in this diff --git a/src/energy/helper/energy-source-container.cc b/src/energy/helper/energy-source-container.cc index a4f30efeb..6a4bb388f 100644 --- a/src/energy/helper/energy-source-container.cc +++ b/src/energy/helper/energy-source-container.cc @@ -129,14 +129,14 @@ EnergySourceContainer::DoDispose (void) } void -EnergySourceContainer::DoStart (void) +EnergySourceContainer::DoInitialize (void) { // call Object::Start for all EnergySource objects for (std::vector< Ptr >::iterator i = m_sources.begin (); i != m_sources.end (); i++) { - (*i)->Start (); - (*i)->StartDeviceModels (); + (*i)->Initialize (); + (*i)->InitializeDeviceModels (); } } diff --git a/src/energy/helper/energy-source-container.h b/src/energy/helper/energy-source-container.h index b44407b1a..e58bf9746 100644 --- a/src/energy/helper/energy-source-container.h +++ b/src/energy/helper/energy-source-container.h @@ -170,7 +170,7 @@ private: /** * \brief Calls Object::Start () for all EnergySource objects. */ - virtual void DoStart (void); + virtual void DoInitialize (void); private: std::vector< Ptr > m_sources; diff --git a/src/energy/model/basic-energy-source.cc b/src/energy/model/basic-energy-source.cc index a559167e9..cc3400412 100644 --- a/src/energy/model/basic-energy-source.cc +++ b/src/energy/model/basic-energy-source.cc @@ -169,7 +169,7 @@ BasicEnergySource::UpdateEnergySource (void) */ void -BasicEnergySource::DoStart (void) +BasicEnergySource::DoInitialize (void) { NS_LOG_FUNCTION (this); UpdateEnergySource (); // start periodic update diff --git a/src/energy/model/basic-energy-source.h b/src/energy/model/basic-energy-source.h index 1b12b8972..7386015eb 100644 --- a/src/energy/model/basic-energy-source.h +++ b/src/energy/model/basic-energy-source.h @@ -105,7 +105,7 @@ public: private: /// Defined in ns3::Object - void DoStart (void); + void DoInitialize (void); /// Defined in ns3::Object void DoDispose (void); diff --git a/src/energy/model/energy-source.cc b/src/energy/model/energy-source.cc index e9f5c0369..4608b1e94 100644 --- a/src/energy/model/energy-source.cc +++ b/src/energy/model/energy-source.cc @@ -102,7 +102,7 @@ EnergySource::FindDeviceEnergyModels (std::string name) } void -EnergySource::StartDeviceModels (void) +EnergySource::InitializeDeviceModels (void) { NS_LOG_FUNCTION (this); /* @@ -112,7 +112,7 @@ EnergySource::StartDeviceModels (void) DeviceEnergyModelContainer::Iterator i; for (i = m_models.Begin (); i != m_models.End (); i++) { - (*i)->Start (); + (*i)->Initialize (); } } diff --git a/src/energy/model/energy-source.h b/src/energy/model/energy-source.h index 795725b1d..0e48d65c7 100644 --- a/src/energy/model/energy-source.h +++ b/src/energy/model/energy-source.h @@ -150,7 +150,7 @@ public: * not aggregated to the node, therefore we need to manually start them here. * Called by EnergySourceContainer, which is aggregated to the node. */ - void StartDeviceModels (void); + void InitializeDeviceModels (void); /** * Calls Dispose () method of the device energy models. Device energy models diff --git a/src/energy/model/li-ion-energy-source.cc b/src/energy/model/li-ion-energy-source.cc index 557c0039c..3fb9b4ef3 100644 --- a/src/energy/model/li-ion-energy-source.cc +++ b/src/energy/model/li-ion-energy-source.cc @@ -236,7 +236,7 @@ LiIonEnergySource::UpdateEnergySource (void) * Private functions start here. */ void -LiIonEnergySource::DoStart (void) +LiIonEnergySource::DoInitialize (void) { NS_LOG_FUNCTION (this); UpdateEnergySource (); // start periodic update diff --git a/src/energy/model/li-ion-energy-source.h b/src/energy/model/li-ion-energy-source.h index ccca05b4d..ff20cd53c 100644 --- a/src/energy/model/li-ion-energy-source.h +++ b/src/energy/model/li-ion-energy-source.h @@ -151,7 +151,7 @@ public: */ Time GetEnergyUpdateInterval (void) const; private: - void DoStart (void); + void DoInitialize (void); void DoDispose (void); /** diff --git a/src/energy/model/rv-battery-model.cc b/src/energy/model/rv-battery-model.cc index f849e1e01..a26ec8720 100644 --- a/src/energy/model/rv-battery-model.cc +++ b/src/energy/model/rv-battery-model.cc @@ -287,7 +287,7 @@ RvBatteryModel::GetNumOfTerms (void) const */ void -RvBatteryModel::DoStart (void) +RvBatteryModel::DoInitialize (void) { NS_LOG_FUNCTION (this); NS_LOG_DEBUG ("RvBatteryModel:Starting battery level update!"); diff --git a/src/energy/model/rv-battery-model.h b/src/energy/model/rv-battery-model.h index 31bd5709c..92af0fdf9 100644 --- a/src/energy/model/rv-battery-model.h +++ b/src/energy/model/rv-battery-model.h @@ -175,7 +175,7 @@ public: private: /// Defined in ns3::Object - virtual void DoStart (void); + virtual void DoInitialize (void); /// Defined in ns3::Object virtual void DoDispose (void); diff --git a/src/internet/model/ipv4-list-routing.cc b/src/internet/model/ipv4-list-routing.cc index f34e3b99b..2ea3ad9da 100644 --- a/src/internet/model/ipv4-list-routing.cc +++ b/src/internet/model/ipv4-list-routing.cc @@ -84,15 +84,15 @@ Ipv4ListRouting::PrintRoutingTable (Ptr stream) const } void -Ipv4ListRouting::DoStart (void) +Ipv4ListRouting::DoInitialize (void) { for (Ipv4RoutingProtocolList::iterator rprotoIter = m_routingProtocols.begin (); rprotoIter != m_routingProtocols.end (); rprotoIter++) { Ptr protocol = (*rprotoIter).second; - protocol->Start (); + protocol->Initialize (); } - Ipv4RoutingProtocol::DoStart (); + Ipv4RoutingProtocol::DoInitialize (); } diff --git a/src/internet/model/ipv4-list-routing.h b/src/internet/model/ipv4-list-routing.h index 044ec0580..a6855d24e 100644 --- a/src/internet/model/ipv4-list-routing.h +++ b/src/internet/model/ipv4-list-routing.h @@ -90,7 +90,7 @@ public: protected: void DoDispose (void); - void DoStart (void); + void DoInitialize (void); private: typedef std::pair > Ipv4RoutingProtocolEntry; typedef std::list Ipv4RoutingProtocolList; diff --git a/src/lte/helper/lte-helper.cc b/src/lte/helper/lte-helper.cc index f0888af9b..c7701a1c3 100644 --- a/src/lte/helper/lte-helper.cc +++ b/src/lte/helper/lte-helper.cc @@ -73,7 +73,7 @@ LteHelper::LteHelper (void) } void -LteHelper::DoStart (void) +LteHelper::DoInitialize (void) { NS_LOG_FUNCTION (this); m_downlinkChannel = m_channelFactory.Create (); @@ -112,7 +112,7 @@ LteHelper::DoStart (void) { Ptr m_fadingModule; m_fadingModule = m_fadingModelFactory.Create (); - m_fadingModule->Start (); + m_fadingModule->Initialize (); m_downlinkChannel->AddSpectrumPropagationLossModel (m_fadingModule); m_uplinkChannel->AddSpectrumPropagationLossModel (m_fadingModule); } @@ -120,7 +120,7 @@ LteHelper::DoStart (void) m_phyTxStats = CreateObject (); m_phyRxStats = CreateObject (); m_macStats = CreateObject (); - Object::DoStart (); + Object::DoInitialize (); } @@ -285,7 +285,7 @@ NetDeviceContainer LteHelper::InstallEnbDevice (NodeContainer c) { NS_LOG_FUNCTION (this); - Start (); // will run DoStart () if necessary + Initialize (); // will run DoInitialize () if necessary NetDeviceContainer devices; for (NodeContainer::Iterator i = c.Begin (); i != c.End (); ++i) { @@ -434,7 +434,7 @@ LteHelper::InstallSingleEnbDevice (Ptr n) } - dev->Start (); + dev->Initialize (); m_uplinkChannel->AddRx (ulPhy); @@ -552,7 +552,7 @@ LteHelper::InstallSingleUeDevice (Ptr n) m_epcHelper->AddUe (dev, dev->GetImsi ()); } - dev->Start (); + dev->Initialize (); return dev; } diff --git a/src/lte/helper/lte-helper.h b/src/lte/helper/lte-helper.h index 2ed660d44..e5b9b17a5 100644 --- a/src/lte/helper/lte-helper.h +++ b/src/lte/helper/lte-helper.h @@ -395,7 +395,7 @@ public: protected: // inherited from Object - virtual void DoStart (void); + virtual void DoInitialize (void); private: Ptr InstallSingleEnbDevice (Ptr n); diff --git a/src/lte/model/lte-enb-net-device.cc b/src/lte/model/lte-enb-net-device.cc index d8f692372..891bf3a73 100644 --- a/src/lte/model/lte-enb-net-device.cc +++ b/src/lte/model/lte-enb-net-device.cc @@ -246,13 +246,13 @@ LteEnbNetDevice::SetUlEarfcn (uint16_t earfcn) void -LteEnbNetDevice::DoStart (void) +LteEnbNetDevice::DoInitialize (void) { UpdateConfig (); - m_phy->Start (); - m_mac->Start (); - m_rrc->Start (); + m_phy->Initialize (); + m_mac->Initialize (); + m_rrc->Initialize (); } diff --git a/src/lte/model/lte-enb-net-device.h b/src/lte/model/lte-enb-net-device.h index 0b5fc7988..73cedac1e 100644 --- a/src/lte/model/lte-enb-net-device.h +++ b/src/lte/model/lte-enb-net-device.h @@ -123,7 +123,7 @@ public: protected: // inherited from Object - virtual void DoStart (void); + virtual void DoInitialize (void); private: diff --git a/src/lte/model/lte-enb-phy.cc b/src/lte/model/lte-enb-phy.cc index 0e2148963..ede0cbd70 100644 --- a/src/lte/model/lte-enb-phy.cc +++ b/src/lte/model/lte-enb-phy.cc @@ -229,12 +229,12 @@ LteEnbPhy::DoDispose () } void -LteEnbPhy::DoStart () +LteEnbPhy::DoInitialize () { NS_LOG_FUNCTION (this); Ptr noisePsd = LteSpectrumValueHelper::CreateNoisePowerSpectralDensity (m_ulEarfcn, m_ulBandwidth, m_noiseFigure); m_uplinkSpectrumPhy->SetNoisePowerSpectralDensity (noisePsd); - LtePhy::DoStart (); + LtePhy::DoInitialize (); } diff --git a/src/lte/model/lte-enb-phy.h b/src/lte/model/lte-enb-phy.h index 5a1c5ad92..b03b7d748 100644 --- a/src/lte/model/lte-enb-phy.h +++ b/src/lte/model/lte-enb-phy.h @@ -66,7 +66,7 @@ public: // inherited from Object static TypeId GetTypeId (void); - virtual void DoStart (void); + virtual void DoInitialize (void); virtual void DoDispose (void); diff --git a/src/lte/model/lte-enb-rrc.cc b/src/lte/model/lte-enb-rrc.cc index 3d40406eb..15a25571f 100644 --- a/src/lte/model/lte-enb-rrc.cc +++ b/src/lte/model/lte-enb-rrc.cc @@ -146,7 +146,7 @@ UeManager::UeManager (Ptr rrc, uint16_t rnti, State s) } void -UeManager::DoStart () +UeManager::DoInitialize () { NS_LOG_FUNCTION (this); m_drbPdcpSapUser = new LtePdcpSpecificLtePdcpSapUser (this); @@ -429,10 +429,10 @@ UeManager::StartDataRadioBearers () { std::map >::iterator drbIt = m_drbMap.find (*drbIdIt); NS_ASSERT (drbIt != m_drbMap.end ()); - drbIt->second->m_rlc->Start (); + drbIt->second->m_rlc->Initialize (); if (drbIt->second->m_pdcp) { - drbIt->second->m_pdcp->Start (); + drbIt->second->m_pdcp->Initialize (); } } m_drbsToBeStarted.clear (); @@ -1731,7 +1731,7 @@ LteEnbRrc::AddUe (UeManager::State state) m_lastAllocatedRnti = rnti; Ptr ueManager = CreateObject (this, rnti, state); m_ueMap.insert (std::pair > (rnti, ueManager)); - ueManager->Start (); + ueManager->Initialize (); NS_LOG_DEBUG (this << " New UE RNTI " << rnti << " cellId " << m_cellId << " srs CI " << ueManager->GetSrsConfigurationIndex ()); m_newUeContextTrace (m_cellId, rnti); return rnti; diff --git a/src/lte/model/lte-enb-rrc.h b/src/lte/model/lte-enb-rrc.h index e9d91c3da..81878c964 100644 --- a/src/lte/model/lte-enb-rrc.h +++ b/src/lte/model/lte-enb-rrc.h @@ -97,7 +97,7 @@ public: // inherited from Object protected: - virtual void DoStart (); + virtual void DoInitialize (); virtual void DoDispose (); public: static TypeId GetTypeId (void); diff --git a/src/lte/model/lte-rlc.cc b/src/lte/model/lte-rlc.cc index a9a749a32..e87180f41 100644 --- a/src/lte/model/lte-rlc.cc +++ b/src/lte/model/lte-rlc.cc @@ -190,7 +190,7 @@ LteRlcSm::GetTypeId (void) } void -LteRlcSm::DoStart () +LteRlcSm::DoInitialize () { NS_LOG_FUNCTION (this); ReportBufferStatus (); diff --git a/src/lte/model/lte-rlc.h b/src/lte/model/lte-rlc.h index f6fe05403..3f79294cc 100644 --- a/src/lte/model/lte-rlc.h +++ b/src/lte/model/lte-rlc.h @@ -149,7 +149,7 @@ public: LteRlcSm (); virtual ~LteRlcSm (); static TypeId GetTypeId (void); - virtual void DoStart (); + virtual void DoInitialize (); virtual void DoDispose (); virtual void DoTransmitPdcpPdu (Ptr p); diff --git a/src/lte/model/lte-ue-net-device.cc b/src/lte/model/lte-ue-net-device.cc index 5fe4993b9..5307c632c 100644 --- a/src/lte/model/lte-ue-net-device.cc +++ b/src/lte/model/lte-ue-net-device.cc @@ -187,13 +187,13 @@ LteUeNetDevice::GetTargetEnb (void) } void -LteUeNetDevice::DoStart (void) +LteUeNetDevice::DoInitialize (void) { NS_LOG_FUNCTION (this); UpdateConfig (); - m_phy->Start (); - m_mac->Start (); - m_rrc->Start (); + m_phy->Initialize (); + m_mac->Initialize (); + m_rrc->Initialize (); } bool diff --git a/src/lte/model/lte-ue-net-device.h b/src/lte/model/lte-ue-net-device.h index 6a073deb6..87d63a689 100644 --- a/src/lte/model/lte-ue-net-device.h +++ b/src/lte/model/lte-ue-net-device.h @@ -101,7 +101,7 @@ public: protected: // inherited from Object - virtual void DoStart (void); + virtual void DoInitialize (void); private: diff --git a/src/lte/model/lte-ue-phy.cc b/src/lte/model/lte-ue-phy.cc index 6df7f8497..5b0dddded 100644 --- a/src/lte/model/lte-ue-phy.cc +++ b/src/lte/model/lte-ue-phy.cc @@ -240,10 +240,10 @@ LteUePhy::GetTypeId (void) } void -LteUePhy::DoStart () +LteUePhy::DoInitialize () { NS_LOG_FUNCTION (this); - LtePhy::DoStart (); + LtePhy::DoInitialize (); } void diff --git a/src/lte/model/lte-ue-phy.h b/src/lte/model/lte-ue-phy.h index f0ce6d6f6..f1861ac29 100644 --- a/src/lte/model/lte-ue-phy.h +++ b/src/lte/model/lte-ue-phy.h @@ -68,7 +68,7 @@ public: // inherited from Object static TypeId GetTypeId (void); - virtual void DoStart (void); + virtual void DoInitialize (void); virtual void DoDispose (void); /** diff --git a/src/lte/model/lte-ue-rrc.cc b/src/lte/model/lte-ue-rrc.cc index 8e907d3f3..904c4bf38 100644 --- a/src/lte/model/lte-ue-rrc.cc +++ b/src/lte/model/lte-ue-rrc.cc @@ -342,7 +342,7 @@ LteUeRrc::SetUseRlcSm (bool val) void -LteUeRrc::DoStart (void) +LteUeRrc::DoInitialize (void) { NS_LOG_FUNCTION (this); @@ -875,7 +875,7 @@ LteUeRrc::ApplyRadioResourceConfigDedicated (LteRrcSap::RadioResourceConfigDedic m_cmacSapProvider->AddLc (dtamIt->logicalChannelIdentity, lcConfig, rlc->GetLteMacSapUser ()); - rlc->Start (); + rlc->Initialize (); } else { diff --git a/src/lte/model/lte-ue-rrc.h b/src/lte/model/lte-ue-rrc.h index 71e1ebecc..cee85bc1f 100644 --- a/src/lte/model/lte-ue-rrc.h +++ b/src/lte/model/lte-ue-rrc.h @@ -91,7 +91,7 @@ public: // inherited from Object private: - virtual void DoStart (void); + virtual void DoInitialize (void); virtual void DoDispose (void); public: static TypeId GetTypeId (void); diff --git a/src/lte/model/trace-fading-loss-model.cc b/src/lte/model/trace-fading-loss-model.cc index d9c2e1d28..ac8cd711d 100644 --- a/src/lte/model/trace-fading-loss-model.cc +++ b/src/lte/model/trace-fading-loss-model.cc @@ -103,7 +103,7 @@ TraceFadingLossModel::SetTraceLength (Time t) } void -TraceFadingLossModel::DoStart () +TraceFadingLossModel::DoInitialize () { LoadTrace (); } diff --git a/src/lte/model/trace-fading-loss-model.h b/src/lte/model/trace-fading-loss-model.h index 81e90fca4..01e1b1c06 100644 --- a/src/lte/model/trace-fading-loss-model.h +++ b/src/lte/model/trace-fading-loss-model.h @@ -49,7 +49,7 @@ public: static TypeId GetTypeId (); - virtual void DoStart (void); + virtual void DoInitialize (void); /** * \brief The couple of mobility mnode that form a fading channel realization diff --git a/src/lte/test/lte-simple-helper.cc b/src/lte/test/lte-simple-helper.cc index 00c3f9f58..1fc3786e2 100644 --- a/src/lte/test/lte-simple-helper.cc +++ b/src/lte/test/lte-simple-helper.cc @@ -45,13 +45,13 @@ LteSimpleHelper::LteSimpleHelper (void) } void -LteSimpleHelper::DoStart (void) +LteSimpleHelper::DoInitialize (void) { NS_LOG_FUNCTION (this); m_phyChannel = CreateObject (); - Object::DoStart (); + Object::DoInitialize (); } LteSimpleHelper::~LteSimpleHelper (void) @@ -95,7 +95,7 @@ NetDeviceContainer LteSimpleHelper::InstallEnbDevice (NodeContainer c) { NS_LOG_FUNCTION (this); - Start (); // will run DoStart () if necessary + Initialize (); // will run DoInitialize () if necessary NetDeviceContainer devices; for (NodeContainer::Iterator i = c.Begin (); i != c.End (); ++i) { diff --git a/src/lte/test/lte-simple-helper.h b/src/lte/test/lte-simple-helper.h index 59e73c4b0..7d1c36c8c 100644 --- a/src/lte/test/lte-simple-helper.h +++ b/src/lte/test/lte-simple-helper.h @@ -115,7 +115,7 @@ public: protected: // inherited from Object - virtual void DoStart (void); + virtual void DoInitialize (void); private: Ptr InstallSingleEnbDevice (Ptr n); diff --git a/src/lte/test/lte-simple-net-device.cc b/src/lte/test/lte-simple-net-device.cc index 16893f9dc..b9b69fc58 100644 --- a/src/lte/test/lte-simple-net-device.cc +++ b/src/lte/test/lte-simple-net-device.cc @@ -70,7 +70,7 @@ LteSimpleNetDevice::DoDispose (void) void -LteSimpleNetDevice::DoStart (void) +LteSimpleNetDevice::DoInitialize (void) { NS_LOG_FUNCTION (this); } diff --git a/src/lte/test/lte-simple-net-device.h b/src/lte/test/lte-simple-net-device.h index e2a13a741..af44d2c49 100644 --- a/src/lte/test/lte-simple-net-device.h +++ b/src/lte/test/lte-simple-net-device.h @@ -54,7 +54,7 @@ public: protected: // inherited from Object - virtual void DoStart (void); + virtual void DoInitialize (void); }; diff --git a/src/mesh/model/dot11s/hwmp-protocol.cc b/src/mesh/model/dot11s/hwmp-protocol.cc index 9e6f5ba3c..801c9d0f7 100644 --- a/src/mesh/model/dot11s/hwmp-protocol.cc +++ b/src/mesh/model/dot11s/hwmp-protocol.cc @@ -201,7 +201,7 @@ HwmpProtocol::~HwmpProtocol () } void -HwmpProtocol::DoStart () +HwmpProtocol::DoInitialize () { m_coefficient->SetAttribute ("Max", DoubleValue (m_randomStart.GetSeconds ())); if (m_isRoot) diff --git a/src/mesh/model/dot11s/hwmp-protocol.h b/src/mesh/model/dot11s/hwmp-protocol.h index 63c2cb9a6..074bbac28 100644 --- a/src/mesh/model/dot11s/hwmp-protocol.h +++ b/src/mesh/model/dot11s/hwmp-protocol.h @@ -99,7 +99,7 @@ public: private: friend class HwmpProtocolMac; - virtual void DoStart (); + virtual void DoInitialize (); HwmpProtocol& operator= (const HwmpProtocol &); HwmpProtocol (const HwmpProtocol &); diff --git a/src/mesh/model/dot11s/peer-management-protocol.cc b/src/mesh/model/dot11s/peer-management-protocol.cc index fd5a8ba99..9ae96b3a0 100644 --- a/src/mesh/model/dot11s/peer-management-protocol.cc +++ b/src/mesh/model/dot11s/peer-management-protocol.cc @@ -587,7 +587,7 @@ PeerManagementProtocol::AssignStreams (int64_t stream) } void -PeerManagementProtocol::DoStart () +PeerManagementProtocol::DoInitialize () { // If beacon interval is equal to the neighbor's one and one o more beacons received // by my neighbor coincide with my beacon - apply random uniformly distributed shift from diff --git a/src/mesh/model/dot11s/peer-management-protocol.h b/src/mesh/model/dot11s/peer-management-protocol.h index 8c5e402c4..1c3956342 100644 --- a/src/mesh/model/dot11s/peer-management-protocol.h +++ b/src/mesh/model/dot11s/peer-management-protocol.h @@ -161,7 +161,7 @@ public: int64_t AssignStreams (int64_t stream); private: - virtual void DoStart (); + virtual void DoInitialize (); /** * \name Private structures * \{ diff --git a/src/mesh/model/mesh-wifi-interface-mac.cc b/src/mesh/model/mesh-wifi-interface-mac.cc index b0ace9736..fce5a4885 100644 --- a/src/mesh/model/mesh-wifi-interface-mac.cc +++ b/src/mesh/model/mesh-wifi-interface-mac.cc @@ -127,7 +127,7 @@ MeshWifiInterfaceMac::DoDispose () RegularWifiMac::DoDispose (); } void -MeshWifiInterfaceMac::DoStart () +MeshWifiInterfaceMac::DoInitialize () { m_coefficient->SetAttribute ("Max", DoubleValue (m_randomStart.GetSeconds ())); if (m_beaconEnable) diff --git a/src/mesh/model/mesh-wifi-interface-mac.h b/src/mesh/model/mesh-wifi-interface-mac.h index 77e596623..377e9db05 100644 --- a/src/mesh/model/mesh-wifi-interface-mac.h +++ b/src/mesh/model/mesh-wifi-interface-mac.h @@ -161,7 +161,7 @@ private: private: typedef std::vector > PluginList; - virtual void DoStart (); + virtual void DoInitialize (); ///\name Mesh timing intervals // \{ diff --git a/src/mobility/model/random-direction-2d-mobility-model.cc b/src/mobility/model/random-direction-2d-mobility-model.cc index defa6906b..43d11b670 100644 --- a/src/mobility/model/random-direction-2d-mobility-model.cc +++ b/src/mobility/model/random-direction-2d-mobility-model.cc @@ -69,14 +69,14 @@ RandomDirection2dMobilityModel::DoDispose (void) MobilityModel::DoDispose (); } void -RandomDirection2dMobilityModel::DoStart (void) +RandomDirection2dMobilityModel::DoInitialize (void) { - DoStartPrivate (); - MobilityModel::DoStart (); + DoInitializePrivate (); + MobilityModel::DoInitialize (); } void -RandomDirection2dMobilityModel::DoStartPrivate (void) +RandomDirection2dMobilityModel::DoInitializePrivate (void) { double direction = m_direction->GetValue (0, 2 * PI); SetDirectionAndSpeed (direction); @@ -148,7 +148,7 @@ RandomDirection2dMobilityModel::DoSetPosition (const Vector &position) m_helper.SetPosition (position); Simulator::Remove (m_event); m_event.Cancel (); - m_event = Simulator::ScheduleNow (&RandomDirection2dMobilityModel::DoStartPrivate, this); + m_event = Simulator::ScheduleNow (&RandomDirection2dMobilityModel::DoInitializePrivate, this); } Vector RandomDirection2dMobilityModel::DoGetVelocity (void) const diff --git a/src/mobility/model/random-direction-2d-mobility-model.h b/src/mobility/model/random-direction-2d-mobility-model.h index bdedf2a9a..617ab2bd4 100644 --- a/src/mobility/model/random-direction-2d-mobility-model.h +++ b/src/mobility/model/random-direction-2d-mobility-model.h @@ -52,9 +52,9 @@ private: void BeginPause (void); void SetDirectionAndSpeed (double direction); void InitializeDirectionAndSpeed (void); - void DoStartPrivate (void); + void DoInitializePrivate (void); virtual void DoDispose (void); - virtual void DoStart (void); + virtual void DoInitialize (void); virtual Vector DoGetPosition (void) const; virtual void DoSetPosition (const Vector &position); virtual Vector DoGetVelocity (void) const; diff --git a/src/mobility/model/random-walk-2d-mobility-model.cc b/src/mobility/model/random-walk-2d-mobility-model.cc index 937051d9c..4e696abb8 100644 --- a/src/mobility/model/random-walk-2d-mobility-model.cc +++ b/src/mobility/model/random-walk-2d-mobility-model.cc @@ -75,14 +75,14 @@ RandomWalk2dMobilityModel::GetTypeId (void) } void -RandomWalk2dMobilityModel::DoStart (void) +RandomWalk2dMobilityModel::DoInitialize (void) { - DoStartPrivate (); - MobilityModel::DoStart (); + DoInitializePrivate (); + MobilityModel::DoInitialize (); } void -RandomWalk2dMobilityModel::DoStartPrivate (void) +RandomWalk2dMobilityModel::DoInitializePrivate (void) { m_helper.Update (); double speed = m_speed->GetValue (); @@ -116,7 +116,7 @@ RandomWalk2dMobilityModel::DoWalk (Time delayLeft) m_event.Cancel (); if (m_bounds.IsInside (nextPosition)) { - m_event = Simulator::Schedule (delayLeft, &RandomWalk2dMobilityModel::DoStartPrivate, this); + m_event = Simulator::Schedule (delayLeft, &RandomWalk2dMobilityModel::DoInitializePrivate, this); } else { @@ -168,7 +168,7 @@ RandomWalk2dMobilityModel::DoSetPosition (const Vector &position) NS_ASSERT (m_bounds.IsInside (position)); m_helper.SetPosition (position); Simulator::Remove (m_event); - m_event = Simulator::ScheduleNow (&RandomWalk2dMobilityModel::DoStartPrivate, this); + m_event = Simulator::ScheduleNow (&RandomWalk2dMobilityModel::DoInitializePrivate, this); } Vector RandomWalk2dMobilityModel::DoGetVelocity (void) const diff --git a/src/mobility/model/random-walk-2d-mobility-model.h b/src/mobility/model/random-walk-2d-mobility-model.h index be47c60a2..e15da1102 100644 --- a/src/mobility/model/random-walk-2d-mobility-model.h +++ b/src/mobility/model/random-walk-2d-mobility-model.h @@ -56,9 +56,9 @@ public: private: void Rebound (Time timeLeft); void DoWalk (Time timeLeft); - void DoStartPrivate (void); + void DoInitializePrivate (void); virtual void DoDispose (void); - virtual void DoStart (void); + virtual void DoInitialize (void); virtual Vector DoGetPosition (void) const; virtual void DoSetPosition (const Vector &position); virtual Vector DoGetVelocity (void) const; diff --git a/src/mobility/model/random-waypoint-mobility-model.cc b/src/mobility/model/random-waypoint-mobility-model.cc index 8c3eff3af..566fba6ea 100644 --- a/src/mobility/model/random-waypoint-mobility-model.cc +++ b/src/mobility/model/random-waypoint-mobility-model.cc @@ -73,19 +73,19 @@ RandomWaypointMobilityModel::BeginWalk (void) Time travelDelay = Seconds (CalculateDistance (destination, m_current) / speed); m_event.Cancel (); m_event = Simulator::Schedule (travelDelay, - &RandomWaypointMobilityModel::DoStartPrivate, this); + &RandomWaypointMobilityModel::DoInitializePrivate, this); NotifyCourseChange (); } void -RandomWaypointMobilityModel::DoStart (void) +RandomWaypointMobilityModel::DoInitialize (void) { - DoStartPrivate (); - MobilityModel::DoStart (); + DoInitializePrivate (); + MobilityModel::DoInitialize (); } void -RandomWaypointMobilityModel::DoStartPrivate (void) +RandomWaypointMobilityModel::DoInitializePrivate (void) { m_helper.Update (); m_helper.Pause (); @@ -105,7 +105,7 @@ RandomWaypointMobilityModel::DoSetPosition (const Vector &position) { m_helper.SetPosition (position); Simulator::Remove (m_event); - m_event = Simulator::ScheduleNow (&RandomWaypointMobilityModel::DoStartPrivate, this); + m_event = Simulator::ScheduleNow (&RandomWaypointMobilityModel::DoInitializePrivate, this); } Vector RandomWaypointMobilityModel::DoGetVelocity (void) const diff --git a/src/mobility/model/random-waypoint-mobility-model.h b/src/mobility/model/random-waypoint-mobility-model.h index 147e11916..e49da9f03 100644 --- a/src/mobility/model/random-waypoint-mobility-model.h +++ b/src/mobility/model/random-waypoint-mobility-model.h @@ -54,10 +54,10 @@ class RandomWaypointMobilityModel : public MobilityModel public: static TypeId GetTypeId (void); protected: - virtual void DoStart (void); + virtual void DoInitialize (void); private: void BeginWalk (void); - void DoStartPrivate (void); + void DoInitializePrivate (void); virtual Vector DoGetPosition (void) const; virtual void DoSetPosition (const Vector &position); virtual Vector DoGetVelocity (void) const; diff --git a/src/mobility/model/steady-state-random-waypoint-mobility-model.cc b/src/mobility/model/steady-state-random-waypoint-mobility-model.cc index 7b45a77a7..2e6e06841 100644 --- a/src/mobility/model/steady-state-random-waypoint-mobility-model.cc +++ b/src/mobility/model/steady-state-random-waypoint-mobility-model.cc @@ -93,14 +93,14 @@ SteadyStateRandomWaypointMobilityModel::SteadyStateRandomWaypointMobilityModel ( } void -SteadyStateRandomWaypointMobilityModel::DoStart (void) +SteadyStateRandomWaypointMobilityModel::DoInitialize (void) { - SteadyStateStart (); - MobilityModel::DoStart (); + DoInitializePrivate (); + MobilityModel::DoInitialize (); } void -SteadyStateRandomWaypointMobilityModel::SteadyStateStart (void) +SteadyStateRandomWaypointMobilityModel::DoInitializePrivate (void) { alreadyStarted = true; // Configure random variables based on attributes diff --git a/src/mobility/model/steady-state-random-waypoint-mobility-model.h b/src/mobility/model/steady-state-random-waypoint-mobility-model.h index 19ce933a6..db79a80c0 100644 --- a/src/mobility/model/steady-state-random-waypoint-mobility-model.h +++ b/src/mobility/model/steady-state-random-waypoint-mobility-model.h @@ -55,9 +55,9 @@ public: static TypeId GetTypeId (void); SteadyStateRandomWaypointMobilityModel (); protected: - virtual void DoStart (void); + virtual void DoInitialize (void); private: - void SteadyStateStart (void); + void DoInitializePrivate (void); void SteadyStateBeginWalk (const Vector &destination); void Start (void); void BeginWalk (void); diff --git a/src/mobility/test/steady-state-random-waypoint-mobility-model-test.cc b/src/mobility/test/steady-state-random-waypoint-mobility-model-test.cc index 07ca11e2b..2c31791fe 100644 --- a/src/mobility/test/steady-state-random-waypoint-mobility-model-test.cc +++ b/src/mobility/test/steady-state-random-waypoint-mobility-model-test.cc @@ -78,7 +78,7 @@ SteadyStateRandomWaypointTest::DoRun (void) // Add this mobility model to the stack. mobilityStack.push_back (model); - Simulator::Schedule (Seconds (0.0), &Object::Start, model); + Simulator::Schedule (Seconds (0.0), &Object::Initialize, model); } Simulator::Schedule (Seconds (0.001), &SteadyStateRandomWaypointTest::DistribCompare, this); diff --git a/src/mobility/test/waypoint-mobility-model-test.cc b/src/mobility/test/waypoint-mobility-model-test.cc index 7ed0c15bf..2cc385c8f 100644 --- a/src/mobility/test/waypoint-mobility-model-test.cc +++ b/src/mobility/test/waypoint-mobility-model-test.cc @@ -77,7 +77,7 @@ WaypointMobilityModelNotifyTest::DoRun (void) // Add this mobility model to the stack. mobilityStack.push_back (model); - Simulator::Schedule (Seconds (0.0), &Object::Start, model); + Simulator::Schedule (Seconds (0.0), &Object::Initialize, model); } Waypoint wpt (Seconds (0.0), Vector (0.0, 0.0, 0.0)); diff --git a/src/network/model/application.cc b/src/network/model/application.cc index 6727cff2b..98719e6ec 100644 --- a/src/network/model/application.cc +++ b/src/network/model/application.cc @@ -89,7 +89,7 @@ Application::DoDispose (void) } void -Application::DoStart (void) +Application::DoInitialize (void) { NS_LOG_FUNCTION (this); m_startEvent = Simulator::Schedule (m_startTime, &Application::StartApplication, this); @@ -97,7 +97,7 @@ Application::DoStart (void) { m_stopEvent = Simulator::Schedule (m_stopTime, &Application::StopApplication, this); } - Object::DoStart (); + Object::DoInitialize (); } Ptr Application::GetNode () const diff --git a/src/network/model/application.h b/src/network/model/application.h index c9f6e61a3..a8b9782ba 100644 --- a/src/network/model/application.h +++ b/src/network/model/application.h @@ -121,7 +121,7 @@ private: virtual void StopApplication (void); protected: virtual void DoDispose (void); - virtual void DoStart (void); + virtual void DoInitialize (void); Ptr m_node; Time m_startTime; diff --git a/src/network/model/node-list.cc b/src/network/model/node-list.cc index 0ae863a95..87060e834 100644 --- a/src/network/model/node-list.cc +++ b/src/network/model/node-list.cc @@ -129,7 +129,7 @@ NodeListPriv::Add (Ptr node) NS_LOG_FUNCTION (this << node); uint32_t index = m_nodes.size (); m_nodes.push_back (node); - Simulator::ScheduleWithContext (index, TimeStep (0), &Node::Start, node); + Simulator::ScheduleWithContext (index, TimeStep (0), &Node::Initialize, node); return index; } diff --git a/src/network/model/node.cc b/src/network/model/node.cc index bd76674ef..8feec8f7b 100644 --- a/src/network/model/node.cc +++ b/src/network/model/node.cc @@ -123,7 +123,7 @@ Node::AddDevice (Ptr device) device->SetIfIndex (index); device->SetReceiveCallback (MakeCallback (&Node::NonPromiscReceiveFromDevice, this)); Simulator::ScheduleWithContext (GetId (), Seconds (0.0), - &NetDevice::Start, device); + &NetDevice::Initialize, device); NotifyDeviceAdded (device); return index; } @@ -150,7 +150,7 @@ Node::AddApplication (Ptr application) m_applications.push_back (application); application->SetNode (this); Simulator::ScheduleWithContext (GetId (), Seconds (0.0), - &Application::Start, application); + &Application::Initialize, application); return index; } Ptr @@ -193,23 +193,23 @@ Node::DoDispose () Object::DoDispose (); } void -Node::DoStart (void) +Node::DoInitialize (void) { NS_LOG_FUNCTION (this); for (std::vector >::iterator i = m_devices.begin (); i != m_devices.end (); i++) { Ptr device = *i; - device->Start (); + device->Initialize (); } for (std::vector >::iterator i = m_applications.begin (); i != m_applications.end (); i++) { Ptr application = *i; - application->Start (); + application->Initialize (); } - Object::DoStart (); + Object::DoInitialize (); } void diff --git a/src/network/model/node.h b/src/network/model/node.h index 013982163..36d29e706 100644 --- a/src/network/model/node.h +++ b/src/network/model/node.h @@ -202,7 +202,7 @@ protected: * end of their own DoDispose method. */ virtual void DoDispose (void); - virtual void DoStart (void); + virtual void DoInitialize (void); private: void NotifyDeviceAdded (Ptr device); bool NonPromiscReceiveFromDevice (Ptr device, Ptr, uint16_t protocol, const Address &from); diff --git a/src/olsr/model/olsr-routing-protocol.cc b/src/olsr/model/olsr-routing-protocol.cc index c1c0a2634..a5b783c25 100644 --- a/src/olsr/model/olsr-routing-protocol.cc +++ b/src/olsr/model/olsr-routing-protocol.cc @@ -273,7 +273,7 @@ RoutingProtocol::PrintRoutingTable (Ptr stream) const m_hnaRoutingTable->PrintRoutingTable (stream); } -void RoutingProtocol::DoStart () +void RoutingProtocol::DoInitialize () { if (m_mainAddress == Ipv4Address ()) { diff --git a/src/olsr/model/olsr-routing-protocol.h b/src/olsr/model/olsr-routing-protocol.h index 4f2c0259b..8e70cfbf4 100644 --- a/src/olsr/model/olsr-routing-protocol.h +++ b/src/olsr/model/olsr-routing-protocol.h @@ -133,7 +133,7 @@ public: void SetRoutingTableAssociation (Ptr routingTable); protected: - virtual void DoStart (void); + virtual void DoInitialize (void); private: std::map m_table; ///< Data structure for the routing table. diff --git a/src/wifi/model/ap-wifi-mac.cc b/src/wifi/model/ap-wifi-mac.cc index 444935783..784787d82 100644 --- a/src/wifi/model/ap-wifi-mac.cc +++ b/src/wifi/model/ap-wifi-mac.cc @@ -564,15 +564,15 @@ ApWifiMac::DeaggregateAmsduAndForward (Ptr aggregatedPacket, } void -ApWifiMac::DoStart (void) +ApWifiMac::DoInitialize (void) { - m_beaconDca->Start (); + m_beaconDca->Initialize (); m_beaconEvent.Cancel (); if (m_enableBeaconGeneration) { m_beaconEvent = Simulator::ScheduleNow (&ApWifiMac::SendOneBeacon, this); } - RegularWifiMac::DoStart (); + RegularWifiMac::DoInitialize (); } } // namespace ns3 diff --git a/src/wifi/model/ap-wifi-mac.h b/src/wifi/model/ap-wifi-mac.h index 679e5a083..478bf53a8 100644 --- a/src/wifi/model/ap-wifi-mac.h +++ b/src/wifi/model/ap-wifi-mac.h @@ -121,7 +121,7 @@ private: void SetBeaconGeneration (bool enable); bool GetBeaconGeneration (void) const; virtual void DoDispose (void); - virtual void DoStart (void); + virtual void DoInitialize (void); Ptr m_beaconDca; Time m_beaconInterval; diff --git a/src/wifi/model/dca-txop.cc b/src/wifi/model/dca-txop.cc index 99d10fbe7..404467ed4 100644 --- a/src/wifi/model/dca-txop.cc +++ b/src/wifi/model/dca-txop.cc @@ -293,11 +293,11 @@ DcaTxop::NeedRts (Ptr packet, const WifiMacHeader *header) } void -DcaTxop::DoStart () +DcaTxop::DoInitialize () { m_dcf->ResetCw (); m_dcf->StartBackoffNow (m_rng->GetNext (0, m_dcf->GetCw ())); - ns3::Dcf::DoStart (); + ns3::Dcf::DoInitialize (); } bool DcaTxop::NeedRtsRetransmission (void) diff --git a/src/wifi/model/dca-txop.h b/src/wifi/model/dca-txop.h index 5b27b7e5b..6426de069 100644 --- a/src/wifi/model/dca-txop.h +++ b/src/wifi/model/dca-txop.h @@ -130,7 +130,7 @@ private: // Inherited from ns3::Object Ptr Low (void); - void DoStart (); + void DoInitialize (); /* dcf notifications forwarded here */ bool NeedsAccess (void) const; void NotifyAccessGranted (void); diff --git a/src/wifi/model/edca-txop-n.cc b/src/wifi/model/edca-txop-n.cc index 973f96789..507de1064 100644 --- a/src/wifi/model/edca-txop-n.cc +++ b/src/wifi/model/edca-txop-n.cc @@ -1120,10 +1120,10 @@ EdcaTxopN::AssignStreams (int64_t stream) } void -EdcaTxopN::DoStart () +EdcaTxopN::DoInitialize () { m_dcf->ResetCw (); m_dcf->StartBackoffNow (m_rng->GetNext (0, m_dcf->GetCw ())); - ns3::Dcf::DoStart (); + ns3::Dcf::DoInitialize (); } } // namespace ns3 diff --git a/src/wifi/model/edca-txop-n.h b/src/wifi/model/edca-txop-n.h index ad66d5ed4..764e13f53 100644 --- a/src/wifi/model/edca-txop-n.h +++ b/src/wifi/model/edca-txop-n.h @@ -162,7 +162,7 @@ public: int64_t AssignStreams (int64_t stream); private: - void DoStart (); + void DoInitialize (); /** * This functions are used only to correctly set addresses in a-msdu subframe. * If aggregating sta is a STA (in an infrastructured network): diff --git a/src/wifi/model/regular-wifi-mac.cc b/src/wifi/model/regular-wifi-mac.cc index e93a525eb..329997ee5 100644 --- a/src/wifi/model/regular-wifi-mac.cc +++ b/src/wifi/model/regular-wifi-mac.cc @@ -75,15 +75,15 @@ RegularWifiMac::~RegularWifiMac () } void -RegularWifiMac::DoStart () +RegularWifiMac::DoInitialize () { NS_LOG_FUNCTION (this); - m_dca->Start (); + m_dca->Initialize (); for (EdcaQueues::iterator i = m_edca.begin (); i != m_edca.end (); ++i) { - i->second->Start (); + i->second->Initialize (); } } diff --git a/src/wifi/model/regular-wifi-mac.h b/src/wifi/model/regular-wifi-mac.h index f501adf0e..8cc1a049b 100644 --- a/src/wifi/model/regular-wifi-mac.h +++ b/src/wifi/model/regular-wifi-mac.h @@ -211,7 +211,7 @@ public: virtual Time GetCompressedBlockAckTimeout (void) const; protected: - virtual void DoStart (); + virtual void DoInitialize (); virtual void DoDispose (); MacRxMiddle *m_rxMiddle; diff --git a/src/wifi/model/wifi-net-device.cc b/src/wifi/model/wifi-net-device.cc index bdf06f5ec..6e6dee136 100644 --- a/src/wifi/model/wifi-net-device.cc +++ b/src/wifi/model/wifi-net-device.cc @@ -96,12 +96,12 @@ WifiNetDevice::DoDispose (void) } void -WifiNetDevice::DoStart (void) +WifiNetDevice::DoInitialize (void) { - m_phy->Start (); - m_mac->Start (); - m_stationManager->Start (); - NetDevice::DoStart (); + m_phy->Initialize (); + m_mac->Initialize (); + m_stationManager->Initialize (); + NetDevice::DoInitialize (); } void diff --git a/src/wifi/model/wifi-net-device.h b/src/wifi/model/wifi-net-device.h index 40dbe7e0d..b73b4615d 100644 --- a/src/wifi/model/wifi-net-device.h +++ b/src/wifi/model/wifi-net-device.h @@ -115,7 +115,7 @@ private: static const uint16_t MAX_MSDU_SIZE = 2304; virtual void DoDispose (void); - virtual void DoStart (void); + virtual void DoInitialize (void); void ForwardUp (Ptr packet, Mac48Address from, Mac48Address to); void LinkUp (void); void LinkDown (void);