Tag used to define the RNTI and LC id for each MAC packet transmitted. More...
#include "lte-radio-bearer-tag.h"
Public Member Functions | |
| LteRadioBearerTag () | |
| Create an empty LteRadioBearerTag. | |
| LteRadioBearerTag (uint16_t rnti, uint8_t lcId) | |
| Create a LteRadioBearerTag with the given RNTI and LC id. | |
| LteRadioBearerTag (uint16_t rnti, uint8_t lcId, uint8_t layer) | |
| Create a LteRadioBearerTag with the given RNTI, LC id and layer. | |
| void | Deserialize (TagBuffer i) override |
| TypeId | GetInstanceTypeId () const override |
| Get the most derived TypeId for this Object. | |
| uint8_t | GetLayer () const |
| Get layer function. | |
| uint8_t | GetLcid () const |
| Get LCID function. | |
| uint16_t | GetRnti () const |
| Get RNTI function. | |
| uint32_t | GetSerializedSize () const override |
| void | Print (std::ostream &os) const override |
| void | Serialize (TagBuffer i) const override |
| void | SetLayer (uint8_t layer) |
| Set the layer id to the given value. | |
| void | SetLcid (uint8_t lcid) |
| Set the LC id to the given value. | |
| void | SetRnti (uint16_t rnti) |
| Set the RNTI to the given value. | |
| Public Member Functions inherited from ns3::ObjectBase | |
| virtual | ~ObjectBase () |
| Virtual destructor. | |
| void | GetAttribute (std::string name, AttributeValue &value, bool permissive=false) const |
| Get the value of an attribute, raising fatal errors if unsuccessful. | |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
| Get the value of an attribute without raising errors. | |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| Set a single attribute, raising fatal errors if unsuccessful. | |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
| Set a single attribute without raising errors. | |
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
| Connect a TraceSource to a Callback with a context. | |
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
| Connect a TraceSource to a Callback without a context. | |
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
| Disconnect from a TraceSource a Callback previously connected with a context. | |
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
| Disconnect from a TraceSource a Callback previously connected without a context. | |
Static Public Member Functions | |
| static TypeId | GetTypeId () |
| Get the type ID. | |
| Static Public Member Functions inherited from ns3::Tag | |
| static TypeId | GetTypeId () |
| Get the type ID. | |
| Static Public Member Functions inherited from ns3::ObjectBase | |
| static TypeId | GetTypeId () |
| Get the type ID. | |
Private Attributes | |
| uint8_t | m_layer |
| layer | |
| uint8_t | m_lcid |
| LCID. | |
| uint16_t | m_rnti |
| RNTI. | |
Additional Inherited Members | |
| Protected Member Functions inherited from ns3::ObjectBase | |
| void | ConstructSelf (const AttributeConstructionList &attributes) |
| Complete construction of ObjectBase; invoked by derived classes. | |
| virtual void | NotifyConstructionCompleted () |
| Notifier called once the ObjectBase is fully constructed. | |
| Related Symbols inherited from ns3::ObjectBase | |
| static TypeId | GetObjectIid () |
| Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. | |
Tag used to define the RNTI and LC id for each MAC packet transmitted.
Introspection did not find any typical Config paths
No TraceSources are defined for this type
Group: Lte
Size of this type is 16 bytes (on a 64-bit architecture).
Definition at line 22 of file lte-radio-bearer-tag.h.
| ns3::LteRadioBearerTag::LteRadioBearerTag | ( | ) |
Create an empty LteRadioBearerTag.
Definition at line 47 of file lte-radio-bearer-tag.cc.
References m_layer, m_lcid, and m_rnti.
Referenced by GetTypeId().
| ns3::LteRadioBearerTag::LteRadioBearerTag | ( | uint16_t | rnti, |
| uint8_t | lcId ) |
Create a LteRadioBearerTag with the given RNTI and LC id.
| rnti | the RNTI |
| lcId | the LCID |
Definition at line 54 of file lte-radio-bearer-tag.cc.
| ns3::LteRadioBearerTag::LteRadioBearerTag | ( | uint16_t | rnti, |
| uint8_t | lcId, | ||
| uint8_t | layer ) |
Create a LteRadioBearerTag with the given RNTI, LC id and layer.
| rnti | the RNTI |
| lcId | the LCID |
| layer | the layer |
Definition at line 60 of file lte-radio-bearer-tag.cc.
|
overridevirtual |
| i | the buffer to read data from. |
Read the content of the tag from the provided tag buffer. DO NOT attempt to read more bytes than you wrote with Tag::Serialize.
Implements ns3::Tag.
Definition at line 100 of file lte-radio-bearer-tag.cc.
References m_layer, m_lcid, m_rnti, ns3::TagBuffer::ReadU16(), and ns3::TagBuffer::ReadU8().
|
overridevirtual |
Get the most derived TypeId for this Object.
This method is provided by ns3::Object::GetInstanceTypeId but classes which derive from ns3::ObjectBase directly have to implement it themselves. Typically, this method should simply return the output of GetTypeId().
Implements ns3::ObjectBase.
Definition at line 42 of file lte-radio-bearer-tag.cc.
References GetTypeId().
| uint8_t ns3::LteRadioBearerTag::GetLayer | ( | ) | const |
Get layer function.
Definition at line 120 of file lte-radio-bearer-tag.cc.
References m_layer.
Referenced by ns3::LteEnbMac::DoTransmitPdu(), and ns3::LteSpectrumPhy::EndRxData().
| uint8_t ns3::LteRadioBearerTag::GetLcid | ( | ) | const |
Get LCID function.
Definition at line 114 of file lte-radio-bearer-tag.cc.
References m_lcid.
Referenced by ns3::LteEnbMac::DoReceivePhyPdu(), ns3::LteUeMac::DoReceivePhyPdu(), and GetTypeId().
| uint16_t ns3::LteRadioBearerTag::GetRnti | ( | ) | const |
Get RNTI function.
Definition at line 108 of file lte-radio-bearer-tag.cc.
References m_rnti.
Referenced by ns3::LteEnbMac::DoReceivePhyPdu(), ns3::LteUeMac::DoReceivePhyPdu(), ns3::LteSpectrumPhy::EndRxData(), and GetTypeId().
|
overridevirtual |
This method is typically invoked by Packet::AddPacketTag or Packet::AddByteTag just prior to calling Tag::Serialize.
Implements ns3::Tag.
Definition at line 86 of file lte-radio-bearer-tag.cc.
|
static |
Get the type ID.
Definition at line 20 of file lte-radio-bearer-tag.cc.
References LteRadioBearerTag(), GetLcid(), GetRnti(), ns3::MakeUintegerAccessor(), ns3::MakeUintegerChecker(), and ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
|
overridevirtual |
| os | the stream to print to |
This method is typically invoked from the Packet::PrintByteTags or Packet::PrintPacketTags methods.
Implements ns3::Tag.
Definition at line 126 of file lte-radio-bearer-tag.cc.
|
overridevirtual |
| i | the buffer to write data into. |
Write the content of the tag in the provided tag buffer. DO NOT attempt to write more bytes than you requested with Tag::GetSerializedSize.
Implements ns3::Tag.
Definition at line 92 of file lte-radio-bearer-tag.cc.
References m_layer, m_lcid, m_rnti, ns3::TagBuffer::WriteU16(), and ns3::TagBuffer::WriteU8().
| void ns3::LteRadioBearerTag::SetLayer | ( | uint8_t | layer | ) |
Set the layer id to the given value.
| layer | the value of the layer to set |
Definition at line 80 of file lte-radio-bearer-tag.cc.
References m_layer.
| void ns3::LteRadioBearerTag::SetLcid | ( | uint8_t | lcid | ) |
Set the LC id to the given value.
| lcid | the value of the RNTI to set |
Definition at line 74 of file lte-radio-bearer-tag.cc.
References m_lcid.
| void ns3::LteRadioBearerTag::SetRnti | ( | uint16_t | rnti | ) |
Set the RNTI to the given value.
| rnti | the value of the RNTI to set |
Definition at line 68 of file lte-radio-bearer-tag.cc.
References m_rnti.
|
private |
layer
Definition at line 100 of file lte-radio-bearer-tag.h.
Referenced by LteRadioBearerTag(), LteRadioBearerTag(), Deserialize(), GetLayer(), Print(), Serialize(), and SetLayer().
|
private |
LCID.
Definition at line 99 of file lte-radio-bearer-tag.h.
Referenced by LteRadioBearerTag(), LteRadioBearerTag(), LteRadioBearerTag(), Deserialize(), GetLcid(), Print(), Serialize(), and SetLcid().
|
private |
RNTI.
Definition at line 98 of file lte-radio-bearer-tag.h.
Referenced by LteRadioBearerTag(), LteRadioBearerTag(), LteRadioBearerTag(), Deserialize(), GetRnti(), Print(), Serialize(), and SetRnti().