OLD | NEW |
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) 2009 University of Washington | 3 * Copyright (c) 2009 University of Washington |
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 } | 81 } |
82 /** | 82 /** |
83 * \param kp value in kilopascals | 83 * \param kp value in kilopascals |
84 * \returns dB re 1 uPa | 84 * \returns dB re 1 uPa |
85 * \brief Converts kilopascals to dB re 1 uPa | 85 * \brief Converts kilopascals to dB re 1 uPa |
86 */ | 86 */ |
87 inline double KpToDb (double kp) const | 87 inline double KpToDb (double kp) const |
88 { | 88 { |
89 return 10 * log10 (kp); | 89 return 10 * log10 (kp); |
90 } | 90 } |
91 | |
92 }; | 91 }; |
93 | 92 |
94 /** | 93 /** |
95 * \class UanPhyPer | 94 * \class UanPhyPer |
96 * Used in UanPhy for determining probability of packet error based on received
SINR and | 95 * Used in UanPhy for determining probability of packet error based on received
SINR and |
97 * modulation (mode). Can be set in UanPhy via attributes | 96 * modulation (mode). Can be set in UanPhy via attributes |
98 */ | 97 */ |
99 class UanPhyPer : public Object | 98 class UanPhyPer : public Object |
100 { | 99 { |
101 public: | 100 public: |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 * purposes. | 412 * purposes. |
414 */ | 413 */ |
415 void NotifyRxEnd (Ptr<const Packet> packet); | 414 void NotifyRxEnd (Ptr<const Packet> packet); |
416 | 415 |
417 /** | 416 /** |
418 * Public method used to fire a PhyRxDrop trace. Implemented for encapsulatio
n | 417 * Public method used to fire a PhyRxDrop trace. Implemented for encapsulatio
n |
419 * purposes. | 418 * purposes. |
420 */ | 419 */ |
421 void NotifyRxDrop (Ptr<const Packet> packet); | 420 void NotifyRxDrop (Ptr<const Packet> packet); |
422 | 421 |
| 422 /** |
| 423 * Assign a fixed random variable stream number to the random variables |
| 424 * used by this model. Return the number of streams (possibly zero) that |
| 425 * have been assigned. |
| 426 * |
| 427 * \param stream first stream index to use |
| 428 * \return the number of stream indices assigned by this model |
| 429 */ |
| 430 virtual int64_t AssignStreams (int64_t stream) = 0; |
| 431 |
423 private: | 432 private: |
424 /** | 433 /** |
425 * The trace source fired when a packet begins the transmission process on | 434 * The trace source fired when a packet begins the transmission process on |
426 * the medium. | 435 * the medium. |
427 * | 436 * |
428 * \see class CallBackTraceSource | 437 * \see class CallBackTraceSource |
429 */ | 438 */ |
430 TracedCallback<Ptr<const Packet> > m_phyTxBeginTrace; | 439 TracedCallback<Ptr<const Packet> > m_phyTxBeginTrace; |
431 | 440 |
432 /** | 441 /** |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 * The trace source fired when the phy layer drops a packet it has received. | 474 * The trace source fired when the phy layer drops a packet it has received. |
466 * | 475 * |
467 * \see class CallBackTraceSource | 476 * \see class CallBackTraceSource |
468 */ | 477 */ |
469 TracedCallback<Ptr<const Packet> > m_phyRxDropTrace; | 478 TracedCallback<Ptr<const Packet> > m_phyRxDropTrace; |
470 }; | 479 }; |
471 | 480 |
472 } | 481 } |
473 | 482 |
474 #endif /* UAN_PHY_H */ | 483 #endif /* UAN_PHY_H */ |
OLD | NEW |