LEFT | RIGHT |
(no file at all) | |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2005,2006,2007 INRIA | 3 * Copyright (c) 2005,2006,2007 INRIA |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 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· | 6 * it under the terms of the GNU General Public License version 2 as· |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 /** | 116 /** |
117 * \brief Copy constructor | 117 * \brief Copy constructor |
118 * | 118 * |
119 * Defined and unimplemented to avoid misuse | 119 * Defined and unimplemented to avoid misuse |
120 * \returns | 120 * \returns |
121 */ | 121 */ |
122 PropagationLossModel &operator = (const PropagationLossModel &); | 122 PropagationLossModel &operator = (const PropagationLossModel &); |
123 | 123 |
124 /** | 124 /** |
125 * Returns the Rx Power taking into account only the particular | 125 * Returns the Rx Power taking into account only the particular |
126 * PropagatinLossModel. | 126 * PropagationLossModel. |
127 * | 127 * |
128 * \param txPowerDbm current transmission power (in dBm) | 128 * \param txPowerDbm current transmission power (in dBm) |
129 * \param a the mobility model of the source | 129 * \param a the mobility model of the source |
130 * \param b the mobility model of the destination | 130 * \param b the mobility model of the destination |
131 * \returns the reception power after adding/multiplying propagation loss (in
dBm) | 131 * \returns the reception power after adding/multiplying propagation loss (in
dBm) |
132 */ | 132 */ |
133 virtual double DoCalcRxPower (double txPowerDbm, | 133 virtual double DoCalcRxPower (double txPowerDbm, |
134 Ptr<MobilityModel> a, | 134 Ptr<MobilityModel> a, |
135 Ptr<MobilityModel> b) const = 0; | 135 Ptr<MobilityModel> b) const = 0; |
136 | 136 |
137 /** | 137 /** |
138 * Subclasses must implement this; those not using random variables | 138 * Subclasses must implement this; those not using random variables |
139 * can return zero | 139 * can return zero |
| 140 * |
| 141 * \param stream the stream to assign |
| 142 * \returns the random variable |
140 */ | 143 */ |
141 virtual int64_t DoAssignStreams (int64_t stream) = 0; | 144 virtual int64_t DoAssignStreams (int64_t stream) = 0; |
142 | 145 |
143 Ptr<PropagationLossModel> m_next; //!< Next propagation loss model in the list | 146 Ptr<PropagationLossModel> m_next; //!< Next propagation loss model in the list |
144 }; | 147 }; |
145 | 148 |
146 /** | 149 /** |
147 * \ingroup propagation | 150 * \ingroup propagation |
148 * | 151 * |
149 * \brief The propagation loss follows a random distribution. | 152 * \brief The propagation loss follows a random distribution. |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 Ptr<MobilityModel> a, | 855 Ptr<MobilityModel> a, |
853 Ptr<MobilityModel> b) const; | 856 Ptr<MobilityModel> b) const; |
854 virtual int64_t DoAssignStreams (int64_t stream); | 857 virtual int64_t DoAssignStreams (int64_t stream); |
855 private: | 858 private: |
856 double m_range; //!< Maximum Transmission Range (meters) | 859 double m_range; //!< Maximum Transmission Range (meters) |
857 }; | 860 }; |
858 | 861 |
859 } // namespace ns3 | 862 } // namespace ns3 |
860 | 863 |
861 #endif /* PROPAGATION_LOSS_MODEL_H */ | 864 #endif /* PROPAGATION_LOSS_MODEL_H */ |
LEFT | RIGHT |