#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
dequeue a packet from the queue of the bearer
availableByte | number of bytes can be dequeued |
enqueue a packet in the queue of the bearer
packet | the packet to be enqueued |
BearerDirection ns3::RadioBearerInstance::GetBearerDirection | ( | void | ) | const |
Get direction of the bearer.
BearerType ns3::RadioBearerInstance::GetBearerType | ( | void | ) | const |
Get the type of bearer.
IpcsClassifierRecord* ns3::RadioBearerInstance::GetIpcsClassifierRecord | ( | void | ) |
Get the ip classifier record.
Ptr<BearerQosParameters> ns3::RadioBearerInstance::GetQosParameters | ( | void | ) |
Get a list of QoS parameters of the Bearer.
Ptr<LteMacQueue> ns3::RadioBearerInstance::GetQueue | ( | void | ) | const |
Get the RLC entity if this bearer.
static 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.
bool ns3::RadioBearerInstance::HasPackets | ( | void | ) | const |
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 |
void ns3::RadioBearerInstance::SetIpcsClassifierRecord | ( | IpcsClassifierRecord * | c | ) |
Set the ip classifier record.
c | the pointer to the ip classifier record |
void ns3::RadioBearerInstance::SetQosParameters | ( | Ptr< BearerQosParameters > | qosParameters | ) |
Set a list of QoS parameters of the Bearer.
qosParameters | the list of QoS parameters |
Set the RLC entity of this bearer.
rlc | the RLC entity |