author | Vedran Miletić <rivanvx@gmail.com> |
Tue, 02 Aug 2011 17:42:33 -0400 | |
changeset 7385 | 10beb0e53130 |
parent 7238 | 85a7e87bb4cc |
permissions | -rw-r--r-- |
7385
10beb0e53130
standardize emacs c++ mode comments
Vedran Miletić <rivanvx@gmail.com>
parents:
7238
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
6705 | 2 |
/* |
3 |
* Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari |
|
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 version 2 as |
|
7 |
* published by the Free Software Foundation; |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
17 |
* |
|
18 |
* Author: Giuseppe Piro <g.piro@poliba.it> |
|
19 |
*/ |
|
20 |
||
21 |
#ifndef UE_PHY_H |
|
22 |
#define UE_PHY_H |
|
23 |
||
24 |
||
25 |
#include "lte-phy.h" |
|
26 |
||
27 |
namespace ns3 { |
|
28 |
||
29 |
class PacketBurst; |
|
30 |
class LteNetDevice; |
|
31 |
||
32 |
/** |
|
7238
85a7e87bb4cc
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
6852
diff
changeset
|
33 |
* \ingroup lte |
85a7e87bb4cc
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
6852
diff
changeset
|
34 |
* |
6705 | 35 |
* The LteSpectrumPhy models the physical layer of LTE |
36 |
*/ |
|
37 |
class UeLtePhy : public LtePhy |
|
38 |
{ |
|
39 |
||
40 |
public: |
|
41 |
UeLtePhy (); |
|
42 |
||
43 |
/** |
|
44 |
* \brief Create the physical layer |
|
45 |
* \param d the device where the physical layer is attached |
|
46 |
*/ |
|
47 |
UeLtePhy (Ptr<LteNetDevice> d); |
|
48 |
||
49 |
virtual ~UeLtePhy (); |
|
50 |
static TypeId GetTypeId (void); |
|
51 |
||
52 |
/** |
|
53 |
* \brief Send the packet to the channel |
|
54 |
* \param pb the burst of packet to send |
|
55 |
* \return true if |
|
56 |
*/ |
|
57 |
virtual bool SendPacket (Ptr<PacketBurst> pb); |
|
58 |
||
59 |
/** |
|
60 |
* \brief Create the PSD for the TX |
|
61 |
* \return the pointer to the PSD |
|
62 |
*/ |
|
63 |
virtual Ptr<SpectrumValue> CreateTxPowerSpectralDensity (); |
|
64 |
||
65 |
/** |
|
66 |
* \brief Update available channel for TX |
|
67 |
*/ |
|
68 |
virtual void DoSetUplinkSubChannels (); |
|
69 |
||
70 |
/** |
|
71 |
* \brief Set a list of sub channels to use in TX |
|
72 |
* \param mask a list of sub channels |
|
73 |
*/ |
|
74 |
void SetSubChannelsForTransmission (std::vector <int> mask); |
|
75 |
/** |
|
76 |
* \brief Get a list of sub channels to use in RX |
|
77 |
* \return a list of sub channels |
|
78 |
*/ |
|
79 |
std::vector <int> GetSubChannelsForTransmission (void); |
|
80 |
||
81 |
/** |
|
82 |
* \brief Get a list of sub channels to use in RX |
|
83 |
* \param mask list of sub channels |
|
84 |
*/ |
|
85 |
void SetSubChannelsForReception (std::vector <int> mask); |
|
86 |
/** |
|
87 |
* \brief Get a list of sub channels to use in RX |
|
88 |
* \return a list of sub channels |
|
89 |
*/ |
|
90 |
std::vector <int> GetSubChannelsForReception (void); |
|
91 |
||
92 |
||
93 |
/** |
|
94 |
* \brief Create CQI feedbacks from SINR values. SINR values are |
|
95 |
* computed at the physical layer when is received a signal from the eNB |
|
96 |
* \param sinr list of SINR values |
|
97 |
*/ |
|
98 |
void CreateCqiFeedbacks (std::vector<double> sinr); |
|
99 |
||
6710
3cd651349cb6
lte examples now passing valgrind tests
Nicola Baldo <nbaldo@cttc.es>
parents:
6705
diff
changeset
|
100 |
virtual void SendIdealControlMessage (Ptr<IdealControlMessage> msg); |
3cd651349cb6
lte examples now passing valgrind tests
Nicola Baldo <nbaldo@cttc.es>
parents:
6705
diff
changeset
|
101 |
virtual void ReceiveIdealControlMessage (Ptr<IdealControlMessage> msg); |
6705 | 102 |
|
103 |
private: |
|
104 |
std::vector <int> m_subChannelsForTransmission; |
|
105 |
std::vector <int> m_subChannelsForReception; |
|
106 |
}; |
|
107 |
||
108 |
||
109 |
} |
|
110 |
||
111 |
#endif /* UE_PHY_H */ |