ns-3
ns3::RadioBearerInstance Class Reference

#include <radio-bearer-instance.h>

Inheritance diagram for ns3::RadioBearerInstance:
Collaboration diagram for ns3::RadioBearerInstance:

List of all members.

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< LteMacQueueGetQueue (void) const
bool Enqueue (Ptr< Packet > packet)
 enqueue a packet in the queue of the bearer
Ptr< PacketDequeue (void)
 dequeue a packet from the queue of the bearer
Ptr< PacketDequeue (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< BearerQosParametersGetQosParameters (void)
 Get a list of QoS parameters of the Bearer.
void SetRlcEntity (Ptr< RlcEntity > rlc)
 Set the RLC entity of this bearer.
Ptr< RlcEntityGetRlcEntity (void)
 Get the RLC entity if this bearer.
void SetIpcsClassifierRecord (IpcsClassifierRecord *c)
 Set the ip classifier record.
IpcsClassifierRecordGetIpcsClassifierRecord (void)
 Get the ip classifier record.

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::RadioBearerInstance.

Detailed Description

This class implements the LTE radio bearer in which a data flow between UE and eNB will be mapped.


Member Enumeration Documentation

The direction of the bearer


Member Function Documentation

Ptr< Packet > ns3::RadioBearerInstance::Dequeue ( uint32_t  availableByte)

dequeue a packet from the queue of the bearer

Parameters:
availableBytenumber of bytes can be dequeued

References NS_LOG_FUNCTION.

enqueue a packet in the queue of the bearer

Parameters:
packetthe packet to be enqueued

References ns3::LteMacQueue::Enqueue(), and NS_LOG_FUNCTION.

Get direction of the bearer.

Returns:
the direction of the bearer

Get the type of bearer.

Returns:
the type the bearer

Get the ip classifier record.

Returns:
the pointer to the ip classifier record

References NS_LOG_FUNCTION.

Referenced by ns3::RrcEntity::Classify().

Get a list of QoS parameters of the Bearer.

Returns:
the pointer to the list of QoS parameters
Returns:
the queue of the bearer

References NS_LOG_FUNCTION.

Referenced by ns3::SimplePacketScheduler::DoRunPacketScheduler(), and GetTypeId().

Get the RLC entity if this bearer.

Returns:
the pointer to the RLC entity

References NS_LOG_FUNCTION.

Referenced by ns3::SimplePacketScheduler::DoRunPacketScheduler().

This method returns the TypeId associated to ns3::RadioBearerInstance.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::RadioBearerInstance
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::RadioBearerInstance

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
Returns:
true if the bearer has at least one packet in its queue, false otherwise

References ns3::LteMacQueue::IsEmpty(), and NS_LOG_FUNCTION.

Set direction of the bearer.

Parameters:
directionthe direction of the bearer

Set the type of bearer.

Parameters:
typethe QoS type

Set the ip classifier record.

Parameters:
cthe pointer to the ip classifier record

References NS_ASSERT, and NS_LOG_FUNCTION.

Set a list of QoS parameters of the Bearer.

Parameters:
qosParametersthe list of QoS parameters

Set the RLC entity of this bearer.

Parameters:
rlcthe RLC entity

References NS_LOG_FUNCTION.


The documentation for this class was generated from the following files: