changeset 8318 | 368cccf883a6 |
parent 8248 | 986f7db9f056 |
child 8332 | c6d3c7862cfb |
8317:2ec35f16dc11 | 8318:368cccf883a6 |
---|---|
24 #include <ns3/test.h> |
24 #include <ns3/test.h> |
25 #include <ns3/buildings-mobility-model.h> |
25 #include <ns3/buildings-mobility-model.h> |
26 #include <ns3/buildings-propagation-loss-model.h> |
26 #include <ns3/buildings-propagation-loss-model.h> |
27 |
27 |
28 |
28 |
29 using namespace ns3; |
29 namespace ns3 { |
30 |
|
31 |
30 |
32 /** |
31 /** |
33 * Test 1.1 pathloss calculation |
32 * Test 1.1 pathloss calculation |
34 */ |
33 */ |
35 class BuildingsPathlossTestSuite : public TestSuite |
34 class BuildingsPathlossTestSuite : public TestSuite |
40 |
39 |
41 |
40 |
42 class BuildingsPathlossTestCase : public TestCase |
41 class BuildingsPathlossTestCase : public TestCase |
43 { |
42 { |
44 public: |
43 public: |
45 BuildingsPathlossTestCase (double freq, Ptr<BuildingsMobilityModel> m1, Ptr<BuildingsMobilityModel> m2, BuildingsPropagationLossModel::Environment env, BuildingsPropagationLossModel::CitySize city, double refValue, std::string name); |
44 BuildingsPathlossTestCase (double freq, uint16_t m1, uint16_t m2, BuildingsPropagationLossModel::Environment env, BuildingsPropagationLossModel::CitySize city, double refValue, std::string name); |
46 virtual ~BuildingsPathlossTestCase (); |
45 virtual ~BuildingsPathlossTestCase (); |
47 |
46 |
48 private: |
47 private: |
49 virtual void DoRun (void); |
48 virtual void DoRun (void); |
49 Ptr<MobilityModel> CreateMobilityModel (uint16_t index); |
|
50 |
50 |
51 double m_freq; |
51 double m_freq; |
52 Ptr<BuildingsMobilityModel> m_node1; |
52 uint16_t m_mobilityModelIndex1; |
53 Ptr<BuildingsMobilityModel> m_node2; |
53 uint16_t m_mobilityModelIndex2; |
54 BuildingsPropagationLossModel::Environment m_env; |
54 BuildingsPropagationLossModel::Environment m_env; |
55 BuildingsPropagationLossModel::CitySize m_city; |
55 BuildingsPropagationLossModel::CitySize m_city; |
56 double m_lossRef; |
56 double m_lossRef; |
57 |
57 |
58 }; |
58 }; |
59 |
59 |
60 |
60 |
61 #endif /* BUILDING_PATHLOSS_TEST_H */ |
61 #endif /* BUILDING_PATHLOSS_TEST_H */ |
62 |
62 |
63 |
|
64 } // namespace ns3 |