OLD | NEW |
(Empty) | |
| 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2014 North Carolina State University |
| 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: Scott E. Carpenter <scarpen@ncsu.edu> |
| 19 * |
| 20 */ |
| 21 |
| 22 #ifndef OBSTACLE_SHADOWING_PROPAGATION_LOSS_MODEL_H |
| 23 #define OBSTACLE_SHADOWING_PROPAGATION_LOSS_MODEL_H |
| 24 |
| 25 #include "ns3/propagation-loss-model.h" |
| 26 |
| 27 namespace ns3 { |
| 28 |
| 29 /** |
| 30 * \ingroup obstacle |
| 31 * |
| 32 * \brief the Obstalce Shadowing propagation model |
| 33 *· |
| 34 * This class implements the Obstacle Shadowing propagation loss model. |
| 35 * For more information about the model, please see |
| 36 * the propagation module documentation in .rst format. |
| 37 */ |
| 38 class ObstacleShadowingPropagationLossModel : public PropagationLossModel |
| 39 { |
| 40 |
| 41 public: |
| 42 |
| 43 /** |
| 44 * \brief Constructor |
| 45 * \return none |
| 46 */ |
| 47 ObstacleShadowingPropagationLossModel (); |
| 48 |
| 49 /** |
| 50 * \brief Deconstructor |
| 51 * \return none |
| 52 */ |
| 53 virtual ~ObstacleShadowingPropagationLossModel (); |
| 54 |
| 55 // inherited from Object |
| 56 static TypeId GetTypeId (void); |
| 57 |
| 58 /**· |
| 59 *· |
| 60 *· |
| 61 * \param a the first mobility model |
| 62 * \param b the second mobility model |
| 63 *· |
| 64 * \return the loss in dBm for the propagation between |
| 65 * the two given mobility models |
| 66 */ |
| 67 double GetLoss (Ptr<MobilityModel> a, Ptr<MobilityModel> b) const; |
| 68 |
| 69 private: |
| 70 |
| 71 // inherited from PropagationLossModel |
| 72 virtual double DoCalcRxPower (double txPowerDbm, |
| 73 Ptr<MobilityModel> a, |
| 74 Ptr<MobilityModel> b) const; |
| 75 virtual int64_t DoAssignStreams (int64_t stream); |
| 76 }; |
| 77 |
| 78 } // namespace ns3 |
| 79 |
| 80 |
| 81 #endif // OBSTACLE_SHADOWING_PROPAGATION_LOSS_MODEL_H |
| 82 |
OLD | NEW |