10#include "ns3/core-module.h"
11#include "ns3/lte-module.h"
12#include "ns3/mobility-module.h"
13#include "ns3/network-module.h"
14#include <ns3/buildings-helper.h>
23main(
int argc,
char* argv[])
27 double eNbTxPower = 30;
37 cmd.Parse(argc, argv);
41 uint16_t bandwidth = 25;
59 positionAlloc->Add(Vector(0.0, 0.0, 0.0));
60 positionAlloc->Add(Vector(d1, 0.0, 0.0));
63 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
64 mobility.SetPositionAllocator(positionAlloc);
70 lteHelper->SetSchedulerType(
"ns3::PfFfMacScheduler");
72 lteHelper->SetEnbDeviceAttribute(
"DlBandwidth",
UintegerValue(bandwidth));
73 lteHelper->SetEnbDeviceAttribute(
"UlBandwidth",
UintegerValue(bandwidth));
75 enbDevs = lteHelper->InstallEnbDevice(enbNodes);
76 ueDevs = lteHelper->InstallUeDevice(ueNodes);
79 lteHelper->Attach(ueDevs, enbDevs.
Get(0));
84 lteHelper->ActivateDataRadioBearer(ueDevs, bearer);
Parse command-line arguments.
This class can be used to hold variables of floating point type such as 'double' or 'float'.
This class contains the specification of EPS Bearers.
@ GBR_CONV_VOICE
GBR Conversational Voice.
Helper class used to assign positions and mobility models to nodes.
holds a vector of ns3::NetDevice pointers
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr<NetDevice> stored in this container at a given index.
keep track of a set of node pointers.
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
Smart pointer class similar to boost::intrusive_ptr.
static void Destroy()
Execute the events scheduled with ScheduleDestroy().
static void Run()
Run the simulation.
static void Stop()
Tell the Simulator the calling event should be the last one executed.
Hold an unsigned integer type.
void SetDefault(std::string name, const AttributeValue &value)
Ptr< T > CreateObject(Args &&... args)
Create an object by type, with varying number of constructor parameters.
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.