NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ns3::ndn::AppHelper Class Reference

A helper to make it easier to instantiate an ns3::NdnConsumer Application on a set of nodes. More...

#include <ndn-app-helper.h>

Public Member Functions

 AppHelper (const std::string &prefix)
 Create an NdnAppHelper to make it easier to work with Ndn apps. More...
 
void SetPrefix (const std::string &prefix)
 Set the prefix consumer will be requesting.
 
void SetAttribute (std::string name, const AttributeValue &value)
 Helper function used to set the underlying application attributes. More...
 
ApplicationContainer Install (NodeContainer c)
 Install an ns3::NdnConsumer on each node of the input container configured with all the attributes set with SetAttribute. More...
 
ApplicationContainer Install (Ptr< Node > node)
 Install an ns3::NdnConsumer on the node configured with all the attributes set with SetAttribute. More...
 
ApplicationContainer Install (std::string nodeName)
 Install an ns3::NdnConsumer on the node configured with all the attributes set with SetAttribute. More...
 

Detailed Description

A helper to make it easier to instantiate an ns3::NdnConsumer Application on a set of nodes.

Definition at line 38 of file ndn-app-helper.h.

Constructor & Destructor Documentation

ns3::ndn::AppHelper::AppHelper ( const std::string &  prefix)

Create an NdnAppHelper to make it easier to work with Ndn apps.

Parameters
appClass of the application

Definition at line 36 of file ndn-app-helper.cc.

Member Function Documentation

ApplicationContainer ns3::ndn::AppHelper::Install ( NodeContainer  c)

Install an ns3::NdnConsumer on each node of the input container configured with all the attributes set with SetAttribute.

Parameters
cNodeContainer of the set of nodes on which an NdnConsumer will be installed.
Returns
Container of Ptr to the applications installed.

Definition at line 72 of file ndn-app-helper.cc.

Referenced by Install().

ApplicationContainer ns3::ndn::AppHelper::Install ( Ptr< Node >  node)

Install an ns3::NdnConsumer on the node configured with all the attributes set with SetAttribute.

Parameters
nodeThe node on which an NdnConsumer will be installed.
Returns
Container of Ptr to the applications installed.

Definition at line 54 of file ndn-app-helper.cc.

ApplicationContainer ns3::ndn::AppHelper::Install ( std::string  nodeName)

Install an ns3::NdnConsumer on the node configured with all the attributes set with SetAttribute.

Parameters
nodeNameThe node on which an NdnConsumer will be installed.
Returns
Container of Ptr to the applications installed.

Definition at line 65 of file ndn-app-helper.cc.

References Install().

void ns3::ndn::AppHelper::SetAttribute ( std::string  name,
const AttributeValue &  value 
)

Helper function used to set the underlying application attributes.

Parameters
namethe name of the application attribute to set
valuethe value of the application attribute to set

Definition at line 48 of file ndn-app-helper.cc.


The documentation for this class was generated from the following files: