23 #include "ns3/ndnSIM/model/ndn-common.hpp" 
   24 #include "ns3/ndnSIM/model/ndn-app-face.hpp" 
   26 #include "ns3/application.h" 
   28 #include "ns3/callback.h" 
   29 #include "ns3/traced-callback.h" 
   47 class App : 
public Application {
 
   72   OnInterest(shared_ptr<const Interest> interest);
 
   81   OnData(shared_ptr<const Data> data);
 
  104   TracedCallback<shared_ptr<const Interest>, Ptr<App>, shared_ptr<Face>>
 
  107   TracedCallback<shared_ptr<const Data>, Ptr<App>, shared_ptr<Face>>
 
  110   TracedCallback<shared_ptr<const Interest>, Ptr<App>, shared_ptr<Face>>
 
  113   TracedCallback<shared_ptr<const Data>, Ptr<App>, shared_ptr<Face>>
 
virtual void StopApplication()
Called at time specified by Stop. 
 
virtual void StartApplication()
Called at time specified by Start. 
 
TracedCallback< shared_ptr< const Interest >, Ptr< App >, shared_ptr< Face > > m_receivedInterests
communicates 
 
static TypeId GetTypeId()
 
virtual void OnInterest(shared_ptr< const Interest > interest)
Method that will be called every time new Interest arrives. 
 
virtual void DoDispose()
Do cleanup when application is destroyed. 
 
TracedCallback< shared_ptr< const Interest >, Ptr< App >, shared_ptr< Face > > m_transmittedInterests
App-level trace of transmitted Interests. 
 
shared_ptr< Face > m_face
and StopApplication) 
 
TracedCallback< shared_ptr< const Data >, Ptr< App >, shared_ptr< Face > > m_transmittedDatas
App-level trace of transmitted Data. 
 
Base class that all NDN applications should be derived from. 
 
App()
Default constructor. 
 
TracedCallback< shared_ptr< const Data >, Ptr< App >, shared_ptr< Face > > m_receivedDatas
App-level trace of received Data. 
 
bool m_active
Flag to indicate that application is active (set by StartApplication. 
 
virtual void OnData(shared_ptr< const Data > data)
Method that will be called every time new Data arrives. 
 
uint32_t GetId() const 
Get application ID (ID of applications face)