20 #include "ns3/config-store-module.h"
21 #include "ns3/core-module.h"
22 #include "ns3/lte-module.h"
23 #include "ns3/mobility-module.h"
24 #include "ns3/network-module.h"
29 main(
int argc,
char* argv[])
33 cmd.Parse(argc, argv);
39 cmd.Parse(argc, argv);
55 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
57 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
67 lteHelper->
Attach(ueDevs, enbDevs.
Get(0));
80 double distance_temp[] = {1000, 1000, 1000};
81 std::vector<double> userDistance;
82 userDistance.assign(distance_temp, distance_temp + 3);
83 for (
int i = 0; i < 3; i++)
87 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.
void EnablePhyTraces()
Enable trace sinks for PHY layer.
NetDeviceContainer InstallEnbDevice(NodeContainer c)
Create a set of eNodeB devices.
void Attach(NetDeviceContainer ueDevices)
Enables automatic attachment of a set of UE devices to a suitable cell using Idle mode initial cell s...
void EnableRlcTraces()
Enable trace sinks for RLC layer.
void ActivateDataRadioBearer(NetDeviceContainer ueDevices, EpsBearer bearer)
Activate a Data Radio Bearer on a given UE devices (for LTE-only simulation).
NetDeviceContainer InstallUeDevice(NodeContainer c)
Create a set of UE devices.
void EnableMacTraces()
Enable trace sinks for MAC layer.
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.
void SetAttribute(std::string name, const AttributeValue &value)
Set a single attribute, raising fatal errors if unsuccessful.
Ptr< T > GetObject() const
Get a pointer to the requested aggregated Object.
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.
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.