5G-LENA
nr-v3.3-159-ga6832aa7
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
traffic-generator-helper.h
1
// Copyright (c) 2008 INRIA
2
// Copyright (c) 2023 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
//
4
// SPDX-License-Identifier: GPL-2.0-only
5
6
#ifndef TRAFFIC_GENERATOR_HELPER_H
7
#define TRAFFIC_GENERATOR_HELPER_H
8
9
#include "ns3/address.h"
10
#include "ns3/application-container.h"
11
#include "ns3/attribute.h"
12
#include "ns3/net-device.h"
13
#include "ns3/node-container.h"
14
#include "ns3/object-factory.h"
15
16
#include <string>
17
18
namespace
ns3
19
{
20
27
class
TrafficGeneratorHelper
28
{
29
public
:
42
TrafficGeneratorHelper
(std::string protocol, Address address, TypeId ftpTypeId);
43
51
void
SetAttribute
(std::string name,
const
AttributeValue& value);
52
61
ApplicationContainer
Install
(NodeContainer c)
const
;
62
70
ApplicationContainer
Install
(Ptr<Node> node)
const
;
71
79
ApplicationContainer
Install
(std::string nodeName)
const
;
80
81
private
:
89
Ptr<Application> InstallPriv(Ptr<Node> node)
const
;
90
91
ObjectFactory m_factory;
92
};
93
94
}
// namespace ns3
95
96
#endif
/* TRAFFIC_GENERATOR_HELPER_H */
ns3::TrafficGeneratorHelper
A helper to make it easier to instantiate an ns3::TrafficGenerator types of applications on a set of ...
Definition
traffic-generator-helper.h:28
ns3::TrafficGeneratorHelper::SetAttribute
void SetAttribute(std::string name, const AttributeValue &value)
Definition
traffic-generator-helper.cc:26
ns3::TrafficGeneratorHelper::Install
ApplicationContainer Install(NodeContainer c) const
Definition
traffic-generator-helper.cc:45
utils
traffic-generators
helper
traffic-generator-helper.h
Generated on Fri Apr 25 2025 15:16:04 for 5G-LENA by
1.9.8