This class manages the serialization/deserialization of HandoverPreparationInfo IE. More...
#include "lte-rrc-header.h"
Inheritance diagram for ns3::HandoverPreparationInfoHeader:
Collaboration diagram for ns3::HandoverPreparationInfoHeader:Public Member Functions | |
| HandoverPreparationInfoHeader () | |
| uint32_t | Deserialize (Buffer::Iterator bIterator) override |
| LteRrcSap::AsConfig | GetAsConfig () const |
| Getter for m_asConfig. | |
| LteRrcSap::HandoverPreparationInfo | GetMessage () const |
| Returns a HandoverPreparationInfo IE from the values in the class attributes. | |
| void | PreSerialize () const override |
| This function serializes class attributes to m_serializationResult local Buffer. | |
| void | Print (std::ostream &os) const override |
| void | SetMessage (LteRrcSap::HandoverPreparationInfo msg) |
| Receives a HandoverPreparationInfo IE and stores the contents into the class attributes. | |
Public Member Functions inherited from ns3::RrcAsn1Header | |
| RrcAsn1Header () | |
| int | GetMessageType () const |
| Get message type. | |
Public Member Functions inherited from ns3::Asn1Header | |
| Asn1Header () | |
| ~Asn1Header () override | |
| uint32_t | GetSerializedSize () const override |
| void | Serialize (Buffer::Iterator bIterator) const override |
Public Member Functions inherited from ns3::Header | |
| ~Header () override | |
| virtual uint32_t | Deserialize (Buffer::Iterator start, Buffer::Iterator end) |
| Deserialize the object from a buffer iterator. | |
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. | |
Private Attributes | |
| LteRrcSap::AsConfig | m_asConfig |
| AS config. | |
This class manages the serialization/deserialization of HandoverPreparationInfo IE.
Definition at line 872 of file lte-rrc-header.h.
| ns3::HandoverPreparationInfoHeader::HandoverPreparationInfoHeader | ( | ) |
Definition at line 5969 of file lte-rrc-header.cc.
|
overridevirtual |
| start | an iterator which points to where the header should read from. |
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.
Note that data is not actually removed from the buffer to which the iterator points. Both Packet::RemoveHeader() and Packet::PeekHeader() call Deserialize(), but only the RemoveHeader() has additional statements to remove the header bytes from the underlying buffer and associated metadata.
Implements ns3::RrcAsn1Header.
Definition at line 6051 of file lte-rrc-header.cc.
References ns3::Create(), ns3::Asn1Header::DeserializeBitstring(), ns3::Asn1Header::DeserializeChoice(), ns3::Asn1Header::DeserializeEnum(), ns3::Asn1Header::DeserializeInteger(), ns3::RrcAsn1Header::DeserializeMeasConfig(), ns3::Asn1Header::DeserializeNull(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigDedicated(), ns3::Asn1Header::DeserializeSequence(), ns3::Asn1Header::DeserializeSequenceOf(), ns3::RrcAsn1Header::DeserializeSystemInformationBlockType1(), ns3::RrcAsn1Header::DeserializeSystemInformationBlockType2(), ns3::LteRrcSap::MasterInformationBlock::dlBandwidth, ns3::RrcAsn1Header::EnumToBandwidth(), ns3::Asn1Header::GetSerializedSize(), m_asConfig, MAX_EARFCN, MAX_RAT_CAPABILITIES, ns3::LteRrcSap::AsConfig::sourceDlCarrierFreq, ns3::LteRrcSap::AsConfig::sourceMasterInformationBlock, ns3::LteRrcSap::AsConfig::sourceMeasConfig, ns3::LteRrcSap::AsConfig::sourceRadioResourceConfig, ns3::LteRrcSap::AsConfig::sourceSystemInformationBlockType1, ns3::LteRrcSap::AsConfig::sourceSystemInformationBlockType2, ns3::LteRrcSap::AsConfig::sourceUeIdentity, and ns3::LteRrcSap::MasterInformationBlock::systemFrameNumber.
Here is the call graph for this function:| LteRrcSap::AsConfig ns3::HandoverPreparationInfoHeader::GetAsConfig | ( | ) | const |
Getter for m_asConfig.
Definition at line 6214 of file lte-rrc-header.cc.
References m_asConfig.
Referenced by HandoverPreparationInfoTestCase::DoRun().
Here is the caller graph for this function:| LteRrcSap::HandoverPreparationInfo ns3::HandoverPreparationInfoHeader::GetMessage | ( | ) | const |
Returns a HandoverPreparationInfo IE from the values in the class attributes.
Definition at line 6205 of file lte-rrc-header.cc.
References ns3::LteRrcSap::HandoverPreparationInfo::asConfig, ns3::Create(), and m_asConfig.
Here is the call graph for this function:
|
overridevirtual |
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 meaningful information elements are in the subclasses.
Implements ns3::RrcAsn1Header.
Definition at line 5974 of file lte-rrc-header.cc.
References ns3::RrcAsn1Header::BandwidthToEnum(), ns3::Create(), ns3::LteRrcSap::MasterInformationBlock::dlBandwidth, ns3::Asn1Header::FinalizeSerialization(), m_asConfig, ns3::Asn1Header::m_serializationResult, MAX_EARFCN, MAX_RAT_CAPABILITIES, ns3::Asn1Header::SerializeBitstring(), ns3::Asn1Header::SerializeChoice(), ns3::Asn1Header::SerializeEnum(), ns3::Asn1Header::SerializeInteger(), ns3::RrcAsn1Header::SerializeMeasConfig(), ns3::RrcAsn1Header::SerializeRadioResourceConfigDedicated(), ns3::Asn1Header::SerializeSequence(), ns3::Asn1Header::SerializeSequenceOf(), ns3::RrcAsn1Header::SerializeSystemInformationBlockType1(), ns3::RrcAsn1Header::SerializeSystemInformationBlockType2(), ns3::LteRrcSap::AsConfig::sourceDlCarrierFreq, ns3::LteRrcSap::AsConfig::sourceMasterInformationBlock, ns3::LteRrcSap::AsConfig::sourceMeasConfig, ns3::LteRrcSap::AsConfig::sourceRadioResourceConfig, ns3::LteRrcSap::AsConfig::sourceSystemInformationBlockType1, ns3::LteRrcSap::AsConfig::sourceSystemInformationBlockType2, ns3::LteRrcSap::AsConfig::sourceUeIdentity, and ns3::LteRrcSap::MasterInformationBlock::systemFrameNumber.
Here is the call graph for this function:
|
overridevirtual |
| os | output stream This method is used by Packet::Print to print the content of a header as ascii data to a c++ output stream. Although the header 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 |
Implements ns3::Asn1Header.
Definition at line 6174 of file lte-rrc-header.cc.
References ns3::LteRrcSap::SystemInformationBlockType1::cellAccessRelatedInfo, ns3::LteRrcSap::CellAccessRelatedInfo::cellIdentity, ns3::LteRrcSap::CellAccessRelatedInfo::csgIdentity, ns3::LteRrcSap::CellAccessRelatedInfo::csgIndication, ns3::LteRrcSap::MasterInformationBlock::dlBandwidth, m_asConfig, ns3::LteRrcSap::PlmnIdentityInfo::plmnIdentity, ns3::LteRrcSap::CellAccessRelatedInfo::plmnIdentityInfo, ns3::RrcAsn1Header::Print(), ns3::LteRrcSap::AsConfig::sourceDlCarrierFreq, ns3::LteRrcSap::AsConfig::sourceMasterInformationBlock, ns3::LteRrcSap::AsConfig::sourceRadioResourceConfig, ns3::LteRrcSap::AsConfig::sourceSystemInformationBlockType1, ns3::LteRrcSap::AsConfig::sourceUeIdentity, and ns3::LteRrcSap::MasterInformationBlock::systemFrameNumber.
Here is the call graph for this function:| void ns3::HandoverPreparationInfoHeader::SetMessage | ( | LteRrcSap::HandoverPreparationInfo | msg | ) |
Receives a HandoverPreparationInfo IE and stores the contents into the class attributes.
| msg | The information element to parse |
Definition at line 6198 of file lte-rrc-header.cc.
References ns3::Create(), m_asConfig, and ns3::Asn1Header::m_isDataSerialized.
Referenced by ns3::LteEnbRrcProtocolReal::DoEncodeHandoverPreparationInformation(), and HandoverPreparationInfoTestCase::DoRun().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
AS config.
Definition at line 901 of file lte-rrc-header.h.
Referenced by Deserialize(), GetAsConfig(), GetMessage(), PreSerialize(), Print(), and SetMessage().