lte: Add LteEnbNetDevice::HasCellId
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user