lte: Add LteEnbRrc::ComponentCarrierToCellId

This commit is contained in:
Alexander Krotov
2017-06-14 12:40:55 +03:00
parent e7b361b324
commit 27840ea1c9
2 changed files with 16 additions and 0 deletions

View File

@@ -2130,6 +2130,13 @@ LteEnbRrc::CellToComponentCarrierId (uint16_t cellId)
NS_FATAL_ERROR ("Cell " << cellId << " not found in CC map");
}
uint16_t
LteEnbRrc::ComponentCarrierToCellId (uint8_t componentCarrierId)
{
NS_LOG_FUNCTION (this << componentCarrierId);
return m_componentCarrierPhyConf.at (componentCarrierId)->GetCellId ();
}
bool
LteEnbRrc::SendData (Ptr<Packet> packet)
{

View File

@@ -889,6 +889,15 @@ public:
*/
uint8_t CellToComponentCarrierId (uint16_t cellId);
/**
* convert the component carrier id to cell id
*
* \param componentCarrierId component carrier ID
*
* \return corresponding cell ID
*/
uint16_t ComponentCarrierToCellId (uint8_t componentCarrierId);
/**
* Enqueue an IP data packet on the proper bearer for downlink
* transmission. Normally expected to be called by the NetDevice