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
18namespace ns3
19{
20
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 */
A helper to make it easier to instantiate an ns3::TrafficGenerator types of applications on a set of ...
void SetAttribute(std::string name, const AttributeValue &value)
ApplicationContainer Install(NodeContainer c) const