A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ofdm-downlink-frame-prefix.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2007,2008 INRIA
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Jahanzeb Farooq <jahanzeb.farooq@sophia.inria.fr>
19
*/
20
21
#ifndef DL_FRAME_PREFIX_IE_H
22
#define DL_FRAME_PREFIX_IE_H
23
24
#include <stdint.h>
25
#include "ns3/header.h"
26
27
namespace
ns3
{
28
34
class
DlFramePrefixIe
35
{
36
public
:
37
DlFramePrefixIe
();
38
~DlFramePrefixIe
();
39
40
void
SetRateId
(uint8_t rateId);
41
void
SetDiuc
(uint8_t diuc);
42
void
SetPreamblePresent
(uint8_t preamblePresent);
43
void
SetLength
(uint16_t length);
44
void
SetStartTime
(uint16_t
startTime
);
45
46
uint8_t
GetRateId
(
void
)
const
;
47
uint8_t
GetDiuc
(
void
)
const
;
48
uint8_t
GetPreamblePresent
(
void
)
const
;
49
uint16_t
GetLength
(
void
)
const
;
50
uint16_t
GetStartTime
(
void
)
const
;
51
52
uint16_t
GetSize
(
void
)
const
;
53
54
Buffer::Iterator
Write
(
Buffer::Iterator
start
)
const
;
55
Buffer::Iterator
Read
(
Buffer::Iterator
start);
56
private
:
57
uint8_t
m_rateId
;
58
uint8_t
m_diuc
;
59
uint8_t
m_preamblePresent
;
60
uint16_t
m_length
;
61
uint16_t
m_startTime
;
62
63
// shall actually contain m_startTime if DIUC is 0. see Table 225, page 452
64
65
};
66
67
}
// namespace ns3
68
69
#endif
/* DL_FRAME_PREFIX_IE_H */
70
71
#ifndef OFDM_DOWNLINK_FRAME_PREFIX_H
72
#define OFDM_DOWNLINK_FRAME_PREFIX_H
73
74
#include <stdint.h>
75
#include "ns3/header.h"
76
#include "ns3/mac48-address.h"
77
78
namespace
ns3
{
79
80
class
OfdmDownlinkFramePrefix
:
public
Header
81
{
82
public
:
83
OfdmDownlinkFramePrefix
();
84
~OfdmDownlinkFramePrefix
();
85
90
static
TypeId
GetTypeId
(
void
);
91
92
void
SetBaseStationId
(
Mac48Address
baseStationId);
93
void
SetFrameNumber
(uint32_t frameNumber);
94
void
SetConfigurationChangeCount
(uint8_t configurationChangeCount);
95
void
AddDlFramePrefixElement
(
DlFramePrefixIe
dlFramePrefixElement);
96
void
SetHcs
(uint8_t hcs);
97
98
Mac48Address
GetBaseStationId
(
void
)
const
;
99
uint32_t
GetFrameNumber
(
void
)
const
;
100
uint8_t
GetConfigurationChangeCount
(
void
)
const
;
101
std::vector<DlFramePrefixIe>
GetDlFramePrefixElements
(
void
)
const
;
102
uint8_t
GetHcs
(
void
)
const
;
103
104
std::string
GetName
(
void
)
const
;
105
void
Print
(std::ostream &os)
const
;
106
uint32_t
GetSerializedSize
(
void
)
const
;
107
void
Serialize
(
Buffer::Iterator
start
)
const
;
108
uint32_t
Deserialize
(
Buffer::Iterator
start);
109
private
:
110
Mac48Address
m_baseStationId
;
111
uint32_t
m_frameNumber
;
// shall actually be only 4 LSB of the same field in OFDM DCD Channel Encodings
112
uint8_t
m_configurationChangeCount
;
// shall actually be only 4 LSB of the same field in DCD
113
std::vector<DlFramePrefixIe>
m_dlFramePrefixElements
;
// vector of dl frame prefix elements
114
uint8_t
m_hcs
;
// Header Check Sequence
115
};
116
117
}
// namespace ns3
118
119
#endif
/* OFDM_DOWNLINK_FRAME_PREFIX_H */
ns3::OfdmDownlinkFramePrefix::GetHcs
uint8_t GetHcs(void) const
Definition:
ofdm-downlink-frame-prefix.cc:212
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:42
ns3::OfdmDownlinkFramePrefix::OfdmDownlinkFramePrefix
OfdmDownlinkFramePrefix()
Definition:
ofdm-downlink-frame-prefix.cc:131
ns3::OfdmDownlinkFramePrefix::AddDlFramePrefixElement
void AddDlFramePrefixElement(DlFramePrefixIe dlFramePrefixElement)
Definition:
ofdm-downlink-frame-prefix.cc:175
ns3::DlFramePrefixIe::GetSize
uint16_t GetSize(void) const
Definition:
ofdm-downlink-frame-prefix.cc:102
visualizer.core.start
def start()
Definition:
core.py:1482
ns3::DlFramePrefixIe::SetLength
void SetLength(uint16_t length)
Definition:
ofdm-downlink-frame-prefix.cc:60
ns3::DlFramePrefixIe::GetDiuc
uint8_t GetDiuc(void) const
Definition:
ofdm-downlink-frame-prefix.cc:78
ns3::DlFramePrefixIe::Read
Buffer::Iterator Read(Buffer::Iterator start)
Definition:
ofdm-downlink-frame-prefix.cc:120
ns3::DlFramePrefixIe::m_preamblePresent
uint8_t m_preamblePresent
Definition:
ofdm-downlink-frame-prefix.h:59
ns3::DlFramePrefixIe::m_startTime
uint16_t m_startTime
Definition:
ofdm-downlink-frame-prefix.h:61
ns3::OfdmDownlinkFramePrefix::Serialize
void Serialize(Buffer::Iterator start) const
Definition:
ofdm-downlink-frame-prefix.cc:249
ns3::OfdmDownlinkFramePrefix::Print
void Print(std::ostream &os) const
Definition:
ofdm-downlink-frame-prefix.cc:224
ns3::DlFramePrefixIe::Write
Buffer::Iterator Write(Buffer::Iterator start) const
Definition:
ofdm-downlink-frame-prefix.cc:108
ns3::DlFramePrefixIe::m_diuc
uint8_t m_diuc
Definition:
ofdm-downlink-frame-prefix.h:58
ns3::DlFramePrefixIe::SetDiuc
void SetDiuc(uint8_t diuc)
Definition:
ofdm-downlink-frame-prefix.cc:48
ns3::OfdmDownlinkFramePrefix::GetFrameNumber
uint32_t GetFrameNumber(void) const
Definition:
ofdm-downlink-frame-prefix.cc:194
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:98
ns3::OfdmDownlinkFramePrefix::m_dlFramePrefixElements
std::vector< DlFramePrefixIe > m_dlFramePrefixElements
Definition:
ofdm-downlink-frame-prefix.h:113
ns3::OfdmDownlinkFramePrefix::GetTypeId
static TypeId GetTypeId(void)
Register this type.
Definition:
ofdm-downlink-frame-prefix.cc:145
ns3::DlFramePrefixIe::GetPreamblePresent
uint8_t GetPreamblePresent(void) const
Definition:
ofdm-downlink-frame-prefix.cc:84
ns3::OfdmDownlinkFramePrefix::SetBaseStationId
void SetBaseStationId(Mac48Address baseStationId)
Definition:
ofdm-downlink-frame-prefix.cc:156
ns3::OfdmDownlinkFramePrefix
Definition:
ofdm-downlink-frame-prefix.h:80
ns3::DlFramePrefixIe
This class implements the DL Frame Prefix IE as described by IEEE-802.16 standard.
Definition:
ofdm-downlink-frame-prefix.h:34
startTime
double startTime
Definition:
tcp-nsc-comparison.cc:45
ns3::OfdmDownlinkFramePrefix::GetDlFramePrefixElements
std::vector< DlFramePrefixIe > GetDlFramePrefixElements(void) const
Definition:
ofdm-downlink-frame-prefix.cc:206
ns3::DlFramePrefixIe::GetStartTime
uint16_t GetStartTime(void) const
Definition:
ofdm-downlink-frame-prefix.cc:96
ns3::DlFramePrefixIe::SetRateId
void SetRateId(uint8_t rateId)
Definition:
ofdm-downlink-frame-prefix.cc:42
ns3::DlFramePrefixIe::GetLength
uint16_t GetLength(void) const
Definition:
ofdm-downlink-frame-prefix.cc:90
ns3::OfdmDownlinkFramePrefix::Deserialize
uint32_t Deserialize(Buffer::Iterator start)
Definition:
ofdm-downlink-frame-prefix.cc:267
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::OfdmDownlinkFramePrefix::m_frameNumber
uint32_t m_frameNumber
Definition:
ofdm-downlink-frame-prefix.h:111
ns3::OfdmDownlinkFramePrefix::~OfdmDownlinkFramePrefix
~OfdmDownlinkFramePrefix()
Definition:
ofdm-downlink-frame-prefix.cc:139
ns3::OfdmDownlinkFramePrefix::m_baseStationId
Mac48Address m_baseStationId
Definition:
ofdm-downlink-frame-prefix.h:110
ns3::DlFramePrefixIe::m_rateId
uint8_t m_rateId
Definition:
ofdm-downlink-frame-prefix.h:57
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:43
ns3::OfdmDownlinkFramePrefix::GetConfigurationChangeCount
uint8_t GetConfigurationChangeCount(void) const
Definition:
ofdm-downlink-frame-prefix.cc:200
ns3::OfdmDownlinkFramePrefix::GetBaseStationId
Mac48Address GetBaseStationId(void) const
Definition:
ofdm-downlink-frame-prefix.cc:188
ns3::OfdmDownlinkFramePrefix::SetConfigurationChangeCount
void SetConfigurationChangeCount(uint8_t configurationChangeCount)
Definition:
ofdm-downlink-frame-prefix.cc:168
ns3::OfdmDownlinkFramePrefix::GetName
std::string GetName(void) const
Definition:
ofdm-downlink-frame-prefix.cc:218
ns3::OfdmDownlinkFramePrefix::m_configurationChangeCount
uint8_t m_configurationChangeCount
Definition:
ofdm-downlink-frame-prefix.h:112
ns3::DlFramePrefixIe::~DlFramePrefixIe
~DlFramePrefixIe()
Definition:
ofdm-downlink-frame-prefix.cc:37
ns3::OfdmDownlinkFramePrefix::SetHcs
void SetHcs(uint8_t hcs)
Definition:
ofdm-downlink-frame-prefix.cc:182
ns3::OfdmDownlinkFramePrefix::SetFrameNumber
void SetFrameNumber(uint32_t frameNumber)
Definition:
ofdm-downlink-frame-prefix.cc:162
ns3::OfdmDownlinkFramePrefix::GetSerializedSize
uint32_t GetSerializedSize(void) const
Definition:
ofdm-downlink-frame-prefix.cc:234
ns3::DlFramePrefixIe::SetPreamblePresent
void SetPreamblePresent(uint8_t preamblePresent)
Definition:
ofdm-downlink-frame-prefix.cc:54
ns3::DlFramePrefixIe::GetRateId
uint8_t GetRateId(void) const
Definition:
ofdm-downlink-frame-prefix.cc:72
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::OfdmDownlinkFramePrefix::m_hcs
uint8_t m_hcs
Definition:
ofdm-downlink-frame-prefix.h:114
ns3::DlFramePrefixIe::DlFramePrefixIe
DlFramePrefixIe()
Definition:
ofdm-downlink-frame-prefix.cc:28
ns3::DlFramePrefixIe::m_length
uint16_t m_length
Definition:
ofdm-downlink-frame-prefix.h:60
ns3::DlFramePrefixIe::SetStartTime
void SetStartTime(uint16_t startTime)
Definition:
ofdm-downlink-frame-prefix.cc:66
src
wimax
model
ofdm-downlink-frame-prefix.h
Generated on Wed Sep 30 2015 15:55:54 for ns-3 by
1.8.9.1