A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-rlc-sdu-status-tag.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Manuel Requena <manuel.requena@cttc.es>
18
*/
19
20
#ifndef LTE_RLC_SDU_STATUS_TAG_H
21
#define LTE_RLC_SDU_STATUS_TAG_H
22
23
#include "ns3/tag.h"
24
25
namespace
ns3
26
{
27
33
class
LteRlcSduStatusTag
:
public
Tag
34
{
35
public
:
36
LteRlcSduStatusTag
();
37
43
void
SetStatus
(uint8_t status);
49
uint8_t
GetStatus
()
const
;
50
55
static
TypeId
GetTypeId
();
56
TypeId
GetInstanceTypeId
()
const override
;
57
uint32_t
GetSerializedSize
()
const override
;
58
void
Serialize
(
TagBuffer
i)
const override
;
59
void
Deserialize
(
TagBuffer
i)
override
;
60
void
Print
(std::ostream& os)
const override
;
61
63
enum
SduStatus_t
64
{
65
FULL_SDU
= 1,
66
FIRST_SEGMENT
= 2,
67
MIDDLE_SEGMENT
= 3,
68
LAST_SEGMENT
= 4,
69
ANY_SEGMENT
= 5
70
};
71
72
private
:
73
uint8_t
m_sduStatus
;
74
};
75
76
};
// namespace ns3
77
78
#endif
// LTE_RLC_SDU_STATUS_TAG_H
ns3::LteRlcSduStatusTag
This class implements a tag that carries the status of a RLC SDU for the fragmentation process Status...
Definition:
lte-rlc-sdu-status-tag.h:34
ns3::LteRlcSduStatusTag::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-rlc-sdu-status-tag.cc:44
ns3::LteRlcSduStatusTag::LteRlcSduStatusTag
LteRlcSduStatusTag()
Definition:
lte-rlc-sdu-status-tag.cc:27
ns3::LteRlcSduStatusTag::Serialize
void Serialize(TagBuffer i) const override
Definition:
lte-rlc-sdu-status-tag.cc:66
ns3::LteRlcSduStatusTag::GetStatus
uint8_t GetStatus() const
Get status function.
Definition:
lte-rlc-sdu-status-tag.cc:38
ns3::LteRlcSduStatusTag::m_sduStatus
uint8_t m_sduStatus
SDU status.
Definition:
lte-rlc-sdu-status-tag.h:73
ns3::LteRlcSduStatusTag::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition:
lte-rlc-sdu-status-tag.cc:60
ns3::LteRlcSduStatusTag::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition:
lte-rlc-sdu-status-tag.cc:54
ns3::LteRlcSduStatusTag::Deserialize
void Deserialize(TagBuffer i) override
Definition:
lte-rlc-sdu-status-tag.cc:72
ns3::LteRlcSduStatusTag::Print
void Print(std::ostream &os) const override
Definition:
lte-rlc-sdu-status-tag.cc:78
ns3::LteRlcSduStatusTag::SduStatus_t
SduStatus_t
SduStatus_t enumeration.
Definition:
lte-rlc-sdu-status-tag.h:64
ns3::LteRlcSduStatusTag::MIDDLE_SEGMENT
@ MIDDLE_SEGMENT
Definition:
lte-rlc-sdu-status-tag.h:67
ns3::LteRlcSduStatusTag::ANY_SEGMENT
@ ANY_SEGMENT
Definition:
lte-rlc-sdu-status-tag.h:69
ns3::LteRlcSduStatusTag::LAST_SEGMENT
@ LAST_SEGMENT
Definition:
lte-rlc-sdu-status-tag.h:68
ns3::LteRlcSduStatusTag::FULL_SDU
@ FULL_SDU
Definition:
lte-rlc-sdu-status-tag.h:65
ns3::LteRlcSduStatusTag::FIRST_SEGMENT
@ FIRST_SEGMENT
Definition:
lte-rlc-sdu-status-tag.h:66
ns3::LteRlcSduStatusTag::SetStatus
void SetStatus(uint8_t status)
Set status function.
Definition:
lte-rlc-sdu-status-tag.cc:32
ns3::TagBuffer
read and write tag data
Definition:
tag-buffer.h:52
ns3::Tag
tag a set of bytes in a packet
Definition:
tag.h:39
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
model
lte-rlc-sdu-status-tag.h
Generated on Sun Mar 3 2024 17:11:02 for ns-3 by
1.9.1