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 ENB_NET_DEVICE_H |
|
22 |
#define ENB_NET_DEVICE_H |
|
23 |
||
24 |
#include "lte-net-device.h" |
|
25 |
#include "ns3/event-id.h" |
|
26 |
#include "ns3/mac48-address.h" |
|
27 |
#include "ns3/traced-callback.h" |
|
28 |
#include "ns3/nstime.h" |
|
29 |
#include "ns3/log.h" |
|
30 |
#include "lte-phy.h" |
|
31 |
#include <vector> |
|
32 |
||
33 |
namespace ns3 { |
|
34 |
||
35 |
class Packet; |
|
36 |
class PacketBurst; |
|
37 |
class Node; |
|
38 |
class LtePhy; |
|
39 |
class UeManager; |
|
40 |
class UeNetDevice; |
|
41 |
class EnbMacEntity; |
|
42 |
||
43 |
||
44 |
/** |
|
7238
85a7e87bb4cc
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
6852
diff
changeset
|
45 |
* \ingroup lte |
85a7e87bb4cc
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
6852
diff
changeset
|
46 |
* |
6705 | 47 |
* The eNodeB device implementation |
48 |
*/ |
|
49 |
class EnbNetDevice : public LteNetDevice |
|
50 |
{ |
|
51 |
public: |
|
52 |
static TypeId GetTypeId (void); |
|
53 |
||
54 |
EnbNetDevice (void); |
|
55 |
/** |
|
56 |
* \brief Create eNB net device |
|
57 |
* \param node the network node |
|
58 |
* \param phy the physical object attache dto it |
|
59 |
*/ |
|
60 |
EnbNetDevice (Ptr<Node> node, Ptr<LtePhy> phy); |
|
61 |
||
62 |
virtual ~EnbNetDevice (void); |
|
6710
3cd651349cb6
lte examples now passing valgrind tests
Nicola Baldo <nbaldo@cttc.es>
parents:
6705
diff
changeset
|
63 |
virtual void DoDispose (void); |
6705 | 64 |
|
65 |
/** |
|
66 |
* \brief Initialize all parameters of this device |
|
67 |
*/ |
|
68 |
void InitEnbNetDevice (void); |
|
69 |
||
70 |
/** |
|
71 |
* \brief Starts the run of this device |
|
72 |
*/ |
|
73 |
void Start (void); |
|
74 |
/** |
|
75 |
* \brief Stops the run of this device |
|
76 |
*/ |
|
77 |
void Stop (void); |
|
78 |
||
79 |
/** |
|
80 |
* \brief Set the UE manager |
|
81 |
* \param m the UE manager |
|
82 |
*/ |
|
83 |
void SetUeManager (Ptr<UeManager> m); |
|
84 |
/** |
|
85 |
* \brief Get the UE manager |
|
86 |
* \return the pointer to the UE manager |
|
87 |
*/ |
|
88 |
Ptr<UeManager> GetUeManager (void); |
|
89 |
||
90 |
/** |
|
91 |
* \brief Set the MAC entity |
|
92 |
* \param m the MAC entity |
|
93 |
*/ |
|
94 |
void SetMacEntity (Ptr<EnbMacEntity> m); |
|
95 |
/** |
|
96 |
* \brief Get the MAC entity |
|
97 |
* \return the pointer to the MAC entity |
|
98 |
*/ |
|
99 |
Ptr<EnbMacEntity> GetMacEntity (void); |
|
100 |
||
101 |
||
102 |
/** |
|
103 |
* \brief Start packet transmission. |
|
104 |
* This functipon will called at the end of downlink scheduling |
|
105 |
* to start the transmission of the burst of packet created by the |
|
106 |
* packet-scheduler. |
|
107 |
*/ |
|
108 |
void StartTransmission (void); |
|
109 |
||
110 |
/** |
|
111 |
* \brief Send a pachet burst to the physical layer |
|
112 |
* \param p the packet burst |
|
113 |
* \return |
|
114 |
*/ |
|
115 |
bool SendPacket (Ptr<PacketBurst> p); |
|
116 |
||
117 |
/** |
|
118 |
* \brief Send the PDCCH ideal mesages under an |
|
119 |
* ideal control channel |
|
120 |
*/ |
|
121 |
void SendIdealPdcchMessage (void); |
|
122 |
||
123 |
||
124 |
||
125 |
private: |
|
126 |
bool DoSend (Ptr<Packet> packet, |
|
127 |
const Mac48Address& source, |
|
128 |
const Mac48Address& dest, |
|
129 |
uint16_t protocolNumber); |
|
130 |
||
131 |
void DoReceive (Ptr<Packet> p); |
|
132 |
||
133 |
Ptr<UeManager> m_ueManager; |
|
134 |
||
135 |
Ptr<EnbMacEntity> m_macEntity; |
|
136 |
}; |
|
137 |
||
138 |
} // namespace ns3 |
|
139 |
||
140 |
#endif /* ENB_NET_DEVICE_H */ |