NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ns3::ndn::StrategyChoiceHelper Class Reference

NFD Strategy Choice Helper (FIB) helper. More...

#include <ndn-strategy-choice-helper.hpp>

Static Public Member Functions

static void Install (Ptr< Node > node, const Name &namePrefix, const Name &strategy)
 Install a built-in strategy strategy on node for namePrefix namespace. More...
 
static void Install (const NodeContainer &c, const Name &namePrefix, const Name &strategy)
 Install a built-in strategy strategy on nodes in c container for namePrefix namespace. More...
 
static void InstallAll (const Name &namePrefix, const Name &strategy)
 Install a built-in strategy strategy on all nodes for namePrefix namespace. More...
 
template<class Strategy >
static void Install (Ptr< Node > node, const Name &namePrefix)
 Install a custom strategy on node for namePrefix namespace. More...
 
template<class Strategy >
static void Install (const NodeContainer &c, const Name &namePrefix)
 Install a custom strategy on nodes in c container for namePrefix namespace. More...
 
template<class Strategy >
static void InstallAll (const Name &namePrefix)
 Install a custom strategy on all nodes for namePrefix namespace. More...
 

Detailed Description

NFD Strategy Choice Helper (FIB) helper.

The Strategy Choice helper interacts with the Strategy Choice manager of NFD by sending special Interest commands to the manager in order to specify the desired per-name prefix forwarding strategy for one, more or all the nodes of a topology.

Definition at line 60 of file ndn-strategy-choice-helper.hpp.

Member Function Documentation

void ns3::ndn::StrategyChoiceHelper::Install ( Ptr< Node >  node,
const Name namePrefix,
const Name strategy 
)
static

Install a built-in strategy strategy on node for namePrefix namespace.

Definition at line 58 of file ndn-strategy-choice-helper.cpp.

References ndn::tlv::nfd::ControlParameters.

Referenced by Install(), and InstallAll().

void ns3::ndn::StrategyChoiceHelper::Install ( const NodeContainer &  c,
const Name namePrefix,
const Name strategy 
)
static

Install a built-in strategy strategy on nodes in c container for namePrefix namespace.

Definition at line 50 of file ndn-strategy-choice-helper.cpp.

References Install().

void ns3::ndn::StrategyChoiceHelper::InstallAll ( const Name namePrefix,
const Name strategy 
)
static

Install a built-in strategy strategy on all nodes for namePrefix namespace.

Definition at line 68 of file ndn-strategy-choice-helper.cpp.

References Install().

template<class Strategy >
void ns3::ndn::StrategyChoiceHelper::Install ( Ptr< Node >  node,
const Name namePrefix 
)
inlinestatic

Install a custom strategy on node for namePrefix namespace.

Template Parameters
StrategyClass name of the custom strategy

Definition at line 113 of file ndn-strategy-choice-helper.hpp.

References nfd::StrategyChoice::hasStrategy(), and nfd::StrategyChoice::install().

template<class Strategy >
void ns3::ndn::StrategyChoiceHelper::Install ( const NodeContainer &  c,
const Name namePrefix 
)
inlinestatic

Install a custom strategy on nodes in c container for namePrefix namespace.

Template Parameters
StrategyClass name of the custom strategy

Definition at line 131 of file ndn-strategy-choice-helper.hpp.

template<class Strategy >
void ns3::ndn::StrategyChoiceHelper::InstallAll ( const Name namePrefix)
inlinestatic

Install a custom strategy on all nodes for namePrefix namespace.

Template Parameters
StrategyClass name of the custom strategy

Definition at line 140 of file ndn-strategy-choice-helper.hpp.


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