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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ndn-link-control-helper.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDN_LINK_CONTROL_HELPER_H
21
#define NDN_LINK_CONTROL_HELPER_H
22
23
#include "ns3/ndnSIM/model/ndn-common.hpp"
24
25
#include "ns3/ptr.h"
26
#include "ns3/node.h"
27
28
namespace
ns3 {
29
namespace
ndn {
30
36
class
LinkControlHelper
{
37
public
:
49
static
void
50
FailLink
(Ptr<Node> node1, Ptr<Node> node2);
51
65
static
void
66
FailLinkByName
(
const
std::string& node1,
const
std::string& node2);
67
79
static
void
80
UpLink
(Ptr<Node> node1, Ptr<Node> node2);
81
95
static
void
96
UpLinkByName
(
const
std::string& node1,
const
std::string& node2);
97
98
private
:
99
static
void
100
setErrorRate(Ptr<Node> node1, Ptr<Node> node2,
double
errorRate);
101
};
// LinkControlHelper
102
103
}
// ndn
104
}
// ns3
105
106
#endif // NDN_LINK_CONTROL_HELPER_H
ns3::ndn::LinkControlHelper::UpLinkByName
static void UpLinkByName(const std::string &node1, const std::string &node2)
Re-enable NDN link between two nodes.
Definition:
ndn-link-control-helper.cpp:108
ns3::ndn::LinkControlHelper::UpLink
static void UpLink(Ptr< Node > node1, Ptr< Node > node2)
Re-enable NDN link between two nodes.
Definition:
ndn-link-control-helper.cpp:102
ns3::ndn::LinkControlHelper::FailLink
static void FailLink(Ptr< Node > node1, Ptr< Node > node2)
Fail NDN link between two nodes.
Definition:
ndn-link-control-helper.cpp:90
ns3::ndn::LinkControlHelper
Helper class to control the up or down statuss of an NDN link connecting two specific nodes...
Definition:
ndn-link-control-helper.hpp:36
ns3::ndn::LinkControlHelper::FailLinkByName
static void FailLinkByName(const std::string &node1, const std::string &node2)
Fail NDN link between two nodes.
Definition:
ndn-link-control-helper.cpp:96
ndnSIM
helper
ndn-link-control-helper.hpp
Generated on Wed Feb 18 2015 16:31:16 for ndnSIM by
1.8.7