<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div>In a scenario where an application instance is installed on the nodes, what is the way to retrieve that application instance from the node?<br><br></div><div>In my requirement, I want to set some parameters into my application object, which is not possible at the time it is installed on the node. Perhaps they all do not use the parametrized constructor (I am talking about the classes in ns-3/src/ndnSIM/apps path). <br></div><div><br>In an example below:<br><div style="margin-left:40px"> 80   ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");<br> 83   consumerHelper.Install(consumerNodes);<br></div><br></div>I want to retrieve back the instance of "ns3::ndn::ConsumerCbr" from the consumerNodes object. <br><br></div>I checked the API in bit details, the ndn-app-helper has this code:<br><div style="margin-left:40px">119   Ptr<Application> app = m_factory.Create<Application>();<br>120   node->AddApplication(app);<br></div><br></div>The node interface also provides an API GetApplication, but it returns Application instance:<br><div style="margin-left:40px">160 Ptr<Application><br>161 Node::GetApplication (uint32_t index) const<br></div><br></div>How to convert it from ns3::Application to ns3::ndn::ConsumerCbr? Perhaps this is simple type casting operation, but just want to confirm it. <br><br></div><div>Any other suggestion to achieve the same (i.e. updating the application instance installed on the node) is also fine with me.<br><br></div></div>/anil.<br><br><div><div><div><div><br></div></div></div></div></div>