src/lte/model/lte-phy.cc
changeset 7980 f07d99163a56
parent 7949 3bf9450ac03f
child 7981 aacecd825d99
--- a/src/lte/model/lte-phy.cc	Wed Apr 20 16:44:38 2011 +0200
+++ b/src/lte/model/lte-phy.cc	Tue Apr 26 12:35:46 2011 +0200
@@ -35,12 +35,16 @@
 
 NS_OBJECT_ENSURE_REGISTERED (LtePhy);
 
-
+LtePhy::LtePhy ()
+{
+  NS_LOG_FUNCTION (this);
+  NS_FATAL_ERROR ("This constructor should not be called");
+}
 
-LtePhy::LtePhy ()
+LtePhy::LtePhy (Ptr<LteSpectrumPhy> dlPhy, Ptr<LteSpectrumPhy> ulPhy)
   : m_netDevice (0),
-    m_downlinkSpectrumPhy (0),
-    m_uplinkSpectrumPhy (0),
+    m_downlinkSpectrumPhy (dlPhy),
+    m_uplinkSpectrumPhy (ulPhy),
     m_txPower (43), // dBm
     m_tti (0.001),
     m_ulBandwidth (0),
@@ -108,21 +112,6 @@
 
 
 void
-LtePhy::SetDownlinkSpectrumPhy (Ptr<LteSpectrumPhy> s)
-{
-  NS_LOG_FUNCTION (this << s);
-  m_downlinkSpectrumPhy = s;
-}
-
-
-void
-LtePhy::SetUplinkSpectrumPhy (Ptr<LteSpectrumPhy> s)
-{
-  NS_LOG_FUNCTION (this << s);
-  m_uplinkSpectrumPhy = s;
-}
-
-void
 LtePhy::SetDownlinkChannel (Ptr<SpectrumChannel> c)
 {
   NS_LOG_FUNCTION (this << c);