OLD | NEW |
(Empty) | |
| 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
| 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: Nicola Baldo <nbaldo@cttc.es> |
| 19 * Marco Miozzo <marco.miozzo@cttc.es> |
| 20 */ |
| 21 |
| 22 #ifndef NIST_FF_MAC_SCHEDULER_H |
| 23 #define NIST_FF_MAC_SCHEDULER_H |
| 24 |
| 25 #include <ns3/object.h> |
| 26 |
| 27 |
| 28 namespace ns3 { |
| 29 |
| 30 |
| 31 |
| 32 class NistFfMacCschedSapUser; |
| 33 class NistFfMacSchedSapUser; |
| 34 class NistFfMacCschedSapProvider; |
| 35 class NistFfMacSchedSapProvider; |
| 36 class NistLteFfrSapProvider; |
| 37 class NistLteFfrSapUser; |
| 38 |
| 39 /** |
| 40 * \ingroup lte |
| 41 * \defgroup ff-api FF MAC Schedulers |
| 42 */ |
| 43 ····· |
| 44 /** |
| 45 * \ingroup ff-api |
| 46 * |
| 47 * This abstract base class identifies the interface by means of which |
| 48 * the helper object can plug on the MAC a scheduler implementation based on the |
| 49 * FF MAC Sched API. |
| 50 * |
| 51 * |
| 52 */ |
| 53 class NistFfMacScheduler : public Object |
| 54 { |
| 55 public: |
| 56 /** |
| 57 * The type of UL CQI to be filtered (ALL means accept all the CQI, |
| 58 * where a new CQI of any type overwrite the old one, even of another type) |
| 59 * |
| 60 */ |
| 61 enum UlCqiFilter_t |
| 62 { |
| 63 SRS_UL_CQI, |
| 64 PUSCH_UL_CQI, |
| 65 ALL_UL_CQI |
| 66 }; |
| 67 /** |
| 68 * constructor |
| 69 * |
| 70 */ |
| 71 NistFfMacScheduler (); |
| 72 /** |
| 73 * destructor |
| 74 * |
| 75 */ |
| 76 virtual ~NistFfMacScheduler (); |
| 77 |
| 78 // inherited from Object |
| 79 virtual void DoDispose (void); |
| 80 static TypeId GetTypeId (void); |
| 81 |
| 82 /** |
| 83 * set the user part of the FfMacCschedSap that this Scheduler will |
| 84 * interact with. Normally this part of the SAP is exported by the MAC. |
| 85 * |
| 86 * \param s |
| 87 */ |
| 88 virtual void SetNistFfMacCschedSapUser (NistFfMacCschedSapUser* s) = 0; |
| 89 |
| 90 /** |
| 91 * |
| 92 * set the user part of the FfMacSchedSap that this Scheduler will |
| 93 * interact with. Normally this part of the SAP is exported by the MAC. |
| 94 * |
| 95 * \param s |
| 96 */ |
| 97 virtual void SetNistFfMacSchedSapUser (NistFfMacSchedSapUser* s) = 0; |
| 98 |
| 99 /** |
| 100 * |
| 101 * \return the Provider part of the FfMacCschedSap provided by the Scheduler |
| 102 */ |
| 103 virtual NistFfMacCschedSapProvider* GetNistFfMacCschedSapProvider () = 0; |
| 104 |
| 105 /** |
| 106 * |
| 107 * \return the Provider part of the FfMacSchedSap provided by the Scheduler |
| 108 */ |
| 109 virtual NistFfMacSchedSapProvider* GetNistFfMacSchedSapProvider () = 0; |
| 110 |
| 111 //FFR SAPs |
| 112 /** |
| 113 * |
| 114 * Set the Provider part of the LteFfrSap that this Scheduler will |
| 115 * interact with |
| 116 * |
| 117 * \param s |
| 118 */ |
| 119 virtual void SetNistLteFfrSapProvider (NistLteFfrSapProvider* s) = 0; |
| 120 |
| 121 /** |
| 122 * |
| 123 * \return the User part of the LteFfrSap provided by the FfrAlgorithm |
| 124 */ |
| 125 virtual NistLteFfrSapUser* GetNistLteFfrSapUser () = 0; |
| 126 ·· |
| 127 protected: |
| 128 ···· |
| 129 UlCqiFilter_t m_ulCqiFilter; |
| 130 |
| 131 }; |
| 132 |
| 133 } // namespace ns3 |
| 134 |
| 135 #endif /* NIST_FF_MAC_SCHEDULER_H */ |
OLD | NEW |