A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
forwarder-helper.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 University of Padova
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Davide Magrin <magrinda@dei.unipd.it>
7
*/
8
9
#ifndef FORWARDER_HELPER_H
10
#define FORWARDER_HELPER_H
11
12
#include "ns3/application-container.h"
13
#include "ns3/node-container.h"
14
#include "ns3/object-factory.h"
15
16
namespace
ns3
17
{
18
namespace
lorawan
19
{
20
21
/**
22
* @ingroup lorawan
23
*
24
* This class can be used to install Forwarder applications on a set of gateways.
25
*/
26
class
ForwarderHelper
27
{
28
public
:
29
ForwarderHelper
();
//!< Default constructor
30
~ForwarderHelper
();
//!< Destructor
31
32
/**
33
* Helper function used to set the underlying application attributes.
34
*
35
* @param name The name of the application attribute to set.
36
* @param value The value of the application attribute to set.
37
*/
38
void
SetAttribute
(std::string name,
const
AttributeValue
& value);
39
40
/**
41
* Install a Forwarder application on each node of the input container configured with
42
* all the attributes set with SetAttribute or other functions of this class.
43
*
44
* @param c NodeContainer of the set of nodes on which an Forwarder will be installed.
45
* @return Container of Ptr to the applications installed.
46
*/
47
ApplicationContainer
Install
(
NodeContainer
c)
const
;
48
49
/**
50
* Install a Forwarder application on the input Node configured with all the attributes
51
* set with SetAttribute or other functions of this class.
52
*
53
* @param node The node on which a Forwarder will be installed.
54
* @return Container of the Ptr to the application installed.
55
*/
56
ApplicationContainer
Install
(
Ptr<Node>
node)
const
;
57
58
private
:
59
/**
60
* Install a Forwarder application on the input Node configured with all the attributes
61
* set with SetAttribute or other functions of this class.
62
*
63
* @param node The node on which a Forwarder will be installed.
64
* @return A pointer to the applications installed.
65
*/
66
Ptr<Application>
InstallPriv
(
Ptr<Node>
node)
const
;
67
68
ObjectFactory
m_factory
;
//!< The object factory
69
};
70
71
}
// namespace lorawan
72
}
// namespace ns3
73
74
#endif
/* FORWARDER_HELPER_H */
ns3::ApplicationContainer
holds a vector of ns3::Application pointers.
Definition
application-container.h:33
ns3::AttributeValue
Hold a value for an Attribute.
Definition
attribute.h:59
ns3::NodeContainer
keep track of a set of node pointers.
Definition
node-container.h:29
ns3::ObjectFactory
Instantiate subclasses of ns3::Object.
Definition
object-factory.h:37
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
ptr.h:70
ns3::lorawan::ForwarderHelper::SetAttribute
void SetAttribute(std::string name, const AttributeValue &value)
Helper function used to set the underlying application attributes.
Definition
forwarder-helper.cc:33
ns3::lorawan::ForwarderHelper::m_factory
ObjectFactory m_factory
The object factory.
Definition
forwarder-helper.h:68
ns3::lorawan::ForwarderHelper::Install
ApplicationContainer Install(NodeContainer c) const
Install a Forwarder application on each node of the input container configured with all the attribute...
Definition
forwarder-helper.cc:45
ns3::lorawan::ForwarderHelper::ForwarderHelper
ForwarderHelper()
Default constructor.
Definition
forwarder-helper.cc:23
ns3::lorawan::ForwarderHelper::~ForwarderHelper
~ForwarderHelper()
Destructor.
Definition
forwarder-helper.cc:28
ns3::lorawan::ForwarderHelper::InstallPriv
Ptr< Application > InstallPriv(Ptr< Node > node) const
Install a Forwarder application on the input Node configured with all the attributes set with SetAttr...
Definition
forwarder-helper.cc:57
ns3::lorawan
Definition
forwarder-helper.cc:19
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lorawan
helper
forwarder-helper.h
Generated on
for ns-3 by
1.15.0