9#include "ns3/config-store-module.h"
10#include "ns3/core-module.h"
11#include "ns3/lte-module.h"
12#include "ns3/mobility-module.h"
13#include "ns3/network-module.h"
18main(
int argc,
char* argv[])
22 cmd.Parse(argc, argv);
28 cmd.Parse(argc, argv);
32 lteHelper->SetAttribute(
"PathlossModel",
StringValue(
"ns3::FriisSpectrumPropagationLossModel"));
44 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
46 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
52 enbDevs = lteHelper->InstallEnbDevice(enbNodes);
53 ueDevs = lteHelper->InstallUeDevice(ueNodes);
56 lteHelper->Attach(ueDevs, enbDevs.
Get(0));
61 lteHelper->ActivateDataRadioBearer(ueDevs, bearer);
65 lteHelper->EnablePhyTraces();
66 lteHelper->EnableMacTraces();
67 lteHelper->EnableRlcTraces();
69 double distance_temp[] = {1000, 1000, 1000};
70 std::vector<double> userDistance;
71 userDistance.assign(distance_temp, distance_temp + 3);
72 for (
int i = 0; i < 3; i++)
76 mm->SetPosition(Vector(userDistance[i], 0.0, 0.0));
Parse command-line arguments.
void ConfigureDefaults()
Configure the default values.
Mobility model for which the current position does not change once it has been set and until it is se...
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.
Ptr< Node > Get(uint32_t i) const
Get the Ptr<Node> stored in this container at a given index.
Ptr< T > GetObject() const
Get a pointer to the requested aggregated Object.
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 variables of type string.
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.