ns-3
|
a base class which provides memory management and object aggregation More...
#include <object.h>
Inherits ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >.
Inherited by A, A, ns3::AntennaModel, ns3::Application, ns3::ArpCache, ns3::ArpL3Protocol, ns3::AthstatsWifiTraceSink, ns3::BandwidthManager, ns3::BSLinkManager, ns3::BSScheduler, ns3::Building, ns3::BuildingListPriv, ns3::BurstProfileManager, ns3::Channel, ns3::ChannelListPriv, ns3::ConnectionManager, ns3::DataCalculator, ns3::DataCollector, ns3::DataOutputInterface, ns3::Dcf, ns3::DeviceEnergyModel, ns3::dot11s::AirtimeLinkMetricCalculator, ns3::dot11s::HwmpRtable, ns3::dot11s::PeerLink, ns3::dot11s::PeerManagementProtocol, ns3::dsr::DsrNetworkQueue, ns3::dsr::DsrOptions, ns3::dsr::GraReply, ns3::dsr::RouteCache, ns3::dsr::RreqTable, ns3::EnergySource, ns3::EnergySourceContainer, ns3::EpcHelper, ns3::ErrorModel, ns3::ErrorRateModel, ns3::FfMacScheduler, ns3::flame::FlameRtable, ns3::FlowMonitor, ns3::GlobalRouter, ns3::GridBuildingAllocator, ns3::IpcsClassifier, ns3::IpL4Protocol, ns3::Ipv4, ns3::Ipv4Interface, ns3::Ipv4RoutingProtocol, ns3::Ipv6, ns3::Ipv6AutoconfiguredPrefix, ns3::Ipv6Extension, ns3::Ipv6ExtensionDemux, ns3::Ipv6ExtensionRoutingDemux, ns3::Ipv6Interface, ns3::Ipv6Option, ns3::Ipv6OptionDemux, ns3::Ipv6RoutingProtocol, ns3::JakesProcess, ns3::LteAmc, ns3::LteEnbMac, ns3::LteEnbRrc, ns3::LteHelper, ns3::LteHexGridEnbTopologyHelper, ns3::LteInterference, ns3::LtePdcp, ns3::LtePhy, ns3::LteRadioBearerInfo, ns3::LteRlc, ns3::LteStatsCalculator, ns3::LteUeMac, ns3::LteUeRrc, ns3::MacLow, ns3::MeshL2RoutingProtocol, ns3::MeshStack, ns3::MobilityModel, ns3::MpiReceiver, ns3::MsduAggregator, ns3::NdiscCache, ns3::NetDevice, ns3::Node, ns3::NodeListPriv, ns3::Ns3NscStack, ns3::ofi::Controller, ns3::PacketBurst, ns3::PcapFileWrapper, ns3::PositionAllocator, ns3::PriorityUlJob, ns3::PropagationDelayModel, ns3::PropagationLossModel, ns3::Queue, ns3::RadioEnvironmentMapHelper, ns3::RttEstimator, ns3::Scheduler, ns3::ServiceFlowManager, ns3::SimulatorImpl, ns3::Socket, ns3::SocketFactory, ns3::SpectrumErrorModel, ns3::SpectrumInterference, ns3::SpectrumPhy, ns3::SpectrumPropagationLossModel, ns3::SSLinkManager, ns3::SSManager, ns3::SSScheduler, ns3::Synchronizer, ns3::TcpRxBuffer, ns3::TcpTxBuffer, ns3::TopologyReader, ns3::UanMac, ns3::UanNoiseModel, ns3::UanPhy, ns3::UanPhyCalcSinr, ns3::UanPhyPer, ns3::UanPropModel, ns3::UanTransducer, ns3::UeInfo, ns3::UlJob, ns3::UplinkScheduler, ns3::WifiMac, ns3::WifiMacQueue, ns3::WifiPhy, ns3::WifiPhyStateHelper, ns3::WifiRemoteStationManager, ns3::WimaxConnection, ns3::WimaxMacQueue, and ns3::WimaxPhy.
Classes | |
class | AggregateIterator |
Iterate over the objects aggregated to an ns3::Object. More... | |
struct | Aggregates |
Public Member Functions | |
virtual TypeId | GetInstanceTypeId (void) const |
template<typename T > | |
Ptr< T > | GetObject (void) const |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
void | Dispose (void) |
void | AggregateObject (Ptr< Object > other) |
AggregateIterator | GetAggregateIterator (void) const |
void | Start (void) |
![]() | |
SimpleRefCount (const SimpleRefCount &o) | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
uint32_t | GetReferenceCount (void) const |
![]() | |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::Object. | |
![]() | |
static void | Cleanup (void) |
Protected Member Functions | |
virtual void | NotifyNewAggregate (void) |
virtual void | DoStart (void) |
virtual void | DoDispose (void) |
Object (const Object &o) |
Friends | |
class | ObjectFactory |
class | AggregateIterator |
struct | ObjectDeleter |
template<typename T > | |
Ptr< T > | CopyObject (Ptr< T > object) |
template<typename T > | |
Ptr< T > | CopyObject (Ptr< const T > object) |
template<typename T > | |
Ptr< T > | CompleteConstruct (T *object) |
a base class which provides memory management and object aggregation
The memory management scheme is based on reference-counting with dispose-like functionality to break the reference cycles. The reference count is increamented and decremented with the methods Object::Ref and Object::Unref. If a reference cycle is present, the user is responsible for breaking it by calling Object::Dispose in a single location. This will eventually trigger the invocation of Object::DoDispose on itself and all its aggregates. The Object::DoDispose method is always automatically invoked from the Object::Unref method before destroying the object, even if the user did not call Object::Dispose directly.
|
protected |
o | the object to copy. |
Allow subclasses to implement a copy constructor. While it is technically possible to implement a copy constructor in a subclass, we strongly discourage you to do so. If you really want to do it anyway, you have to understand that this copy constructor will not copy aggregated objects. i.e., if your object instance is already aggregated to another object and if you invoke this copy constructor, the new object instance will be a pristine standalone object instance not aggregated to any other object. It is thus your responsability as a caller of this method to do what needs to be done (if it is needed) to ensure that the object stays in a valid state.
other | another object pointer |
This method aggregates the two objects together: after this method returns, it becomes possible to call GetObject on one to get the other, and vice-versa.
This method calls the virtual method NotifyNewAggregates to notify all aggregated objects that they have been aggregated together.
References GetInstanceTypeId(), ns3::TypeId::GetName(), NotifyNewAggregate(), NS_ASSERT, and NS_FATAL_ERROR.
Referenced by ns3::PointToPointStarHelper::BoundingBox(), ns3::PointToPointGridHelper::BoundingBox(), ns3::PointToPointDumbbellHelper::BoundingBox(), ns3::AodvHelper::Create(), ns3::Ipv4GlobalRoutingHelper::Create(), ns3::Ipv4NixVectorHelper::Create(), ns3::DsdvHelper::Create(), ns3::DsrHelper::Create(), ns3::OlsrHelper::Create(), ns3::PacketSocketHelper::Install(), ns3::dot11s::PeerManagementProtocol::Install(), ns3::dot11s::HwmpProtocol::Install(), ns3::flame::FlameProtocol::Install(), ns3::PointToPointHelper::Install(), ns3::InternetStackHelper::Install(), ns3::MobilityHelper::Install(), ns3::Icmpv4L4Protocol::NotifyNewAggregate(), ns3::NscTcpL4Protocol::NotifyNewAggregate(), ns3::TcpL4Protocol::NotifyNewAggregate(), ns3::UdpL4Protocol::NotifyNewAggregate(), ns3::Ipv6L3Protocol::RegisterExtensions(), ns3::Ipv6L3Protocol::RegisterOptions(), and ns3::AnimationInterface::SetConstantPosition().
void ns3::Object::Dispose | ( | void | ) |
Run the DoDispose methods of this object and all the objects aggregated to it. After calling this method, the object is expected to be totally unusable except for the Ref and Unref methods.
Note that you can call Dispose many times on the same object or different objects aggregated together, and DoDispose will be called only once for each aggregated object.
This method is typically used to break reference cycles.
Note: the code here is a bit tricky because we need to protect ourselves from modifications in the aggregate array while DoDispose is called. The user's DoDispose implementation could call GetObject (which could reorder the array) and it could call AggregateObject which would add an object at the end of the array. So, to be safe, we restart the iteration over the array whenever we call some user code.
References DoDispose().
Referenced by ns3::LteEnbNetDevice::DoDispose(), ns3::EpcHelper::DoDispose(), ns3::LteUeNetDevice::DoDispose(), ns3::VisualSimulatorImpl::DoDispose(), ns3::ArpL3Protocol::DoDispose(), ns3::LteSpectrumPhy::DoDispose(), ns3::LtePhy::DoDispose(), ns3::Node::DoDispose(), ns3::RegularWifiMac::DoDispose(), ns3::WimaxNetDevice::DoDispose(), and ns3::Icmpv6L4Protocol::DoDispose().
|
protectedvirtual |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
It is safe to call GetObject from within this method.
Reimplemented in ns3::Socket, ns3::Ipv6ExtensionRoutingDemux, ns3::dsr::DsrRouting, ns3::Icmpv6L4Protocol, ns3::Ipv4StaticRouting, ns3::Ipv6L3Protocol, ns3::CsmaNetDevice, ns3::WimaxPhy, ns3::WifiRemoteStationManager, ns3::UanPhyDual, ns3::Ipv6ExtensionFragment, ns3::UanPhyGen, ns3::UanPropModel, ns3::Ipv6StaticRouting, ns3::Ipv6Interface, ns3::OpenFlowSwitchNetDevice, ns3::WimaxNetDevice, ns3::TapBridge, ns3::CounterCalculator< T >, ns3::CounterCalculator< uint32_t >, ns3::Ipv4GlobalRouting, ns3::Ipv4L3Protocol, ns3::RegularWifiMac, ns3::UanMacRc, ns3::Node, ns3::Ipv4Interface, ns3::LtePhy, ns3::UanMacRcGw, ns3::UanNetDevice, ns3::VirtualNetDevice, ns3::UdpL4Protocol, ns3::TcpL4Protocol, ns3::UdpEchoClient, ns3::UanMacCw, ns3::Application, ns3::BridgeNetDevice, ns3::Ipv6ListRouting, ns3::UanPhyPer, ns3::MeshPointDevice, ns3::LteEnbRrc, ns3::DataCalculator, ns3::OnOffApplication, ns3::UanChannel, ns3::MultiModelSpectrumChannel, ns3::SpectrumInterference, ns3::NscTcpL4Protocol, ns3::LteSpectrumPhy, ns3::SpectrumAnalyzer, ns3::Ping6, ns3::SimpleNetDevice, ns3::PacketSink, ns3::Ipv4ListRouting, ns3::Ipv6ExtensionDemux, ns3::Ipv6OptionDemux, ns3::flame::FlameProtocol, ns3::EdcaTxopN, ns3::BulkSendApplication, ns3::Radvd, ns3::ArpL3Protocol, ns3::UanMacAloha, ns3::SpectrumPropagationLossModel, ns3::RadioBearerStatsCalculator, ns3::PfFfMacScheduler, ns3::UdpServer, ns3::VisualSimulatorImpl, ns3::DataCollector, ns3::LoopbackNetDevice, ns3::UdpSocketFactoryImpl, ns3::UanPhyCalcSinr, ns3::LteUePhy, ns3::flame::FlameRtable, ns3::LteUeRrc, ns3::dot11s::HwmpRtable, ns3::UanTransducerHd, ns3::PacketSizeMinMaxAvgTotalCalculator, ns3::RrFfMacScheduler, ns3::dsdv::RoutingProtocol, ns3::LteUeNetDevice, ns3::UdpClient, ns3::LteEnbPhy, ns3::EpcHelper, ns3::SSScheduler, ns3::aodv::RoutingProtocol, ns3::LteEnbMac, ns3::ShannonSpectrumErrorModel, ns3::BandwidthManager, ns3::RemSpectrumPhy, ns3::LteHelper, ns3::LteEnbNetDevice, ns3::MinMaxAvgTotalCalculator< T >, ns3::MinMaxAvgTotalCalculator< uint32_t >, ns3::MinMaxAvgTotalCalculator< double >, ns3::FlameStack, ns3::LteNetDevice, ns3::SsServiceFlowManager, ns3::NscTcpSocketFactoryImpl, ns3::TcpSocketFactoryImpl, ns3::FfMacScheduler, ns3::LteInterference, ns3::dot11s::PeerManagementProtocol, ns3::ServiceFlowManager, ns3::EpcSgwPgwApplication, ns3::Dot11sStack, ns3::BsServiceFlowManager, ns3::dot11s::HwmpProtocol, ns3::dot11s::PeerLink, ns3::TimeMinMaxAvgTotalCalculator, ns3::UdpEchoServer, ns3::RadioEnvironmentMapHelper, ns3::ConnectionManager, ns3::LteUeMac, ns3::DataOutputInterface, ns3::SqliteDataOutput, ns3::SSLinkManager, ns3::OmnetDataOutput, ns3::PacketCounterCalculator, ns3::UanNoiseModel, ns3::Building, ns3::LteHexGridEnbTopologyHelper, and ns3::BurstProfileManager.
References NS_ASSERT.
Referenced by Dispose().
|
protectedvirtual |
This method is called only once by Object::Start. If the user calls Object::Start multiple times, DoStart 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.
Reimplemented in ns3::LteHelper, ns3::RegularWifiMac, ns3::Node, ns3::LteEnbNetDevice, ns3::olsr::RoutingProtocol, ns3::Application, ns3::Ipv4ListRouting, ns3::LteUeNetDevice, ns3::LteUePhy, ns3::LteEnbPhy, ns3::SteadyStateRandomWaypointMobilityModel, and ns3::RandomWaypointMobilityModel.
References NS_ASSERT.
Referenced by Start().
Object::AggregateIterator ns3::Object::GetAggregateIterator | ( | void | ) | const |
If no objects are aggregated to this object, then, the returned iterator will be empty and AggregateIterator::HasNext will always return false.
|
virtual |
This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.
Implements ns3::ObjectBase.
Reimplemented in ns3::dsr::DsrOptionAck, ns3::dsr::DsrOptionAckReq, ns3::dsr::DsrOptionRerr, ns3::dsr::DsrOptionSR, ns3::dsr::DsrOptionRrep, ns3::dsr::DsrOptionRreq, ns3::FlowMonitor, and ns3::Ns3NscStack.
Referenced by ns3::BridgeNetDevice::AddBridgePort(), ns3::Ipv4ListRouting::AddRoutingProtocol(), ns3::Ipv6ListRouting::AddRoutingProtocol(), AggregateObject(), ns3::cell_data_function_col_0(), ns3::cell_tooltip_callback(), and ns3::AnimationInterface::StartAnimation().
|
inline |
Referenced by ns3::EpcHelper::ActivateEpsBearer(), ns3::LteHelper::ActivateEpsBearer(), ns3::Ipv6Interface::AddAddress(), ns3::EpcHelper::AddEnb(), ns3::MeshPointDevice::AddInterface(), ns3::Ipv6StaticRoutingHelper::AddMulticastRoute(), ns3::Ipv4StaticRoutingHelper::AddMulticastRoute(), ns3::BsServiceFlowManager::AddMulticastServiceFlow(), ns3::Ipv6AddressHelper::Assign(), ns3::Ipv4AddressHelper::Assign(), ns3::LteHelper::Attach(), ns3::LteHelper::AttachToClosestEnb(), ns3::PointToPointStarHelper::BoundingBox(), ns3::PointToPointGridHelper::BoundingBox(), ns3::PointToPointDumbbellHelper::BoundingBox(), ns3::GlobalRouteManagerImpl::BuildGlobalRoutingDatabase(), ns3::Ipv4RawSocketImpl::Close(), ns3::Ipv6RawSocketImpl::Close(), ns3::DsrHelper::Create(), ns3::SpectrumPhyHelper::Create(), ns3::Socket::CreateSocket(), ns3::GlobalRouteManagerImpl::DeleteGlobalRoutes(), ns3::GlobalRouter::DiscoverLSAs(), ns3::Icmpv6L4Protocol::DoDAD(), ns3::dsr::DsrRouting::DoDispose(), ns3::LteHelper::DoStart(), ns3::PcapHelperForIpv4::EnablePcapIpv4(), ns3::PcapHelperForIpv6::EnablePcapIpv6(), ns3::Names::Find(), ns3::Ipv4NixVectorRouting::FlushGlobalNixRoutingCache(), ns3::LteUePhy::GenerateCqiReport(), ns3::PcapHelper::GetFilenameFromInterfacePair(), ns3::AsciiTraceHelper::GetFilenameFromInterfacePair(), ns3::Ipv6ExtensionFragment::GetFragments(), ns3::MeshWifiInterfaceMac::GetFrequencyChannel(), ns3::dsr::DsrRouting::GetIDfromIP(), ns3::dsr::DsrRouting::GetIPfromID(), ns3::dsr::DsrRouting::GetIPfromMAC(), ns3::SameRoomPositionAllocator::GetNext(), ns3::EpcHelper::GetUeDefaultGatewayAddress(), ns3::AcousticModemEnergyModel::HandleEnergyDepletion(), ns3::GlobalRouteManagerImpl::InitializeRoutes(), ns3::FlowMonitorHelper::Install(), ns3::RadioEnvironmentMapHelper::Install(), ns3::CsmaHelper::Install(), ns3::WaveformGeneratorHelper::Install(), ns3::InternetStackHelper::Install(), ns3::AdhocAlohaNoackIdealPhyHelper::Install(), ns3::SpectrumAnalyzerHelper::Install(), ns3::WifiHelper::Install(), ns3::MobilityHelper::Install(), ns3::UanHelper::Install(), ns3::FlowMonitorHelper::InstallAll(), ns3::aodv::RoutingProtocol::NotifyAddAddress(), ns3::dsdv::RoutingProtocol::NotifyAddAddress(), ns3::aodv::RoutingProtocol::NotifyInterfaceDown(), ns3::dsdv::RoutingProtocol::NotifyInterfaceDown(), ns3::aodv::RoutingProtocol::NotifyInterfaceUp(), ns3::dsdv::RoutingProtocol::NotifyInterfaceUp(), ns3::TcpL4Protocol::NotifyNewAggregate(), ns3::UdpL4Protocol::NotifyNewAggregate(), ns3::dsr::DsrRouting::NotifyNewAggregate(), ns3::aodv::RoutingProtocol::NotifyRemoveAddress(), ns3::dsdv::RoutingProtocol::NotifyRemoveAddress(), ns3::dsdv::RoutingProtocol::PrintRoutingTable(), ns3::aodv::RoutingProtocol::PrintRoutingTable(), ns3::Ipv4ListRouting::PrintRoutingTable(), ns3::Ipv6ListRouting::PrintRoutingTable(), ns3::Ipv6StaticRouting::PrintRoutingTable(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrOptionRrep::Process(), ns3::Ipv6ExtensionRouting::Process(), ns3::dsr::DsrOptionSR::Process(), ns3::dsr::DsrOptionRerr::Process(), ns3::Ipv6ExtensionLooseRouting::Process(), ns3::dsr::DsrOptionAckReq::Process(), ns3::dsr::DsrOptionAck::Process(), ns3::BsServiceFlowManager::ProcessDsaAck(), ns3::BsServiceFlowManager::ProcessDsaReq(), ns3::Ipv6Extension::ProcessOptions(), ns3::MobilityHelper::PushReferenceMobilityModel(), ns3::Ipv6L3Protocol::Receive(), ns3::Ipv4L3Protocol::Receive(), ns3::Icmpv6L4Protocol::Receive(), ns3::dsr::DsrRouting::Receive(), ns3::MpiInterface::ReceiveMessages(), ns3::Ipv6AutoconfiguredPrefix::RemoveMe(), ns3::Dot11sStack::Report(), ns3::FlameStack::Report(), ns3::MeshHelper::Report(), ns3::Dot11sStack::ResetStats(), ns3::FlameStack::ResetStats(), ns3::MeshHelper::ResetStats(), ns3::Ipv4ListRouting::RouteInput(), ns3::Ipv6ListRouting::RouteInput(), ns3::SimpleOfdmWimaxChannel::Send(), ns3::YansWifiChannel::Send(), ns3::TcpL4Protocol::Send(), ns3::Ipv4Interface::Send(), ns3::Ipv6L3Protocol::Send(), ns3::Ipv4L3Protocol::Send(), ns3::Ipv6Interface::Send(), ns3::Icmpv6L4Protocol::SendMessage(), ns3::Ipv4RawSocketImpl::SendTo(), ns3::Ipv6RawSocketImpl::SendTo(), ns3::AnimationInterface::SetConstantPosition(), ns3::Ipv4StaticRoutingHelper::SetDefaultMulticastRoute(), ns3::MobilityHelper::SetPositionAllocator(), ns3::LteHexGridEnbTopologyHelper::SetPositionAndInstallEnbDevice(), ns3::WimaxHelper::SetPropagationLossModel(), ns3::TcpSocketBase::SetupEndpoint(), ns3::LteUeRrc::SetupRadioBearer(), ns3::LteEnbRrc::SetupRadioBearer(), ns3::LteUePhy::SubframeIndication(), ns3::MeshWifiInterfaceMac::SwitchFrequencyChannel(), and ns3::UanChannel::TxPacket().
tid | the interface id of the requested interface |
|
static |
This method returns the TypeId associated to ns3::Object.
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::ObjectBase.
Reimplemented in ns3::dsr::DsrOptionAck, ns3::Ipv6ExtensionAH, ns3::dsr::DsrOptionAckReq, ns3::GlobalRouter, ns3::Ipv6ExtensionESP, ns3::RangePropagationLossModel, ns3::Ipv6ExtensionLooseRouting, ns3::dsr::DsrOptionRerr, ns3::MatrixPropagationLossModel, ns3::FixedRssLossModel, ns3::ofi::LearningController, ns3::Ipv6ExtensionRoutingDemux, ns3::dsr::DsrOptionSR, ns3::NakagamiPropagationLossModel, ns3::Ipv6ExtensionRouting, ns3::ThreeLogDistancePropagationLossModel, ns3::dsr::DsrOptionRrep, ns3::ofi::Controller, ns3::dsr::DsrOptionRreq, ns3::LogDistancePropagationLossModel, ns3::dsr::RouteCache, ns3::dsr::DsrOptionPadn, ns3::ReceiveListErrorModel, ns3::Ipv6OptionRouterAlert, ns3::UniformDiscPositionAllocator, ns3::dsr::DsrOptionPad1, ns3::ListErrorModel, ns3::TwoRayGroundPropagationLossModel, ns3::Ipv6ExtensionFragment, ns3::UanPropModel, ns3::RandomDiscPositionAllocator, ns3::Ipv6OptionJumbogram, ns3::RandomBoxPositionAllocator, ns3::Ipv6ExtensionDestination, ns3::RandomRectanglePositionAllocator, ns3::UanPhyGen, ns3::UanPhy, ns3::RateErrorModel, ns3::RttMeanDeviation, ns3::WifiPhy, ns3::WifiRadioEnergyModel, ns3::Ipv6OptionPadn, ns3::LteRlcSm, ns3::FriisPropagationLossModel, ns3::UanMacRc, ns3::TopologyReader, ns3::UanPhyCalcSinrFhFsk, ns3::Ipv6ExtensionHopByHop, ns3::FlowMonitor, ns3::UanTransducer, ns3::LteEnbRrc, ns3::ErrorModel, ns3::Ipv6OptionPad1, ns3::TapBridge, ns3::UanPhyPer, ns3::dsr::DsrRouting, ns3::SameRoomPositionAllocator, ns3::UanPhyCalcSinrDefault, ns3::dsr::RreqTable, ns3::LteSpectrumPhy, ns3::DistributedSimulatorImpl, ns3::RandomPropagationLossModel, ns3::HalfDuplexIdealPhy, ns3::MinstrelWifiManager, ns3::OnOffApplication, ns3::OpenFlowSwitchNetDevice, ns3::MultiModelSpectrumChannel, ns3::WaypointMobilityModel, ns3::RedQueue, ns3::AthstatsWifiTraceSink, ns3::WifiRemoteStationManager, ns3::flame::FlameProtocol, ns3::GaussMarkovMobilityModel, ns3::EdcaTxopN, ns3::Ipv6, ns3::WimaxNetDevice, ns3::dsr::DsrOptions, ns3::PacketSocket, ns3::olsr::RoutingProtocol, ns3::ConstantSpeedPropagationDelayModel, ns3::Ipv4L3Protocol, ns3::CsmaChannel, ns3::UeInfo, ns3::GridPositionAllocator, ns3::Ipv4, ns3::PfFfMacScheduler, ns3::NetDevice, ns3::UanPhyDual, ns3::RadioBearerStatsCalculator, ns3::UplinkSchedulerMBQoS, ns3::LiIonEnergySource, ns3::EnergySource, ns3::dsr::GraReply, ns3::Ipv4GlobalRouting, ns3::Ipv4StaticRouting, ns3::PacketSink, ns3::Ipv6RawSocketImpl, ns3::LteUeRrc, ns3::DcaTxop, ns3::Ipv6RawSocketFactory, ns3::BridgeNetDevice, ns3::LtePhy, ns3::LteUePhy, ns3::RandomRoomPositionAllocator, ns3::flame::FlameRtable, ns3::Socket, ns3::AlohaNoackNetDevice, ns3::VirtualNetDevice, ns3::RrFfMacScheduler, ns3::UanMacRcGw, ns3::YansWifiPhy, ns3::Ipv6L3Protocol, ns3::TcpSocket, ns3::dot11s::HwmpRtable, ns3::UanPhyPerUmodem, ns3::BSSchedulerRtps, ns3::SubscriberStationNetDevice, ns3::Application, ns3::WimaxPhy, ns3::TcpSocketBase, ns3::BaseStationNetDevice, ns3::CsmaNetDevice, ns3::Ipv6StaticRouting, ns3::EpcHelper, ns3::LteEnbPhy, ns3::PointToPointNetDevice, ns3::RandomPropagationDelayModel, ns3::AcousticModemEnergyModel, ns3::HybridBuildingsPropagationLossModel, ns3::RttEstimator, ns3::MacStatsCalculator, ns3::RemSpectrumPhy, ns3::HierarchicalMobilityModel, ns3::UanNetDevice, ns3::UplinkSchedulerRtps, ns3::ListPositionAllocator, ns3::Ipv4NixVectorRouting, ns3::WaveformGenerator, ns3::BuildingsPropagationLossModel, ns3::TcpL4Protocol, ns3::Node, ns3::YansErrorRateModel, ns3::IpL4Protocol, ns3::Ipv6RoutingProtocol, ns3::LteHelper, ns3::LteEnbMac, ns3::LteRlc, ns3::MeshWifiInterfaceMac, ns3::NonCommunicatingNetDevice, ns3::BandwidthManager, ns3::Scheduler, ns3::dsdv::RoutingProtocol, ns3::ArpCache, ns3::Ipv6Interface, ns3::NscTcpSocketImpl, ns3::UanChannel, ns3::aodv::RoutingProtocol, ns3::NdiscCache, ns3::FfMacScheduler, ns3::SteadyStateRandomWaypointMobilityModel, ns3::JakesProcess, ns3::SpectrumAnalyzer, ns3::WifiMacQueue, ns3::BulkSendApplication, ns3::EmuNetDevice, ns3::Ipv6ListRouting, ns3::Cost231PropagationLossModel, ns3::WifiNetDevice, ns3::SimpleOfdmWimaxPhy, ns3::AntennaModel, ns3::Radvd, ns3::DeviceEnergyModel, ns3::RvBatteryModel, ns3::Ipv4RoutingProtocol, ns3::Ipv6Extension, ns3::UdpSocketImpl, ns3::LteEnbNetDevice, ns3::LteInterference, ns3::LteUeNetDevice, ns3::dot11s::PeerManagementProtocol, ns3::MeshPointDevice, ns3::RegularWifiMac, ns3::Ping6, ns3::GridBuildingAllocator, ns3::Ipv4Interface, ns3::Ipv6Option, ns3::EpcSgwPgwApplication, ns3::PropagationLossModel, ns3::SpectrumPhy, ns3::YansWifiChannel, ns3::ArpL3Protocol, ns3::RadioEnvironmentMapHelper, ns3::LteNetDevice, ns3::SocketFactory, ns3::UanNoiseModelDefault, ns3::ParabolicAntennaModel, ns3::BuildingsMobilityModel, ns3::CalendarScheduler, ns3::HeapScheduler, ns3::EnergySourceContainer, ns3::Icmpv6L4Protocol, ns3::UdpL4Protocol, ns3::TraceFadingLossModel, ns3::PointToPointChannel, ns3::SpectrumChannel, ns3::SpectrumPropagationLossModel, ns3::InetTopologyReader, ns3::UanMac, ns3::BSSchedulerSimple, ns3::BSScheduler, ns3::ServiceFlowManager, ns3::NscTcpL4Protocol, ns3::TcpSocketFactory, ns3::UdpSocket, ns3::EpcEnbApplication, ns3::dot11s::HwmpProtocol, ns3::RandomWalk2dMobilityModel, ns3::OkumuraHataPropagationLossModel, ns3::UanMacCw, ns3::UplinkScheduler, ns3::CosineAntennaModel, ns3::UdpServer, ns3::Ipv4ListRouting, ns3::dot11s::PeerLink, ns3::MeshL2RoutingProtocol, ns3::RandomWaypointMobilityModel, ns3::Queue, ns3::SimpleNetDevice, ns3::ItuR1411LosPropagationLossModel, ns3::ItuR1411NlosOverRooftopPropagationLossModel, ns3::UanPhyCalcSinrDual, ns3::IdealWifiManager, ns3::UdpClient, ns3::Synchronizer, ns3::LteAmc, ns3::RandomDirection2dMobilityModel, ns3::Kun2600MhzPropagationLossModel, ns3::OrbisTopologyReader, ns3::UanMacAloha, ns3::UanPhyCalcSinr, ns3::VisualSimulatorImpl, ns3::WifiMac, ns3::UplinkSchedulerSimple, ns3::ConnectionManager, ns3::UdpEchoServer, ns3::Channel, ns3::SingleModelSpectrumChannel, ns3::RocketfuelTopologyReader, ns3::UanPhyPerGenDefault, ns3::StaWifiMac, ns3::Ipv6ExtensionDemux, ns3::Ipv6OptionDemux, ns3::TcpTahoe, ns3::LteUeMac, ns3::dot11s::AirtimeLinkMetricCalculator, ns3::MpiReceiver, ns3::ArfWifiManager, ns3::MsduAggregator, ns3::WifiChannel, ns3::LtePdcp, ns3::FriisSpectrumPropagationLossModel, ns3::OnoeWifiManager, ns3::SSLinkManager, ns3::SSScheduler, ns3::WimaxConnection, ns3::RandomBuildingPositionAllocator, ns3::OhBuildingsPropagationLossModel, ns3::ListScheduler, ns3::TcpRxBuffer, ns3::TcpTxBuffer, ns3::UdpSocketFactory, ns3::LteStatsCalculator, ns3::UdpEchoClient, ns3::Building, ns3::TcpRfc793, ns3::LteHexGridEnbTopologyHelper, ns3::MobilityModel, ns3::PcapFileWrapper, ns3::AmrrWifiManager, ns3::ApWifiMac, ns3::RraaWifiManager, ns3::WimaxChannel, ns3::IsotropicAntennaModel, ns3::ItuR1238PropagationLossModel, ns3::MapScheduler, ns3::RealtimeSimulatorImpl, ns3::LoopbackNetDevice, ns3::TcpReno, ns3::LteRlcAm, ns3::UanPropModelIdeal, ns3::AarfcdWifiManager, ns3::CaraWifiManager, ns3::NistErrorRateModel, ns3::BSLinkManager, ns3::BasicEnergySource, ns3::Ipv4RawSocketFactory, ns3::LteRadioBearerInfo, ns3::LteRlcUm, ns3::FlameStack, ns3::PropagationDelayModel, ns3::UanPropModelThorp, ns3::UanTransducerHd, ns3::BurstProfileManager, ns3::IpcsClassifier, ns3::SSManager, ns3::WimaxMacQueue, ns3::V4Ping, ns3::BridgeChannel, ns3::DefaultSimulatorImpl, ns3::TcpNewReno, ns3::SimpleChannel, ns3::JakesPropagationLossModel, ns3::AarfWifiManager, ns3::AdhocWifiMac, ns3::ConstantRateWifiManager, ns3::SimulatorImpl, ns3::ConstantVelocityMobilityModel, ns3::PositionAllocator, ns3::PacketBurst, ns3::PacketSocketFactory, ns3::PointToPointRemoteChannel, ns3::WifiPhyStateHelper, ns3::Dot11sStack, ns3::DropTailQueue, ns3::ErrorRateModel, ns3::ConstantPositionMobilityModel, ns3::ConstantSpectrumPropagationLossModel, ns3::Dcf, ns3::MsduStandardAggregator, ns3::Ns3NscStack, ns3::ConstantAccelerationMobilityModel, ns3::UanNoiseModel, ns3::SimpleDeviceEnergyModel, ns3::Ipv4RawSocketImpl, and ns3::Icmpv4L4Protocol.
References ns3::TypeId::SetParent().
|
protectedvirtual |
This method is invoked whenever two sets of objects are aggregated together. It is invoked exactly once for each object in both sets. This method can be overriden by subclasses who wish to be notified of aggregation events. These subclasses must chain up to their base class NotifyNewAggregate method. It is safe to call GetObject and AggregateObject from within this method.
This function must be implemented in the stack that needs to notify other stacks connected to the node of their presence in the node.
Reimplemented in ns3::dsr::DsrRouting, ns3::Ipv6L3Protocol, ns3::Ipv4L3Protocol, ns3::Icmpv6L4Protocol, ns3::UdpL4Protocol, ns3::TcpL4Protocol, ns3::NscTcpL4Protocol, ns3::ArpL3Protocol, and ns3::Icmpv4L4Protocol.
Referenced by AggregateObject().
void ns3::Object::Start | ( | void | ) |
This method calls the virtual DoStart method on all the objects aggregated to this object. DoStart will be called only once over the lifetime of an object, just like DoDispose is called only once.
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 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.
Reimplemented in ns3::SubscriberStationNetDevice, ns3::BaseStationNetDevice, ns3::WimaxNetDevice, ns3::LteRlcSm, ns3::WaveformGenerator, ns3::SpectrumAnalyzer, ns3::LteRlcAm, ns3::LteRlcUm, and ns3::LtePdcp.
References DoStart().
Referenced by ns3::Node::AddApplication(), ns3::Node::AddDevice(), ns3::LteHelper::Attach(), ns3::Ipv4ListRouting::DoStart(), ns3::LteUeNetDevice::DoStart(), ns3::LteEnbNetDevice::DoStart(), ns3::Node::DoStart(), ns3::RegularWifiMac::DoStart(), ns3::EmuNetDevice::EmuNetDevice(), ns3::FlowMonitor::GetTypeId(), and ns3::LteHelper::InstallEnbDevice().
object | a pointer to the object to copy. |
This method invoke the copy constructor of the input object and returns the new instance.
object | a pointer to the object to copy. |
This method invoke the copy constructor of the input object and returns the new instance.