src/buildings/test/buildings-pathloss-test.h
changeset 8248 986f7db9f056
parent 8211 1f846c65ed78
child 8318 368cccf883a6
equal deleted inserted replaced
8247:9cc847386565 8248:986f7db9f056
       
     1 /* -*-  Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
       
     2 /*
       
     3  * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
       
     4  *
       
     5  * This program is free software; you can redistribute it and/or modify
       
     6  * it under the terms of the GNU General Public License version 2 as
       
     7  * published by the Free Software Foundation;
       
     8  *
       
     9  * This program is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12  * GNU General Public License for more details.
       
    13  *
       
    14  * You should have received a copy of the GNU General Public License
       
    15  * along with this program; if not, write to the Free Software
       
    16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
       
    17  *
       
    18  * Author: Marco Miozzo <marco.miozzo@cttc.es>
       
    19  */
       
    20 
       
    21 #ifndef BUILDINGS_PATHLOSS_TEST_H
       
    22 #define BUILDINGS_PATHLOSS_TEST_H
       
    23 
       
    24 #include <ns3/test.h>
       
    25 #include <ns3/buildings-mobility-model.h>
       
    26 #include <ns3/buildings-propagation-loss-model.h>
       
    27 
       
    28 
       
    29 using namespace ns3;
       
    30 
       
    31 
       
    32 /**
       
    33 * Test 1.1 pathloss calculation
       
    34 */
       
    35 class BuildingsPathlossTestSuite : public TestSuite
       
    36 {
       
    37 public:
       
    38   BuildingsPathlossTestSuite ();
       
    39 };
       
    40 
       
    41 
       
    42 class BuildingsPathlossTestCase : public TestCase
       
    43 {
       
    44 public:
       
    45   BuildingsPathlossTestCase (double freq, Ptr<BuildingsMobilityModel> m1, Ptr<BuildingsMobilityModel> m2, BuildingsPropagationLossModel::Environment env, BuildingsPropagationLossModel::CitySize city, double refValue, std::string name);
       
    46   virtual ~BuildingsPathlossTestCase ();
       
    47 
       
    48 private:
       
    49   virtual void DoRun (void);
       
    50 
       
    51   double m_freq;
       
    52   Ptr<BuildingsMobilityModel> m_node1;
       
    53   Ptr<BuildingsMobilityModel> m_node2;
       
    54   BuildingsPropagationLossModel::Environment m_env;
       
    55   BuildingsPropagationLossModel::CitySize m_city;
       
    56   double m_lossRef;
       
    57   
       
    58 };
       
    59 
       
    60 
       
    61 #endif /* BUILDING_PATHLOSS_TEST_H */
       
    62