A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cost231-propagation-loss-model.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2007,2008, 2009 INRIA, UDcast
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: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
19  * <amine.ismail@udcast.com>
20  */
21 
22 #ifndef COST231_PROPAGATION_LOSS_MODEL_H
23 #define COST231_PROPAGATION_LOSS_MODEL_H
24 
25 #include "ns3/nstime.h"
26 #include "ns3/propagation-loss-model.h"
27 
28 namespace ns3 {
29 
51 {
52 
53 public:
54  static TypeId GetTypeId (void);
57  {
59  };
60 
66  double GetLoss (Ptr<MobilityModel> a, Ptr<MobilityModel> b) const;
67  void SetBSAntennaHeight (double height);
68  void SetSSAntennaHeight (double height);
69  void SetEnvironment (Environment env);
70  void SetLambda (double lambda);
71  void SetMinDistance (double minDistance);
72  double GetBSAntennaHeight (void) const;
73  double GetSSAntennaHeight (void) const;
74  Environment GetEnvironment (void) const;
75  double GetMinDistance (void) const;
76  double GetLambda (void) const;
77  void SetLambda (double frequency, double speed);
78  double GetShadowing (void);
79  void SetShadowing (double shadowing);
80 private:
81  virtual double DoCalcRxPower (double txPowerDbm, Ptr<MobilityModel> a, Ptr<MobilityModel> b) const;
82  virtual int64_t DoAssignStreams (int64_t stream);
83  double m_BSAntennaHeight; // in meter
84  double m_SSAntennaHeight; // in meter
85  double C;
86  double m_lambda;
88  double m_minDistance; // in meter
89  double m_frequency; // frequency in MHz
90  double m_shadowing;
91 
92 };
93 
94 }
95 
96 #endif /* COST231PROPAGATIONMODEL_H */
The COST-Hata-Model is the most often cited of the COST 231 models.
virtual double DoCalcRxPower(double txPowerDbm, Ptr< MobilityModel > a, Ptr< MobilityModel > b) const
virtual int64_t DoAssignStreams(int64_t stream)
Subclasses must implement this; those not using random variables can return zero. ...
Modelize the propagation loss through a transmission medium.
double GetLoss(Ptr< MobilityModel > a, Ptr< MobilityModel > b) const
a unique identifier for an interface.
Definition: type-id.h:49