Hi everyone,
I am willing to use UniformDiscPositionAllocator and define an interval for rho parameter.
When I run my program in which rho is defined in the following way, there is no problem.
MobilityHelper mobility;
mobility.SetPositionAllocator ("ns3::UniformDiscPositionAllocator",
"X", StringValue ("100.0"),
"Y", StringValue ("100.0"),
"rho", StringValue ("5000.0"));
mobility.SetMobilityModel("ns3::ConstantPositionMobilityModel");
mobility.Install(ueNodes);
mobility.Install(enbNodes);
However, I could not define an interval for rho while I did it for RandomDiscPositionAllocator as follows:
mobility.SetPositionAllocator ("ns3::RandomDiscPositionAllocator",
"X", StringValue ("100.0"),
"Y", StringValue ("100.0"),
"Rho", StringValue ("ns3::UniformRandomVariable[Min=500|Max=5000]"));
How can I have the same value for rho when using UniformDiscPositionAllocator?
Please note that I am using ns-3.18.
Thanks in advance,
Narges