NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
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:113
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-app-link-service.cpp:32
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:101
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::FailLink
static void FailLink(Ptr< Node > node1, Ptr< Node > node2)
Fail NDN link between two nodes.
Definition:
ndn-link-control-helper.cpp:95
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:107
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndnSIM
helper
ndn-link-control-helper.hpp
Generated on Mon Jun 1 2020 22:32:14 for ndnSIM by
1.8.18