LEFT | RIGHT |
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) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) | 3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 { | 154 { |
155 m_dlCellId[p] = cellId; | 155 m_dlCellId[p] = cellId; |
156 m_flowId[p] = LteFlowId_t (rnti, lcid); | 156 m_flowId[p] = LteFlowId_t (rnti, lcid); |
157 m_dlTxPackets[p]++; | 157 m_dlTxPackets[p]++; |
158 m_dlTxData[p] += packetSize; | 158 m_dlTxData[p] += packetSize; |
159 } | 159 } |
160 m_pendingOutput = true; | 160 m_pendingOutput = true; |
161 } | 161 } |
162 | 162 |
163 void | 163 void |
164 RadioBearerStatsCalculator::UlRxPdu (uint16_t cellId, uint64_t imsi, uint16_t rn
ti, uint8_t lcid, uint32_t packetSize, | 164 RadioBearerStatsCalculator::UlRxPdu (uint16_t cellId, uint64_t imsi, uint16_t rn
ti, uint8_t lcid, uint32_t packetSize, uint64_t delay) |
165 uint64_t delay) | |
166 { | 165 { |
167 NS_LOG_FUNCTION (this << "UlRxPDU" << cellId << imsi << rnti << (uint32_t) lci
d << packetSize << delay); | 166 NS_LOG_FUNCTION (this << "UlRxPDU" << cellId << imsi << rnti << (uint32_t) lci
d << packetSize << delay); |
168 ImsiLcidPair_t p (imsi, lcid); | 167 ImsiLcidPair_t p (imsi, lcid); |
169 if (Simulator::Now () >= m_startTime) | 168 if (Simulator::Now () >= m_startTime) |
170 { | 169 { |
171 m_ulCellId[p] = cellId; | 170 m_ulCellId[p] = cellId; |
172 m_ulRxPackets[p]++; | 171 m_ulRxPackets[p]++; |
173 m_ulRxData[p] += packetSize; | 172 m_ulRxData[p] += packetSize; |
174 | 173 |
175 Uint64StatsMap::iterator it = m_ulDelay.find (p); | 174 Uint64StatsMap::iterator it = m_ulDelay.find (p); |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 m_dlPdcpOutputFilename = outputFilename; | 640 m_dlPdcpOutputFilename = outputFilename; |
642 } | 641 } |
643 | 642 |
644 std::string | 643 std::string |
645 RadioBearerStatsCalculator::GetDlPdcpOutputFilename (void) | 644 RadioBearerStatsCalculator::GetDlPdcpOutputFilename (void) |
646 { | 645 { |
647 return m_dlPdcpOutputFilename; | 646 return m_dlPdcpOutputFilename; |
648 } | 647 } |
649 | 648 |
650 } // namespace ns3 | 649 } // namespace ns3 |
LEFT | RIGHT |