DrbActivatior allows user to activate bearers for UEs when EPC is not used. More...
Public Member Functions | |
DrbActivator (Ptr< NetDevice > ueDevice, EpsBearer bearer) | |
DrbActivator Constructor. | |
void | ActivateDrb (uint64_t imsi, uint16_t cellId, uint16_t rnti) |
Procedure firstly checks if bearer was not activated, if IMSI from trace source equals configured one and if UE is really in RRC connected state. | |
Public Member Functions inherited from ns3::SimpleRefCount< DrbActivator > | |
SimpleRefCount () | |
Default constructor. | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. | |
void | Ref () const |
Increment the reference count. | |
void | Unref () const |
Decrement the reference count. | |
Static Public Member Functions | |
static void | ActivateCallback (Ptr< DrbActivator > a, std::string context, uint64_t imsi, uint16_t cellId, uint16_t rnti) |
Function hooked to the Enb RRC Connection Established trace source Fired upon successful RRC connection establishment. | |
Private Attributes | |
bool | m_active |
Bearer can be activated only once. | |
EpsBearer | m_bearer |
Configuration of bearer which will be activated. | |
uint64_t | m_imsi |
imsi the unique UE identifier | |
Ptr< NetDevice > | m_ueDevice |
UeNetDevice for which bearer will be activated. | |
DrbActivatior allows user to activate bearers for UEs when EPC is not used.
Activation function is hooked to the Enb RRC Connection Established trace source. When UE change its RRC state to CONNECTED_NORMALLY, activation function is called and bearer is activated.
Definition at line 1177 of file lte-helper.cc.
DrbActivator Constructor.
ueDevice | the UeNetDevice for which bearer will be activated |
bearer | the bearer configuration |
Definition at line 1237 of file lte-helper.cc.
|
static |
Function hooked to the Enb RRC Connection Established trace source Fired upon successful RRC connection establishment.
a | DrbActivator object |
context | |
imsi | |
cellId | |
rnti |
Definition at line 1246 of file lte-helper.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::LteHelper::ActivateDataRadioBearer().
void ns3::DrbActivator::ActivateDrb | ( | uint64_t | imsi, |
uint16_t | cellId, | ||
uint16_t | rnti ) |
Procedure firstly checks if bearer was not activated, if IMSI from trace source equals configured one and if UE is really in RRC connected state.
If all requirements are met, it performs bearer activation.
imsi | |
cellId | |
rnti |
Definition at line 1257 of file lte-helper.cc.
References ns3::LteUeRrc::CONNECTED_NORMALLY, ns3::UeManager::CONNECTED_NORMALLY, ns3::UeManager::CONNECTION_RECONFIGURATION, m_active, m_bearer, m_imsi, m_ueDevice, NS_ASSERT, and NS_LOG_FUNCTION.
|
private |
Bearer can be activated only once.
This value stores state of bearer. Initially is set to false and changed to true during bearer activation.
Definition at line 1222 of file lte-helper.cc.
Referenced by ActivateDrb().
|
private |
Configuration of bearer which will be activated.
Definition at line 1230 of file lte-helper.cc.
Referenced by ActivateDrb().
|
private |
imsi the unique UE identifier
Definition at line 1234 of file lte-helper.cc.
Referenced by ActivateDrb().
UeNetDevice for which bearer will be activated.
Definition at line 1226 of file lte-helper.cc.
Referenced by ActivateDrb().