9#ifndef TV_SPECTRUM_TRANSMITTER_HELPER_H
10#define TV_SPECTRUM_TRANSMITTER_HELPER_H
12#include "ns3/object-factory.h"
13#include <ns3/antenna-model.h>
14#include <ns3/mobility-model.h>
15#include <ns3/net-device-container.h>
16#include <ns3/net-device.h>
17#include <ns3/node-container.h>
18#include <ns3/non-communicating-net-device.h>
19#include <ns3/random-variable-stream.h>
20#include <ns3/spectrum-channel.h>
21#include <ns3/spectrum-phy.h>
22#include <ns3/spectrum-signal-parameters.h>
23#include <ns3/spectrum-value.h>
24#include <ns3/tv-spectrum-transmitter.h>
58 friend class ::TvHelperDistributionTestCase;
236 double originLatitude,
237 double originLongitude,
262 const int startFrequenciesLength,
302 std::list<int> transmitterIndicesToCreate,
303 std::list<Vector> transmitterLocations);
This test verifies the accuracy of the private GetRandomNumTransmitters() method in the TvSpectrumTra...
Hold a value for an Attribute.
holds a vector of ns3::NetDevice pointers
keep track of a set of node pointers.
Instantiate subclasses of ns3::Object.
Smart pointer class similar to boost::intrusive_ptr.
Helper class which uses TvSpectrumTransmitter class to create customizable TV transmitter(s) that tra...
std::list< int > GenerateRegionalTransmitterIndices(const double startFrequencies[], const int startFrequenciesLength, Density density)
Generates random indices of given region frequency array (ignoring indices referring to invalid chann...
TvSpectrumTransmitterHelper()
Default constructor.
void SetChannel(Ptr< SpectrumChannel > c)
Set the spectrum channel for the device(s) to transmit on.
NetDeviceContainer InstallAdjacent(NodeContainer nodes)
Set up and start the TV Transmitter's transmission on the spectrum channel.
Density
density of location that TV transmitters are being set up in
void InstallRandomRegionalTransmitters(Region region, std::list< int > transmitterIndicesToCreate, std::list< Vector > transmitterLocations)
Installs each randomly generated regional TV transmitter.
Region
geographical region that TV transmitters are being set up in
int GetRandomNumTransmitters(Density density, uint32_t numChannels)
Randomly generates the number of TV transmitters to be created based on given density and number of p...
virtual ~TvSpectrumTransmitterHelper()
Destructor.
Ptr< UniformRandomVariable > m_uniRand
Object to generate uniform random numbers.
int64_t AssignStreams(int64_t streamNum)
Assigns the stream number for the uniform random number generator to use.
ObjectFactory m_factory
Object factory for attribute setting.
void CreateRegionalTvTransmitters(Region region, Density density, double originLatitude, double originLongitude, double maxAltitude, double maxRadius)
Generates and installs (starts transmission on the spectrum channel) a random number of TV transmitte...
void SetAttribute(std::string name, const AttributeValue &val)
Set attribute for each TvSpectrumTransmitter instance to be created.
NetDeviceContainer Install(NodeContainer nodes)
Set up and start the TV Transmitter's transmission on the spectrum channel.
Ptr< SpectrumChannel > m_channel
Pointer to spectrum channel object.
Every class exported by the ns3 library is enclosed in the ns3 namespace.