~ubuntu-branches/ubuntu/quantal/ns3/quantal

« back to all changes in this revision

Viewing changes to ns-3.13/src/propagation/model/cost231-propagation-loss-model.h

  • Committer: Package Import Robot
  • Author(s): YunQiang Su, Aron Xu, YunQiang Su, Upstream
  • Date: 2012-01-06 00:35:42 UTC
  • mfrom: (10.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20120106003542-vcn5g03mhapm991h
Tags: 3.13+dfsg-1
[ Aron Xu ]:
        add tag binary and binary-indep, 
  for not build doc when --binary-arch (Closes: #654493).
[ YunQiang Su ]
        add waf 1.5/1.6 source to debian directory, 
  and build waf from there (Closes: #642217).
[ Upstream ]
  Successfully link with --as-needed option (Closes: #642225).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
30
/**
 
31
 * \ingroup propagation
 
32
 *
 
33
 *  \brief The COST-Hata-Model is the most often cited of the COST 231 models.
 
34
 *
 
35
 *  Also called the Hata Model PCS Extension, it is a radio propagation model
 
36
 *  that extends the Hata Model (which in turn is based on the Okumura Model)
 
37
 *  to cover a more elaborated range of frequencies. COST (COperation
 
38
 *  europ�enne dans le domaine de la recherche Scientifique et Technique)
 
39
 *  is a European Union Forum for cooperative scientific research which has
 
40
 *  developed this model accordingly to various experiments and researches.
 
41
 *  This model is applicable to urban areas. To further evaluate Path Loss
 
42
 *  in Suburban or Rural Quasi-open/Open Areas.
 
43
 *  Frequency: 1500 MHz to 2000 MHz
 
44
 *  Mobile Station Antenna Height: 1 up to 10m
 
45
 *  Base station Antenna Height: 30m to 200m
 
46
 *  Link Distance:up to 20 km
 
47
 *
 
48
 */
 
49
 
 
50
class Cost231PropagationLossModel : public PropagationLossModel
 
51
{
 
52
 
 
53
public:
 
54
  static TypeId GetTypeId (void);
 
55
  Cost231PropagationLossModel ();
 
56
  enum Environment
 
57
  {
 
58
    SubUrban, MediumCity, Metropolitan
 
59
  };
 
60
 
 
61
  /**
 
62
   * \param a the mobility model of the source
 
63
   * \param b the mobility model of the destination
 
64
   * \returns the propagation loss (in dBm)
 
65
   */
 
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
  double m_BSAntennaHeight; // in meter
 
83
  double m_SSAntennaHeight; // in meter
 
84
  double C;
 
85
  double m_lambda;
 
86
  Environment m_environment;
 
87
  double m_minDistance; // in meter
 
88
  double m_frequency; // frequency in MHz
 
89
  double m_shadowing;
 
90
 
 
91
};
 
92
 
 
93
}
 
94
 
 
95
#endif /* COST231PROPAGATIONMODEL_H */