1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
|
2 /* |
|
3 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari |
|
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: Giuseppe Piro <g.piro@poliba.it> |
|
19 */ |
|
20 |
|
21 #ifndef CHANNEL_REALIZATION_H |
|
22 #define CHANNEL_REALIZATION_H |
|
23 |
|
24 |
|
25 #include <ns3/nstime.h> |
|
26 #include "ns3/object.h" |
|
27 #include "jakes-fading-loss-model.h" |
|
28 #include "path-loss-model.h" |
|
29 #include "shadowing-loss-model.h" |
|
30 #include "penetration-loss-model.h" |
|
31 |
|
32 |
|
33 namespace ns3 { |
|
34 |
|
35 |
|
36 /** |
|
37 * \ingroup lte |
|
38 * |
|
39 * \brief the ChannelRealization class implements a complete propagation model |
|
40 * used by the channel to compute the loss due to the propagation of the signal. |
|
41 * A ChannelRealization object is created for each couple of UE - eNB. |
|
42 */ |
|
43 class ChannelRealization : public Object |
|
44 { |
|
45 |
|
46 public: |
|
47 ChannelRealization (); |
|
48 virtual ~ChannelRealization (); |
|
49 |
|
50 static TypeId GetTypeId (void); |
|
51 |
|
52 /** |
|
53 * \brief Set the multipath loss model |
|
54 * \param l the multipath loss model |
|
55 */ |
|
56 void SetJakesFadingLossModel (Ptr<JakesFadingLossModel> l); |
|
57 /** |
|
58 * \brief Set the path loss model |
|
59 * \param l the path loss model |
|
60 */ |
|
61 void SetPathLossModel (Ptr<PathLossModel> l); |
|
62 /** |
|
63 * \brief Set the shadowing loss model |
|
64 * \param l the shadowing loss model |
|
65 */ |
|
66 void SetShadowingLossModel (Ptr<ShadowingLossModel> l); |
|
67 /** |
|
68 * \brief Set the penetration loss model |
|
69 * \param l the penetration loss model |
|
70 */ |
|
71 void SetPenetrationLossModel (Ptr<PenetrationLossModel> l); |
|
72 |
|
73 |
|
74 /** |
|
75 * \brief Get the multipath loss model |
|
76 * \return the pointer to the multipath loss model |
|
77 */ |
|
78 Ptr<JakesFadingLossModel> GetJakesFadingLossModel (void); |
|
79 /** |
|
80 * \brief Get the path loss model |
|
81 * \return the pointer to the path loss model |
|
82 */ |
|
83 Ptr<PathLossModel> GetPathLossModel (void); |
|
84 /** |
|
85 * \brief Get the shadowing loss model |
|
86 * \return the pointer to the shadowing loss model |
|
87 */ |
|
88 Ptr<ShadowingLossModel> GetShadowingLossModel (void); |
|
89 /** |
|
90 * \brief Get the penetration loss model |
|
91 * \return the pointer to the penetration loss model |
|
92 */ |
|
93 Ptr<PenetrationLossModel> GetPenetrationLossModel (void); |
|
94 |
|
95 |
|
96 private: |
|
97 Ptr<ShadowingLossModel> m_shadowing; |
|
98 Ptr<PathLossModel> m_pathloss; |
|
99 Ptr<JakesFadingLossModel> m_multipath; |
|
100 Ptr<PenetrationLossModel> m_penetration; |
|
101 |
|
102 }; |
|
103 |
|
104 |
|
105 } // namespace ns3 |
|
106 |
|
107 #endif /* CHANNEL_REALIZATION_H */ |
|
108 |
|
109 |
|