OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari | 3 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 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 | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 m_controlMessagesQueue.at (0).push_back (msg); | 857 m_controlMessagesQueue.at (0).push_back (msg); |
858 } | 858 } |
859 | 859 |
860 | 860 |
861 void | 861 void |
862 LteUePhy::ReceiveLteControlMessageList (std::list<Ptr<LteControlMessage> > msgLi
st) | 862 LteUePhy::ReceiveLteControlMessageList (std::list<Ptr<LteControlMessage> > msgLi
st) |
863 { | 863 { |
864 NS_LOG_FUNCTION (this); | 864 NS_LOG_FUNCTION (this); |
865 | 865 |
866 std::list<Ptr<LteControlMessage> >::iterator it; | 866 std::list<Ptr<LteControlMessage> >::iterator it; |
| 867 NS_LOG_DEBUG (this << " I am rnti = " << m_rnti << " and I received msgs " <<
(uint16_t) msgList.size ()); |
867 for (it = msgList.begin (); it != msgList.end (); it++) | 868 for (it = msgList.begin (); it != msgList.end (); it++) |
868 { | 869 { |
869 Ptr<LteControlMessage> msg = (*it); | 870 Ptr<LteControlMessage> msg = (*it); |
870 | 871 |
871 if (msg->GetMessageType () == LteControlMessage::DL_DCI) | 872 if (msg->GetMessageType () == LteControlMessage::DL_DCI) |
872 { | 873 { |
873 Ptr<DlDciLteControlMessage> msg2 = DynamicCast<DlDciLteControlMessage>
(msg); | 874 Ptr<DlDciLteControlMessage> msg2 = DynamicCast<DlDciLteControlMessage>
(msg); |
874 | 875 |
875 DlDciListElement_s dci = msg2->GetDci (); | 876 DlDciListElement_s dci = msg2->GetDci (); |
| 877 NS_LOG_DEBUG (this << " I am rnti = " << m_rnti << " and I received dc
i for rnti " << dci.m_rnti); |
876 if (dci.m_rnti != m_rnti) | 878 if (dci.m_rnti != m_rnti) |
877 { | 879 { |
878 // DCI not for me | 880 // DCI not for me |
879 continue; | 881 continue; |
880 } | 882 } |
881 | 883 |
882 if (dci.m_resAlloc != 0) | 884 if (dci.m_resAlloc != 0) |
883 { | 885 { |
884 NS_FATAL_ERROR ("Resource Allocation type not implemented"); | 886 NS_FATAL_ERROR ("Resource Allocation type not implemented"); |
885 } | 887 } |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1451 State oldState = m_state; | 1453 State oldState = m_state; |
1452 m_state = newState; | 1454 m_state = newState; |
1453 NS_LOG_INFO (this << " cellId=" << m_cellId << " rnti=" << m_rnti | 1455 NS_LOG_INFO (this << " cellId=" << m_cellId << " rnti=" << m_rnti |
1454 << " UePhy " << ToString (oldState) | 1456 << " UePhy " << ToString (oldState) |
1455 << " --> " << ToString (newState)); | 1457 << " --> " << ToString (newState)); |
1456 m_stateTransitionTrace (m_cellId, m_rnti, oldState, newState); | 1458 m_stateTransitionTrace (m_cellId, m_rnti, oldState, newState); |
1457 } | 1459 } |
1458 | 1460 |
1459 | 1461 |
1460 } // namespace ns3 | 1462 } // namespace ns3 |
OLD | NEW |