9#include "ns3/config-store.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"
14#include <ns3/buildings-helper.h>
15#include <ns3/string.h>
23main(
int argc,
char* argv[])
26 cmd.Parse(argc, argv);
48 lteHelper->SetAttribute(
"FadingModel",
StringValue(
"ns3::TraceFadingLossModel"));
50 std::ifstream ifTraceFile;
51 ifTraceFile.open(
"../../src/lte/model/fading-traces/fading_trace_EPA_3kmph.fad",
53 if (ifTraceFile.good())
56 lteHelper->SetFadingModelAttribute(
58 StringValue(
"../../src/lte/model/fading-traces/fading_trace_EPA_3kmph.fad"));
63 lteHelper->SetFadingModelAttribute(
65 StringValue(
"src/lte/model/fading-traces/fading_trace_EPA_3kmph.fad"));
75 lteHelper->SetFadingModelAttribute(
"SamplesNum",
UintegerValue(10000));
77 lteHelper->SetFadingModelAttribute(
"RbNum",
UintegerValue(100));
87 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
90 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
97 enbDevs = lteHelper->InstallEnbDevice(enbNodes);
98 ueDevs = lteHelper->InstallUeDevice(ueNodes);
101 lteHelper->Attach(ueDevs, enbDevs.
Get(0));
106 lteHelper->ActivateDataRadioBearer(ueDevs, bearer);
static void Install(Ptr< Node > node)
Install the MobilityBuildingInfo to a node.
Parse command-line arguments.
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 variables of type string.
Hold an unsigned integer type.
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.