lte: Add LteEnbNetDevice::HasCellId

This commit is contained in:
Alexander Krotov
2017-06-13 12:50:27 +03:00
parent 43ae267d6a
commit d35b539d49
2 changed files with 19 additions and 0 deletions

View File

@@ -225,6 +225,19 @@ LteEnbNetDevice::GetCellId () const
return m_cellId;
}
bool
LteEnbNetDevice::HasCellId (uint16_t cellId) const
{
for (auto &it: m_ccMap)
{
if (it.second->GetCellId () == cellId)
{
return true;
}
}
return false;
}
uint8_t
LteEnbNetDevice::GetUlBandwidth () const
{

View File

@@ -107,6 +107,12 @@ public:
*/
uint16_t GetCellId () const;
/**
* \param cellId cell ID
* \return true if cellId is served by this eNB
*/
bool HasCellId (uint16_t cellId) const;
/**
* \return the uplink bandwidth in RBs
*/