A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::RrcConnectionSetupCompleteHeader Class Reference

#include <lte-rrc-header.h>

+ Inheritance diagram for ns3::RrcConnectionSetupCompleteHeader:
+ Collaboration diagram for ns3::RrcConnectionSetupCompleteHeader:

Public Member Functions

 RrcConnectionSetupCompleteHeader ()
 ~RrcConnectionSetupCompleteHeader ()
uint32_t Deserialize (Buffer::Iterator bIterator)
LteRrcSap::RrcConnectionSetupCompleted GetMessage () const
uint8_t GetRrcTransactionIdentifier () const
void PreSerialize () const
void Print (std::ostream &os) const
void SetMessage (LteRrcSap::RrcConnectionSetupCompleted msg)
- Public Member Functions inherited from ns3::RrcUlDcchMessage
 RrcUlDcchMessage ()
 ~RrcUlDcchMessage ()
- Public Member Functions inherited from ns3::RrcAsn1Header
 RrcAsn1Header ()
int GetMessageType ()
- Public Member Functions inherited from ns3::Asn1Header
 Asn1Header ()
virtual ~Asn1Header ()
uint32_t GetSerializedSize (void) const
void Serialize (Buffer::Iterator bIterator) const
- Public Member Functions inherited from ns3::Header
virtual ~Header ()

Private Attributes

uint8_t m_rrcTransactionIdentifier

Additional Inherited Members

- Protected Member Functions inherited from ns3::RrcUlDcchMessage
Buffer::Iterator DeserializeUlDcchMessage (Buffer::Iterator bIterator)
void SerializeUlDcchMessage (int msgType) const
- Static Protected Member Functions inherited from ns3::RrcAsn1Header
static TypeId GetTypeId (void)
- Protected Attributes inherited from ns3::RrcAsn1Header
int m_messageType
 Stores RRC message type, according to 3GPP TS 36.331.

Detailed Description

This class manages the serialization/deserialization of RrcConnectionSetupComplete IE

Definition at line 303 of file lte-rrc-header.h.

Constructor & Destructor Documentation

ns3::RrcConnectionSetupCompleteHeader::RrcConnectionSetupCompleteHeader ( )

Definition at line 4179 of file lte-rrc-header.cc.

ns3::RrcConnectionSetupCompleteHeader::~RrcConnectionSetupCompleteHeader ( )

Definition at line 4183 of file lte-rrc-header.cc.

Member Function Documentation

uint32_t ns3::RrcConnectionSetupCompleteHeader::Deserialize ( Buffer::Iterator  start)
virtual
Parameters
startan iterator which points to where the header should written.
Returns
the number of bytes read.

This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.

Reimplemented from ns3::RrcUlDcchMessage.

Definition at line 4217 of file lte-rrc-header.cc.

References ns3::Asn1Header::DeserializeChoice(), ns3::Asn1Header::DeserializeInteger(), ns3::Asn1Header::DeserializeNull(), ns3::Asn1Header::DeserializeSequence(), ns3::RrcUlDcchMessage::DeserializeUlDcchMessage(), ns3::Asn1Header::GetSerializedSize(), and m_rrcTransactionIdentifier.

+ Here is the call graph for this function:

LteRrcSap::RrcConnectionSetupCompleted ns3::RrcConnectionSetupCompleteHeader::GetMessage ( ) const

Returns a RrcConnectionSetupCompleted IE from the values in the class attributes

Returns
A RrcConnectionSetupCompleted, as defined in LteRrcSap

Definition at line 4276 of file lte-rrc-header.cc.

References m_rrcTransactionIdentifier, and ns3::LteRrcSap::RrcConnectionSetupCompleted::rrcTransactionIdentifier.

Referenced by ns3::LteEnbRrcProtocolReal::DoReceivePdcpSdu().

+ Here is the caller graph for this function:

uint8_t ns3::RrcConnectionSetupCompleteHeader::GetRrcTransactionIdentifier ( ) const

Getter for m_rrcTransactionIdentifier

Returns
m_rrcTransactionIdentifier

Definition at line 4270 of file lte-rrc-header.cc.

References m_rrcTransactionIdentifier.

void ns3::RrcConnectionSetupCompleteHeader::PreSerialize ( ) const
virtual

This function serializes class attributes to m_serializationResult local Buffer. As ASN1 encoding produces a bitstream that does not have a fixed length, this function is needed to store the result, so its length can be retrieved with Header::GetSerializedSize() function. This method is pure virtual in this class (needs to be implemented in child classes) as the meningful information elements are in the subclasses.

Reimplemented from ns3::RrcUlDcchMessage.

Definition at line 4188 of file lte-rrc-header.cc.

References ns3::Asn1Header::FinalizeSerialization(), m_rrcTransactionIdentifier, ns3::Asn1Header::m_serializationResult, ns3::Asn1Header::SerializeChoice(), ns3::Asn1Header::SerializeInteger(), ns3::Asn1Header::SerializeNull(), ns3::Asn1Header::SerializeSequence(), and ns3::RrcUlDcchMessage::SerializeUlDcchMessage().

+ Here is the call graph for this function:

void ns3::RrcConnectionSetupCompleteHeader::Print ( std::ostream &  os) const
virtual
Parameters
osoutput stream This method is used by Packet::Print to print the content of a trailer as ascii data to a c++ output stream. Although the trailer is free to format its output as it wishes, it is recommended to follow a few rules to integrate with the packet pretty printer: start with flags, small field values located between a pair of parens. Values should be separated by whitespace. Follow the parens with the important fields, separated by whitespace. i.e.: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5

Reimplemented from ns3::RrcUlDcchMessage.

Definition at line 4257 of file lte-rrc-header.cc.

References m_rrcTransactionIdentifier.

void ns3::RrcConnectionSetupCompleteHeader::SetMessage ( LteRrcSap::RrcConnectionSetupCompleted  msg)

Receives a RrcConnectionSetupCompleted IE and stores the contents into the class attributes

Parameters
msgThe information element to parse

Definition at line 4263 of file lte-rrc-header.cc.

References ns3::Asn1Header::m_isDataSerialized, m_rrcTransactionIdentifier, and ns3::LteRrcSap::RrcConnectionSetupCompleted::rrcTransactionIdentifier.

Referenced by ns3::RrcConnectionSetupCompleteTestCase::DoRun(), and ns3::LteUeRrcProtocolReal::DoSendRrcConnectionSetupCompleted().

+ Here is the caller graph for this function:

Member Data Documentation

uint8_t ns3::RrcConnectionSetupCompleteHeader::m_rrcTransactionIdentifier
private

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