OLD | NEW |
(Empty) | |
| 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2009 University of Washington |
| 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 as published by |
| 7 * the Free Software Foundation, either version 3 of the License, or |
| 8 * (at your option) any later version. |
| 9 * |
| 10 * This program is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 * GNU General Public License for more details. |
| 14 * |
| 15 * You should have received a copy of the GNU General Public License |
| 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 * |
| 18 * Author: Leonard Tracy <lentracy@u.washington.edu> |
| 19 * |
| 20 * |
| 21 */ |
| 22 |
| 23 |
| 24 #ifndef UANNOISEMODELDEFAULT_H_ |
| 25 #define UANNOISEMODELDEFAULT_H_ |
| 26 |
| 27 #include "ns3/uan-noise-model.h" |
| 28 #include "ns3/attribute.h" |
| 29 #include "ns3/object.h" |
| 30 |
| 31 namespace ns3 |
| 32 { |
| 33 |
| 34 /** |
| 35 * \class UanNoiseModel |
| 36 * |
| 37 * Standard ambient acoustic noise model. See attributes for parameters |
| 38 * |
| 39 * This class returns follows the algorithm given in |
| 40 * Harris, A. F. and Zorzi, M. 2007. Modeling the underwater acoustic channel in
ns2. |
| 41 * In Proceedings of the 2nd international Conference on Performance Evaluation |
| 42 * Methodologies and Tools (Nantes, France, October 22 - 27, 2007). ValueTools, |
| 43 * vol. 321. ICST (Institute for Computer Sciences Social-Informatics and |
| 44 * Telecommunications Engineering), ICST, Brussels, Belgium, 1-8. |
| 45 * |
| 46 * Which uses the noise model also given in the book |
| 47 * "Principles of Underwater Sound" by Urick |
| 48 */ |
| 49 class UanNoiseModelDefault : public UanNoiseModel |
| 50 { |
| 51 public: |
| 52 UanNoiseModelDefault (); |
| 53 virtual ~UanNoiseModelDefault (); |
| 54 |
| 55 static TypeId GetTypeId (void); |
| 56 virtual double GetNoiseDbHz (double fKhz) const; |
| 57 |
| 58 private: |
| 59 double m_wind; |
| 60 double m_shipping; |
| 61 |
| 62 }; |
| 63 |
| 64 } |
| 65 |
| 66 #endif /* UANNOISEMODELDEFAULT_H_ */ |
OLD | NEW |