From 34ff1d296ee758be59779bc047cade7897302fae Mon Sep 17 00:00:00 2001 From: Nicola Baldo Date: Tue, 15 Mar 2011 11:22:52 +0100 Subject: [PATCH] removed unused enb-lte-spectrum-phy files --- src/lte/model/enb-lte-spectrum-phy.cc | 94 --------------------------- src/lte/model/enb-lte-spectrum-phy.h | 56 ---------------- 2 files changed, 150 deletions(-) delete mode 100644 src/lte/model/enb-lte-spectrum-phy.cc delete mode 100644 src/lte/model/enb-lte-spectrum-phy.h diff --git a/src/lte/model/enb-lte-spectrum-phy.cc b/src/lte/model/enb-lte-spectrum-phy.cc deleted file mode 100644 index f93eaff33..000000000 --- a/src/lte/model/enb-lte-spectrum-phy.cc +++ /dev/null @@ -1,94 +0,0 @@ -/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ -/* - * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari - * - * 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: Giuseppe Piro - */ - -#include -#include -#include -#include -#include -#include -#include "ns3/spectrum-error-model.h" -#include "lte-spectrum-phy.h" -#include "enb-lte-spectrum-phy.h" -#include "lte-net-device.h" -#include "lte-spectrum-value-helper.h" - -NS_LOG_COMPONENT_DEFINE ("EnbLteSpectrumPhy"); - -namespace ns3 { - - -NS_OBJECT_ENSURE_REGISTERED (EnbLteSpectrumPhy); - -EnbLteSpectrumPhy::EnbLteSpectrumPhy () -{ - SetMobility (0); - SetDevice (0); - SetChannel (0); - SetState (LteSpectrumPhy::IDLE); - // GetSpectrumInterference ()->SetErrorModel (CreateObject ()); - - LteSpectrumValueHelper psdHelper; - Ptr noisePsd = psdHelper.CreateUplinkNoisePowerSpectralDensity (); - SetNoisePowerSpectralDensity (noisePsd); -} - - -EnbLteSpectrumPhy::~EnbLteSpectrumPhy () -{ -} - - -TypeId -EnbLteSpectrumPhy::GetTypeId (void) -{ - static TypeId tid = TypeId ("ns3::EnbLteSpectrumPhy") - .SetParent () - .AddConstructor () - ; - return tid; -} - - - - -void -EnbLteSpectrumPhy::CalcSinrValues (Ptr rxPsd,Ptr noise) -{ - NS_LOG_FUNCTION (this << rxPsd << noise); - /* - * TO DO: - * Compute the SINR of the incoming signal, using the rxPsd and the Noise Psd. - * Transfer this value to the device that will compute the CQI valuei or the MCS. - * - * Downlink: - * the UE receives the signal from the eNB. It computes the SINR and tranfers - * it to the LteUeNetDevice. The LteUeNetDevice, receiving SINR values, uses the AMC module to convert - * SINR to CQI. Then, it will send CQI feedback to the eNB. - * - * Uplink: - * when the eNB receives the signal from a UE, it must computes the quality of channel - * for this particular uplink connection. So, the eNB computes the SINR and transfers it to the - * net device. - */ -} - - -} // namespace ns3 diff --git a/src/lte/model/enb-lte-spectrum-phy.h b/src/lte/model/enb-lte-spectrum-phy.h deleted file mode 100644 index 656e5cd69..000000000 --- a/src/lte/model/enb-lte-spectrum-phy.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ -/* - * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari - * - * 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: Giuseppe Piro - */ - -#ifndef ENB_LTE_SPECTRUM_PHY_H -#define ENB_LTE_SPECTRUM_PHY_H - - -#include "lte-spectrum-phy.h" - -namespace ns3 { - -class LteNetDevice; -class LteEnbNetDevice; - -/** - * The EnbLteSpectrumPhy models the UL/DL physical layer for the eNodeB device - */ -class EnbLteSpectrumPhy : public LteSpectrumPhy -{ - -public: - EnbLteSpectrumPhy (); - virtual ~EnbLteSpectrumPhy (); - - static TypeId GetTypeId (void); - - void CalcSinrValues (Ptr rxPsd, Ptr noise); - -private: -}; - - - - - - -} - -#endif /* ENB_LTE_SPECTRUM_PHY_H */