diff --git a/src/lte/examples/lena-first-sim.cc b/src/lte/examples/lena-first-sim.cc index 585fa6ed0..75659c330 100644 --- a/src/lte/examples/lena-first-sim.cc +++ b/src/lte/examples/lena-first-sim.cc @@ -23,7 +23,7 @@ #include "ns3/network-module.h" #include "ns3/mobility-module.h" #include "ns3/lte-module.h" -#include "ns3/gtk-config-store.h" +//#include "ns3/gtk-config-store.h" using namespace ns3; int main (int argc, char *argv[]) @@ -66,8 +66,8 @@ int main (int argc, char *argv[]) Simulator::Run (); - GtkConfigStore config; - config.ConfigureAttributes (); + //GtkConfigStore config; + //config.ConfigureAttributes (); Simulator::Destroy (); return 0; diff --git a/src/lte/examples/lena-rlc-calculator.cc b/src/lte/examples/lena-rlc-calculator.cc index 5d8312522..5a5321a89 100644 --- a/src/lte/examples/lena-rlc-calculator.cc +++ b/src/lte/examples/lena-rlc-calculator.cc @@ -26,7 +26,7 @@ #include "ns3/rlc-stats-calculator.h" -#include "ns3/gtk-config-store.h" +//#include "ns3/gtk-config-store.h" using namespace ns3; diff --git a/src/lte/model/lte-enb-cmac-sap.cc b/src/lte/model/lte-enb-cmac-sap.cc new file mode 100644 index 000000000..3497c6965 --- /dev/null +++ b/src/lte/model/lte-enb-cmac-sap.cc @@ -0,0 +1,36 @@ +/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ +/* + * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Marco Miozzo + */ + + +#include "lte-enb-cmac-sap.h" + + +namespace ns3 { + + +LteEnbCmacSapProvider::~LteEnbCmacSapProvider () +{ +} + +LteEnbCmacSapUser::~LteEnbCmacSapUser () +{ +} + +} // namespace ns3 diff --git a/src/lte/model/lte-enb-cmac-sap.h b/src/lte/model/lte-enb-cmac-sap.h index 45c7c16c0..0e4f479a7 100644 --- a/src/lte/model/lte-enb-cmac-sap.h +++ b/src/lte/model/lte-enb-cmac-sap.h @@ -39,6 +39,7 @@ class LteMacSapUser; class LteEnbCmacSapProvider { public: + virtual ~LteEnbCmacSapProvider (); /** * * @@ -108,6 +109,7 @@ public: class LteEnbCmacSapUser { public: + virtual ~LteEnbCmacSapUser (); /** * notify the result of the last LC config operation * diff --git a/src/lte/model/lte-mac-sap.cc b/src/lte/model/lte-mac-sap.cc index 545d0ab4c..c095eeb65 100644 --- a/src/lte/model/lte-mac-sap.cc +++ b/src/lte/model/lte-mac-sap.cc @@ -29,4 +29,8 @@ LteMacSapProvider::~LteMacSapProvider () { } +LteMacSapUser::~LteMacSapUser () +{ +} + } // namespace ns3 diff --git a/src/lte/model/lte-mac-sap.h b/src/lte/model/lte-mac-sap.h index bd4331f24..519071af3 100644 --- a/src/lte/model/lte-mac-sap.h +++ b/src/lte/model/lte-mac-sap.h @@ -92,6 +92,7 @@ public: class LteMacSapUser { public: + virtual ~LteMacSapUser (); /** * Called by the MAC to notify the RLC that the scheduler granted a * transmission opportunity to this RLC instance. diff --git a/src/lte/model/lte-sinr-chunk-processor.cc b/src/lte/model/lte-sinr-chunk-processor.cc index 5d89eb436..fb058571b 100644 --- a/src/lte/model/lte-sinr-chunk-processor.cc +++ b/src/lte/model/lte-sinr-chunk-processor.cc @@ -27,6 +27,11 @@ NS_LOG_COMPONENT_DEFINE ("LteSinrChunkProcessor"); namespace ns3 { +LteSinrChunkProcessor::~LteSinrChunkProcessor () +{ + NS_LOG_FUNCTION (this); +} + LteCqiSinrChunkProcessor::LteCqiSinrChunkProcessor (Ptr p) : m_phy (p) @@ -35,6 +40,13 @@ LteCqiSinrChunkProcessor::LteCqiSinrChunkProcessor (Ptr p) NS_ASSERT (m_phy); } + +LteCqiSinrChunkProcessor::~LteCqiSinrChunkProcessor () +{ + NS_LOG_FUNCTION (this); +} + + void LteCqiSinrChunkProcessor::Start () { diff --git a/src/lte/model/lte-sinr-chunk-processor.h b/src/lte/model/lte-sinr-chunk-processor.h index 04c7f1344..1e4e34bca 100644 --- a/src/lte/model/lte-sinr-chunk-processor.h +++ b/src/lte/model/lte-sinr-chunk-processor.h @@ -42,6 +42,7 @@ namespace ns3 { class LteSinrChunkProcessor : public SimpleRefCount { public: + virtual ~LteSinrChunkProcessor (); virtual void Start () = 0; virtual void EvaluateSinrChunk (const SpectrumValue& sinr, Time duration) = 0; virtual void End () = 0; @@ -57,6 +58,7 @@ public: class LteCqiSinrChunkProcessor : public LteSinrChunkProcessor { public: + virtual ~LteCqiSinrChunkProcessor (); LteCqiSinrChunkProcessor (Ptr p); virtual void Start (); virtual void EvaluateSinrChunk (const SpectrumValue& sinr, Time duration); diff --git a/src/lte/model/lte-ue-cmac-sap.cc b/src/lte/model/lte-ue-cmac-sap.cc new file mode 100644 index 000000000..a8922585b --- /dev/null +++ b/src/lte/model/lte-ue-cmac-sap.cc @@ -0,0 +1,36 @@ +/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ +/* + * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Marco Miozzo + */ + + +#include "lte-ue-cmac-sap.h" + + +namespace ns3 { + + +LteUeCmacSapProvider::~LteUeCmacSapProvider () +{ +} + +LteUeCmacSapUser::~LteUeCmacSapUser () +{ +} + +} // namespace ns3 \ No newline at end of file diff --git a/src/lte/model/lte-ue-cmac-sap.h b/src/lte/model/lte-ue-cmac-sap.h index f020a6063..f563ff329 100644 --- a/src/lte/model/lte-ue-cmac-sap.h +++ b/src/lte/model/lte-ue-cmac-sap.h @@ -39,6 +39,7 @@ class LteMacSapUser; class LteUeCmacSapProvider { public: + virtual ~LteUeCmacSapProvider (); /** * called by the RRC after going to RRC connected * @@ -62,6 +63,7 @@ public: class LteUeCmacSapUser { public: + virtual ~LteUeCmacSapUser (); virtual void LcConfigCompleted () = 0; }; diff --git a/src/lte/model/pf-ff-mac-scheduler.cc b/src/lte/model/pf-ff-mac-scheduler.cc index eb8060181..49330225d 100644 --- a/src/lte/model/pf-ff-mac-scheduler.cc +++ b/src/lte/model/pf-ff-mac-scheduler.cc @@ -289,7 +289,7 @@ PfFfMacScheduler::DoCschedLcConfigReq (const struct FfMacCschedSapProvider::Csch NS_LOG_FUNCTION (this << " New LC, rnti: " << params.m_rnti); std::map ::iterator it; - for (uint i = 0; i < params.m_logicalChannelConfigList.size (); i++) + for (uint16_t i = 0; i < params.m_logicalChannelConfigList.size (); i++) { pfsFlowId_t flow; flow.m_rnti = params.m_rnti; diff --git a/src/lte/wscript b/src/lte/wscript index f6ad506e9..66e73d2be 100644 --- a/src/lte/wscript +++ b/src/lte/wscript @@ -32,6 +32,8 @@ def build(bld): 'model/ff-mac-sched-sap.cc', 'model/lte-mac-sap.cc', 'model/ff-mac-scheduler.cc', + 'model/lte-enb-cmac-sap.cc', + 'model/lte-ue-cmac-sap.cc', 'model/rr-ff-mac-scheduler.cc', 'model/lte-enb-mac.cc', 'model/lte-ue-mac.cc',