NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
ndn-app-helper.h
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 University of California, Los Angeles
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Ilya Moiseenko <iliamo@cs.ucla.edu>
19
*/
20
21
#ifndef NDN_APP_HELPER_H
22
#define NDN_APP_HELPER_H
23
24
#include "ns3/object-factory.h"
25
#include "ns3/attribute.h"
26
#include "ns3/node-container.h"
27
#include "ns3/application-container.h"
28
#include "ns3/ptr.h"
29
30
namespace
ns3 {
31
namespace
ndn {
32
38
class
AppHelper
39
{
40
public
:
41
47
AppHelper
(
const
std::string &prefix);
48
52
void
53
SetPrefix
(
const
std::string &prefix);
54
61
void
SetAttribute
(std::string name,
const
AttributeValue &value);
62
71
ApplicationContainer
Install
(NodeContainer c);
72
80
ApplicationContainer
Install
(Ptr<Node> node);
81
89
ApplicationContainer
Install
(std::string nodeName);
90
91
private
:
100
Ptr<Application> InstallPriv (Ptr<Node> node);
101
ObjectFactory m_factory;
102
};
103
104
}
// namespace ndn
105
}
// namespace ns3
106
107
#endif // NDN_APP_HELPER_H
108
ns3::ndn::AppHelper::SetAttribute
void SetAttribute(std::string name, const AttributeValue &value)
Helper function used to set the underlying application attributes.
Definition:
ndn-app-helper.cc:48
ns3::ndn::AppHelper::AppHelper
AppHelper(const std::string &prefix)
Create an NdnAppHelper to make it easier to work with Ndn apps.
Definition:
ndn-app-helper.cc:36
ns3::ndn::AppHelper::Install
ApplicationContainer Install(NodeContainer c)
Install an ns3::NdnConsumer on each node of the input container configured with all the attributes se...
Definition:
ndn-app-helper.cc:72
ns3::ndn::AppHelper::SetPrefix
void SetPrefix(const std::string &prefix)
Set the prefix consumer will be requesting.
Definition:
ndn-app-helper.cc:42
ns3::ndn::AppHelper
A helper to make it easier to instantiate an ns3::NdnConsumer Application on a set of nodes...
Definition:
ndn-app-helper.h:38
ndnSIM
helper
ndn-app-helper.h
Generated on Mon Jan 19 2015 11:27:03 for ndnSIM by
1.8.7