added assert for correct scheduling of LteUePhy::SubframeIndication

This commit is contained in:
Nicola Baldo
2012-07-31 12:57:55 +02:00
parent 91073a0006
commit 616f427626

View File

@@ -154,6 +154,8 @@ LteUePhy::LteUePhy (Ptr<LteSpectrumPhy> dlPhy, Ptr<LteSpectrumPhy> ulPhy)
std::vector <int> ulRb;
m_subChannelsForTransmissionQueue.resize (m_macChTtiDelay, ulRb);
NS_ASSERT_MSG (Simulator::Now ().GetNanoSeconds () == 0,
"Cannot create UE devices after simulation started");
Simulator::ScheduleNow (&LteUePhy::SubframeIndication, this, 1, 1);
}