OLD | NEW |
(Empty) | |
| 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
| 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_MAC_ENTITY_H |
| 22 #define ENB_MAC_ENTITY_H |
| 23 |
| 24 #include "ns3/object.h" |
| 25 #include <list> |
| 26 #include "mac-entity.h" |
| 27 |
| 28 namespace ns3 { |
| 29 |
| 30 |
| 31 /** |
| 32 * This class implements the MAC layer of the eNodeB device |
| 33 */ |
| 34 |
| 35 class PacketScheduler; |
| 36 class CqiIdealControlMessage; |
| 37 class PdcchMapIdealControlMessage; |
| 38 |
| 39 class EnbMacEntity : public MacEntity |
| 40 { |
| 41 public: |
| 42 static TypeId GetTypeId (void); |
| 43 |
| 44 EnbMacEntity (void); |
| 45 virtual ~EnbMacEntity (void); |
| 46 |
| 47 /* |
| 48 * \brief Set the uplink packet scheduler |
| 49 * \param s the packet scheduler for the uplink |
| 50 */ |
| 51 void SetUplinkPacketScheduler (Ptr<PacketScheduler> s); |
| 52 /**· |
| 53 * \brief Set the downlink packet scheduler |
| 54 * \param s the packet scheduler for the downlink |
| 55 */ |
| 56 void SetDownlinkPacketScheduler (Ptr<PacketScheduler> s); |
| 57 /**· |
| 58 * \brief Get the uplink packet scheduler |
| 59 * \return the pointer to the uplink packet scheduler |
| 60 */ |
| 61 Ptr<PacketScheduler> GetUplinkPacketScheduler (void); |
| 62 /**· |
| 63 * \brief Get the downlink packet scheduler |
| 64 * \return the pointer to the downlink packet scheduler |
| 65 */ |
| 66 Ptr<PacketScheduler> GetDownlinkPacketScheduler (void); |
| 67 |
| 68 |
| 69 void ReceiveCqiIdealControlMessage (Ptr<CqiIdealControlMessage> msg); |
| 70 |
| 71 void SendPdcchMapIdealControlMessage (Ptr<PdcchMapIdealControlMessage> msg); |
| 72 |
| 73 private: |
| 74 |
| 75 Ptr<PacketScheduler> m_uplinkScheduler; |
| 76 Ptr<PacketScheduler> m_downlinkScheduler; |
| 77 }; |
| 78 |
| 79 |
| 80 } // namespace ns3 |
| 81 |
| 82 #endif /* ENB_MAC_ENTITY_H */ |
OLD | NEW |