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) 2007,2008, 2009 INRIA, UDcast | 3 * Copyright (c) 2007,2008, 2009 INRIA, UDcast |
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 uint32_t burstSize, Ptr<WimaxPhy> phy, bool isFirstBlock, | 74 uint32_t burstSize, Ptr<WimaxPhy> phy, bool isFirstBlock, |
75 bool isLastBlock, | 75 bool isLastBlock, |
76 uint64_t frequency, WimaxPhy::ModulationType modulationType, | 76 uint64_t frequency, WimaxPhy::ModulationType modulationType, |
77 uint8_t direction, double txPowerDbm, Ptr<PacketBurst> burst); | 77 uint8_t direction, double txPowerDbm, Ptr<PacketBurst> burst); |
78 /** | 78 /** |
79 * \brief sets the propagation model | 79 * \brief sets the propagation model |
80 * \param propModel the propagation model to used | 80 * \param propModel the propagation model to used |
81 */ | 81 */ |
82 void SetPropagationModel (PropModel propModel); | 82 void SetPropagationModel (PropModel propModel); |
83 | 83 |
| 84 /** |
| 85 * Assign a fixed random variable stream number to the random variables |
| 86 * used by this model. Return the number of streams (possibly zero) that |
| 87 * have been assigned. |
| 88 * |
| 89 * \param stream first stream index to use |
| 90 * \return the number of stream indices assigned by this model |
| 91 */ |
| 92 int64_t AssignStreams (int64_t stream); |
| 93 |
84 private: | 94 private: |
85 void DoAttach (Ptr<WimaxPhy> phy); | 95 void DoAttach (Ptr<WimaxPhy> phy); |
86 std::list<Ptr<SimpleOfdmWimaxPhy> > m_phyList; | 96 std::list<Ptr<SimpleOfdmWimaxPhy> > m_phyList; |
87 uint32_t DoGetNDevices (void) const; | 97 uint32_t DoGetNDevices (void) const; |
88 void EndSendDummyBlock (Ptr<SimpleOfdmWimaxPhy> rxphy, simpleOfdmSendParam *
param); | 98 void EndSendDummyBlock (Ptr<SimpleOfdmWimaxPhy> rxphy, simpleOfdmSendParam *
param); |
89 Ptr<NetDevice> DoGetDevice (uint32_t i) const; | 99 Ptr<NetDevice> DoGetDevice (uint32_t i) const; |
90 Ptr<PropagationLossModel> m_loss; | 100 Ptr<PropagationLossModel> m_loss; |
91 }; | 101 }; |
92 | 102 |
93 } // namespace ns3 | 103 } // namespace ns3 |
94 | 104 |
95 #endif /* SIMPLE_OFDM_WIMAX_CHANNEL_H */ | 105 #endif /* SIMPLE_OFDM_WIMAX_CHANNEL_H */ |
OLD | NEW |