24 #include "ns3/address-utils.h"
31 m_preamblePresent (0),
104 return 1 + 1 + 1 + 2 + 2;
134 m_configurationChangeCount (0),
147 static TypeId tid =
TypeId (
"ns3::OfdmDownlinkFramePrefix")
149 .SetGroupName (
"Wimax")
169 uint8_t configurationChangeCount)
205 std::vector<DlFramePrefixIe>
220 return "OFDM Downlink Frame Prefix";
229 <<
", number of dl frame prefix elements = "
236 int dlFramePrefixElementsSize = 0;
238 for (std::vector<DlFramePrefixIe>::const_iterator iter =
242 dlFramePrefixElementsSize += dlFramePrefixElement.
GetSize ();
245 return 6 + 4 + 1 + dlFramePrefixElementsSize + 1;
256 for (std::vector<DlFramePrefixIe>::const_iterator iter =
260 i = dlFramePrefixElement.
Write (i);
279 i = dlFramePrefixElement.
Read (i);
283 if (dlFramePrefixElement.
GetDiuc () == 14)
uint8_t GetHcs(void) const
Get HCS field.
OfdmDownlinkFramePrefix()
void AddDlFramePrefixElement(DlFramePrefixIe dlFramePrefixElement)
Add DL frame prefix element field.
uint16_t GetSize(void) const
Get size field.
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer.
void SetLength(uint16_t length)
Set length field.
void WriteTo(Buffer::Iterator &i, Ipv4Address ad)
Write an Ipv4Address to a Buffer.
uint8_t GetDiuc(void) const
Get DIUC field.
Buffer::Iterator Read(Buffer::Iterator start)
Read item function.
uint8_t m_preamblePresent
preamble present
uint16_t m_startTime
start time
void Serialize(Buffer::Iterator start) const
void Print(std::ostream &os) const
Buffer::Iterator Write(Buffer::Iterator start) const
Write item function.
void SetDiuc(uint8_t diuc)
Set DIUC field.
uint32_t GetFrameNumber(void) const
Get frame number field.
iterator in a Buffer instance
std::vector< DlFramePrefixIe > m_dlFramePrefixElements
vector of dl frame prefix elements
static TypeId GetTypeId(void)
Register this type.
uint8_t GetPreamblePresent(void) const
Get preamble present field.
void SetBaseStationId(Mac48Address baseStationId)
Set base station ID field.
This class implements the DL Frame Prefix IE as described by IEEE-802.16 standard.
std::vector< DlFramePrefixIe > GetDlFramePrefixElements(void) const
Get DL frame prefix elements.
void WriteU16(uint16_t data)
uint16_t GetStartTime(void) const
Get start time field.
void SetRateId(uint8_t rateId)
Set rate ID field.
uint16_t GetLength(void) const
Get length field.
uint32_t Deserialize(Buffer::Iterator start)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t m_frameNumber
shall actually be only 4 LSB of the same field in OFDM DCD Channel Encodings
~OfdmDownlinkFramePrefix()
Mac48Address m_baseStationId
base station ID
uint8_t GetConfigurationChangeCount(void) const
Get configuration change count field.
Mac48Address GetBaseStationId(void) const
Get base station ID field.
void SetConfigurationChangeCount(uint8_t configurationChangeCount)
Set configuration change count field.
std::string GetName(void) const
Get name field.
uint8_t m_configurationChangeCount
shall actually be only 4 LSB of the same field in DCD
void WriteU8(uint8_t data)
void SetHcs(uint8_t hcs)
Set HCS field.
void SetFrameNumber(uint32_t frameNumber)
Set frame number field.
uint32_t GetSerializedSize(void) const
void SetPreamblePresent(uint8_t preamblePresent)
Set preamble present field.
void WriteU32(uint32_t data)
uint8_t GetRateId(void) const
Get rate ID field.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
uint8_t m_hcs
Header Check Sequence.
void SetStartTime(uint16_t startTime)
Set start time field.