author | Mitch Watrous |
Wed, 15 Aug 2012 18:08:46 -0700 | |
changeset 8985 | 7752dc4ce7e9 |
parent 8786 | 8f366d5eee06 |
child 9003 | 1aac13cdb643 |
permissions | -rw-r--r-- |
7385
10beb0e53130
standardize emacs c++ mode comments
Vedran Miletić <rivanvx@gmail.com>
parents:
7241
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
2 |
/* |
8786
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
3 |
* Copyright (c) 2012 Telum (www.telum.ru) |
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
4 |
* |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
8786
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation; |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
8 |
* |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
13 |
* |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
17 |
* |
8786
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
18 |
* Author: Kirill Andreev <andreev@telum.ru> |
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
19 |
*/ |
8786
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
20 |
#ifndef JAKES_STATIONARY_LOSS_MODEL_H |
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
21 |
#define JAKES_STATIONARY_LOSS_MODEL_H |
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
22 |
|
8786
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
23 |
#include "ns3/propagation-loss-model.h" |
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
24 |
#include "ns3/propagation-cache.h" |
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
25 |
#include "ns3/jakes-process.h" |
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
26 |
|
8786
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
27 |
namespace ns3 |
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
28 |
{ |
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
29 |
/** |
7241
0a7a16b599e8
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
7207
diff
changeset
|
30 |
* \ingroup propagation |
0a7a16b599e8
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
7207
diff
changeset
|
31 |
* |
8786
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
32 |
* \brief a jakes narrowband propagation model. |
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
33 |
* Symmetrical cache for JakesProcess |
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
34 |
*/ |
8786
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
35 |
|
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
36 |
class JakesPropagationLossModel : public PropagationLossModel |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
37 |
{ |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
38 |
public: |
8786
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
39 |
static TypeId GetTypeId (); |
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
40 |
JakesPropagationLossModel (); |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
41 |
virtual ~JakesPropagationLossModel (); |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
42 |
|
8786
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
43 |
private: |
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
44 |
double DoCalcRxPower (double txPowerDbm, |
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
45 |
Ptr<MobilityModel> a, |
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
46 |
Ptr<MobilityModel> b) const; |
8985
7752dc4ce7e9
Replace src/buildings and src/propagation usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
8786
diff
changeset
|
47 |
virtual int64_t DoAssignStreams (int64_t stream); |
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
48 |
|
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
49 |
private: |
8786
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
50 |
mutable PropagationCache<JakesProcess> m_propagationCache; |
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
51 |
}; |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
52 |
|
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
53 |
} // namespace ns3 |
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
54 |
|
8786
8f366d5eee06
Bug 1140: fixed. New Jakes model has been implemented.
Kirill Andreev <andreev@telum.ru>
parents:
7385
diff
changeset
|
55 |
#endif /* JAKES_STATIONARY_LOSS_MODEL_H */ |
5944
b1a245ae00d4
Moving the propagation models of wifi from src/devices/wifi to src/common. The idea is to share them with the other wireless devices.
Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
parents:
diff
changeset
|
56 |