NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ndn-global-routing-helper.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDN_GLOBAL_ROUTING_HELPER_H
21
#define NDN_GLOBAL_ROUTING_HELPER_H
22
23
#include "ns3/ndnSIM/model/ndn-common.hpp"
24
25
#include "ns3/ptr.h"
26
27
namespace
ns3
{
28
29
class
Node;
30
class
NodeContainer;
31
class
Channel;
32
33
namespace
ndn
{
34
39
class
GlobalRoutingHelper
{
40
public
:
48
void
49
Install
(Ptr<Node> node);
50
58
void
59
Install
(
const
NodeContainer& nodes);
60
64
void
65
InstallAll
();
66
72
void
73
AddOrigin
(
const
std::string& prefix, Ptr<Node> node);
74
80
void
81
AddOrigins
(
const
std::string& prefix,
const
NodeContainer& nodes);
82
88
void
89
AddOrigin
(
const
std::string& prefix,
const
std::string& nodeName);
90
94
void
95
AddOriginsForAll
();
96
100
static
void
101
CalculateRoutes
();
102
111
static
void
112
CalculateAllPossibleRoutes
();
113
114
private
:
115
void
116
Install
(Ptr<Channel> channel);
117
};
118
119
}
// namespace ndn
120
}
// namespace ns3
121
122
#endif // NDN_GLOBAL_ROUTING_HELPER_H
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ns3::ndn::GlobalRoutingHelper::AddOriginsForAll
void AddOriginsForAll()
Add origin to each node based on the node's name (using Names class)
Definition:
ndn-global-routing-helper.cpp:205
ns3::ndn::GlobalRoutingHelper::AddOrigins
void AddOrigins(const std::string &prefix, const NodeContainer &nodes)
Add `prefix' as origin on all `nodes'.
Definition:
ndn-global-routing-helper.cpp:188
ns3::ndn::GlobalRoutingHelper
Helper for GlobalRouter interface.
Definition:
ndn-global-routing-helper.hpp:39
ns3::ndn::GlobalRoutingHelper::InstallAll
void InstallAll()
Install GlobalRouter interface on all nodes.
Definition:
ndn-global-routing-helper.cpp:172
ns3::ndn::GlobalRoutingHelper::CalculateAllPossibleRoutes
static void CalculateAllPossibleRoutes()
Calculate all possible next-hop independent alternative routes.
Definition:
ndn-global-routing-helper.cpp:283
ns3::ndn::GlobalRoutingHelper::CalculateRoutes
static void CalculateRoutes()
Calculate for every node shortest path trees and install routes to all prefix origins.
Definition:
ndn-global-routing-helper.cpp:218
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ns3::ndn::GlobalRoutingHelper::AddOrigin
void AddOrigin(const std::string &prefix, Ptr< Node > node)
Add `prefix' as origin on `node'.
Definition:
ndn-global-routing-helper.cpp:178
ns3::ndn::GlobalRoutingHelper::Install
void Install(Ptr< Node > node)
Install GlobalRouter interface on a node.
Definition:
ndn-global-routing-helper.cpp:67
ndnSIM
helper
ndn-global-routing-helper.hpp
Generated on Tue Feb 23 2016 22:18:42 for ndnSIM by
1.8.11