21 #include "ns3/core-module.h"
22 #include "ns3/network-module.h"
23 #include "ns3/mobility-module.h"
24 #include "ns3/config-store.h"
25 #include <ns3/buildings-helper.h>
26 #include <ns3/hybrid-buildings-propagation-loss-model.h>
27 #include <ns3/constant-position-mobility-model.h>
37 main (
int argc,
char *argv[])
42 bool enbIndoor =
false;
43 bool ueIndoor =
false;
46 cmd.
AddValue(
"hEnb",
"Height of the eNB", hEnb);
47 cmd.
AddValue(
"hUe",
"Height of UE", hUe);
48 cmd.
AddValue(
"enbIndoor",
"Boolean for eNB Indoor/Outdoor selection", enbIndoor);
49 cmd.
AddValue(
"ueIndoor",
"Boolean for UE Indoor/Outdoor selection", ueIndoor);
50 cmd.
Parse(argc, argv);
57 cmd.
Parse (argc, argv);
60 std::ofstream outFile;
61 outFile.open (
"buildings-pathloss-profiler.out");
62 if (!outFile.is_open ())
71 Ptr<Building> building1 = CreateObject<Building> (-2, 2, -2, 2, 0.0, 20.0);
89 for (uint32_t i = 1; i < 2300; i++)
96 double loss = propagationLossModel->
GetLoss (mmEnb, mmUe);
Doxygen introspection did not find any typical Config paths.
smart pointer class similar to boost::intrusive_ptr
virtual double GetLoss(Ptr< MobilityModel > a, Ptr< MobilityModel > b) const
#define NS_FATAL_ERROR(msg)
fatal error handling
static void MakeConsistent(Ptr< MobilityModel > bmm)
Make the given mobility model consistent, by determining whether its position falls inside any of the...
void AggregateObject(Ptr< Object > other)
Parse command-line arguments.
static void Destroy(void)
Every event scheduled by the Simulator::insertAtDestroy method is invoked.
void ConfigureDefaults(void)
void SetExtWallsType(Building::ExtWallsType_t t)
int main(int argc, char *argv[])
void SetPosition(const Vector &position)
void AddValue(const std::string &name, const std::string &help, T &value)
Add a program argument, assigning to POD.
void Parse(int argc, char *argv[])
Parse the program arguments.
Hold a floating point type.
void SetAttribute(std::string name, const AttributeValue &value)
void SetBuildingType(Building::BuildingType_t t)