![]() Since Applications arealso Objects, this causes Application::DoInitialize to becalled. Since the Node Object has overriddenDoInitialize, that method is called when the simulation starts.The Node::DoInitialize method calls the Initialize methods ofall of the Applications on the node. ![]() Since a Nodeinherits from Object, this calls the Object::Initialize methodon the Node which, in turn, calls the DoInitialize methods onall of the Objects aggregated to the Node (think mobilitymodels). The act of adding a Node to thisNodeList causes a simulator event to be scheduled for time zerowhich calls the Node::Initialize method of the newly addedNode to be called when the simulation starts. When a Node is created in the simulation, it isadded to a global NodeList. You override theStartApplication and StopApplication methods and providemechanisms for starting and stopping the flow of data out of your newApplication. If you have kept itall straight, when you implement an ns-3 Application, your newapplication inherits from class Application. Here, we finally come to the end of the trail.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |