|
ns-3
|
#include <radio-bearer-instance.h>


Public Types | |
| enum | BearerDirection { DIRECTION_TYPE_UL, DIRECTION_TYPE_DL } |
| enum | BearerType { BEARER_TYPE_SRB1, BEARER_TYPE_SRB2, BEARER_TYPE_DRB } |
Public Member Functions | |
| void | SetBearerDirection (BearerDirection direction) |
| Set direction of the bearer. | |
| BearerDirection | GetBearerDirection (void) const |
| Get direction of the bearer. | |
| void | SetBearerType (BearerType type) |
| Set the type of bearer. | |
| BearerType | GetBearerType (void) const |
| Get the type of bearer. | |
| Ptr< LteMacQueue > | GetQueue (void) const |
| bool | Enqueue (Ptr< Packet > packet) |
| enqueue a packet in the queue of the bearer | |
| Ptr< Packet > | Dequeue (void) |
| dequeue a packet from the queue of the bearer | |
| Ptr< Packet > | Dequeue (uint32_t availableByte) |
| dequeue a packet from the queue of the bearer | |
| bool | HasPackets (void) const |
| void | SetQosParameters (Ptr< BearerQosParameters > qosParameters) |
| Set a list of QoS parameters of the Bearer. | |
| Ptr< BearerQosParameters > | GetQosParameters (void) |
| Get a list of QoS parameters of the Bearer. | |
| void | SetRlcEntity (Ptr< RlcEntity > rlc) |
| Set the RLC entity of this bearer. | |
| Ptr< RlcEntity > | GetRlcEntity (void) |
| Get the RLC entity if this bearer. | |
| void | SetIpcsClassifierRecord (IpcsClassifierRecord *c) |
| Set the ip classifier record. | |
| IpcsClassifierRecord * | GetIpcsClassifierRecord (void) |
| Get the ip classifier record. | |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| This method returns the TypeId associated to ns3::RadioBearerInstance. | |
This class implements the LTE radio bearer in which a data flow between UE and eNB will be mapped.
The direction of the bearer
The bearer type
| Ptr< Packet > ns3::RadioBearerInstance::Dequeue | ( | uint32_t | availableByte | ) |
dequeue a packet from the queue of the bearer
| availableByte | number of bytes can be dequeued |
References NS_LOG_FUNCTION.
| bool ns3::RadioBearerInstance::Enqueue | ( | Ptr< Packet > | packet | ) |
enqueue a packet in the queue of the bearer
| packet | the packet to be enqueued |
References ns3::LteMacQueue::Enqueue(), and NS_LOG_FUNCTION.
Get direction of the bearer.
Get the type of bearer.
Get the ip classifier record.
References NS_LOG_FUNCTION.
Referenced by ns3::RrcEntity::Classify().
Get a list of QoS parameters of the Bearer.
| Ptr< LteMacQueue > ns3::RadioBearerInstance::GetQueue | ( | void | ) | const |
References NS_LOG_FUNCTION.
Referenced by ns3::SimplePacketScheduler::DoRunPacketScheduler(), and GetTypeId().
| Ptr< RlcEntity > ns3::RadioBearerInstance::GetRlcEntity | ( | void | ) |
Get the RLC entity if this bearer.
References NS_LOG_FUNCTION.
Referenced by ns3::SimplePacketScheduler::DoRunPacketScheduler().
| TypeId ns3::RadioBearerInstance::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::RadioBearerInstance.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::Object.
References GetQueue(), and ns3::TypeId::SetParent().
| bool ns3::RadioBearerInstance::HasPackets | ( | void | ) | const |
References ns3::LteMacQueue::IsEmpty(), and NS_LOG_FUNCTION.
| void ns3::RadioBearerInstance::SetBearerDirection | ( | BearerDirection | direction | ) |
Set direction of the bearer.
| direction | the direction of the bearer |
| void ns3::RadioBearerInstance::SetBearerType | ( | BearerType | type | ) |
Set the type of bearer.
| type | the QoS type |
Set the ip classifier record.
| c | the pointer to the ip classifier record |
References NS_ASSERT, and NS_LOG_FUNCTION.
| void ns3::RadioBearerInstance::SetQosParameters | ( | Ptr< BearerQosParameters > | qosParameters | ) |
Set a list of QoS parameters of the Bearer.
| qosParameters | the list of QoS parameters |
| void ns3::RadioBearerInstance::SetRlcEntity | ( | Ptr< RlcEntity > | rlc | ) |