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 CTTC | 3 * Copyright (c) 2009 CTTC |
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual ~SpectrumChannel (); | 47 virtual ~SpectrumChannel (); |
48 static TypeId GetTypeId (void); | 48 static TypeId GetTypeId (void); |
49 | 49 |
50 | 50 |
51 /** | 51 /** |
52 * set the propagation loss model to be used | 52 * set the propagation loss model to be used |
53 * \param loss Ptr to the propagation loss model to be used. | 53 * \param loss Ptr to the propagation loss model to be used. |
54 */ | 54 */ |
55 virtual void AddSpectrumPropagationLossModel (Ptr<SpectrumPropagationLossModel
> loss) = 0; | 55 virtual void AddSpectrumPropagationLossModel (Ptr<SpectrumPropagationLossModel
> loss) = 0; |
56 | 56 |
| 57 virtual Ptr<SpectrumPropagationLossModel> GetSpectrumPropagationLossModel (voi
d) = 0; |
| 58 |
57 /** | 59 /** |
58 * set the propagation delay model to be used | 60 * set the propagation delay model to be used |
59 * \param delay Ptr to the propagation delay model to be used. | 61 * \param delay Ptr to the propagation delay model to be used. |
60 */ | 62 */ |
61 virtual void SetPropagationDelayModel (Ptr<PropagationDelayModel> delay) = 0; | 63 virtual void SetPropagationDelayModel (Ptr<PropagationDelayModel> delay) = 0; |
62 | 64 |
63 | 65 |
64 /** | 66 /** |
65 * Used by attached PHY instances to transmit waveforms on the channel | 67 * Used by attached PHY instances to transmit waveforms on the channel |
66 * | 68 * |
67 * @param p the PacketBurst associated with the waveform being transmitted | 69 * @param p the PacketBurst associated with the waveform being transmitted |
68 * @param txPsd the Power Spectral Density of the | 70 * @param txPowerSpectrum the Power Spectral Density of the |
69 * waveform, in linear units. The exact unit will depend on the | 71 * waveform, in linear units. The exact unit will depend on the |
70 * type of transmission medium involved: W for radio communications, Pa for | 72 * type of transmission medium involved: W for radio communications, Pa for |
71 * underwater acoustic communications. Other transmission media to be defined. | 73 * underwater acoustic communications. Other transmission media to be defined. |
72 * @param st spectrum type | |
73 * @param duration duration of the packet transmission. It is | 74 * @param duration duration of the packet transmission. It is |
74 * assumed that the Power Spectral Density remains constant for the | 75 * assumed that the Power Spectral Density remains constant for the |
75 * whole duration of the transmission. In other words, all waveform | 76 * whole duration of the transmission. In other words, all waveform |
76 * have a rect shape with respect to time. | 77 * have a rect shape with respect to time. |
77 * @param sender the SpectrumPhy instance making this function call | 78 * @param sender the SpectrumPhy instance making this function call |
78 */ | 79 */ |
79 virtual void StartTx (Ptr<PacketBurst> p, Ptr <SpectrumValue> txPsd, SpectrumT
ype st, Time duration, Ptr<SpectrumPhy> sender) = 0; | 80 virtual void StartTx (Ptr<PacketBurst> p, Ptr <SpectrumValue> txPsd, SpectrumT
ype st, Time duration, Ptr<SpectrumPhy> sender) = 0; |
80 | 81 |
81 /** | 82 /** |
82 * @brief add a SpectrumPhy to a channel, so it can receive packets | 83 * @brief add a SpectrumPhy to a channel, so it can receive packets |
(...skipping 14 matching lines...) Expand all Loading... |
97 | 98 |
98 }; | 99 }; |
99 | 100 |
100 | 101 |
101 | 102 |
102 } | 103 } |
103 | 104 |
104 | 105 |
105 | 106 |
106 #endif /* SPECTRUM_CHANNEL_H */ | 107 #endif /* SPECTRUM_CHANNEL_H */ |
OLD | NEW |