A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
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
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Manuel Requena <manuel.requena@cttc.es>
7
*/
8
9
#ifndef LTE_RLC_SDU_STATUS_TAG_H
10
#define LTE_RLC_SDU_STATUS_TAG_H
11
12
#include "ns3/tag.h"
13
14
namespace
ns3
15
{
16
17
/**
18
* @brief This class implements a tag that carries the status of a RLC SDU
19
* for the fragmentation process
20
* Status of RLC SDU
21
*/
22
class
LteRlcSduStatusTag
:
public
Tag
23
{
24
public
:
25
LteRlcSduStatusTag
();
26
27
/**
28
* Set status function
29
*
30
* @param status the status
31
*/
32
void
SetStatus
(uint8_t status);
33
/**
34
* Get status function
35
*
36
* @returns the status
37
*/
38
uint8_t
GetStatus
()
const
;
39
40
/**
41
* @brief Get the type ID.
42
* @return the object TypeId
43
*/
44
static
TypeId
GetTypeId
();
45
TypeId
GetInstanceTypeId
()
const override
;
46
uint32_t
GetSerializedSize
()
const override
;
47
void
Serialize
(
TagBuffer
i)
const override
;
48
void
Deserialize
(
TagBuffer
i)
override
;
49
void
Print
(std::ostream& os)
const override
;
50
51
/// SduStatus_t enumeration
52
enum
SduStatus_t
53
{
54
FULL_SDU
= 1,
55
FIRST_SEGMENT
= 2,
56
MIDDLE_SEGMENT
= 3,
57
LAST_SEGMENT
= 4,
58
ANY_SEGMENT
= 5
59
};
60
61
private
:
62
uint8_t
m_sduStatus
;
///< SDU status
63
};
64
65
};
// namespace ns3
66
67
#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:23
ns3::LteRlcSduStatusTag::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
lte-rlc-sdu-status-tag.cc:33
ns3::LteRlcSduStatusTag::LteRlcSduStatusTag
LteRlcSduStatusTag()
Definition
lte-rlc-sdu-status-tag.cc:16
ns3::LteRlcSduStatusTag::Serialize
void Serialize(TagBuffer i) const override
Definition
lte-rlc-sdu-status-tag.cc:55
ns3::LteRlcSduStatusTag::GetStatus
uint8_t GetStatus() const
Get status function.
Definition
lte-rlc-sdu-status-tag.cc:27
ns3::LteRlcSduStatusTag::m_sduStatus
uint8_t m_sduStatus
SDU status.
Definition
lte-rlc-sdu-status-tag.h:62
ns3::LteRlcSduStatusTag::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition
lte-rlc-sdu-status-tag.cc:49
ns3::LteRlcSduStatusTag::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition
lte-rlc-sdu-status-tag.cc:43
ns3::LteRlcSduStatusTag::Deserialize
void Deserialize(TagBuffer i) override
Definition
lte-rlc-sdu-status-tag.cc:61
ns3::LteRlcSduStatusTag::Print
void Print(std::ostream &os) const override
Definition
lte-rlc-sdu-status-tag.cc:67
ns3::LteRlcSduStatusTag::SduStatus_t
SduStatus_t
SduStatus_t enumeration.
Definition
lte-rlc-sdu-status-tag.h:53
ns3::LteRlcSduStatusTag::MIDDLE_SEGMENT
@ MIDDLE_SEGMENT
Definition
lte-rlc-sdu-status-tag.h:56
ns3::LteRlcSduStatusTag::ANY_SEGMENT
@ ANY_SEGMENT
Definition
lte-rlc-sdu-status-tag.h:58
ns3::LteRlcSduStatusTag::LAST_SEGMENT
@ LAST_SEGMENT
Definition
lte-rlc-sdu-status-tag.h:57
ns3::LteRlcSduStatusTag::FULL_SDU
@ FULL_SDU
Definition
lte-rlc-sdu-status-tag.h:54
ns3::LteRlcSduStatusTag::FIRST_SEGMENT
@ FIRST_SEGMENT
Definition
lte-rlc-sdu-status-tag.h:55
ns3::LteRlcSduStatusTag::SetStatus
void SetStatus(uint8_t status)
Set status function.
Definition
lte-rlc-sdu-status-tag.cc:21
ns3::TagBuffer
read and write tag data
Definition
tag-buffer.h:41
ns3::Tag
tag a set of bytes in a packet
Definition
tag.h:28
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
uint32_t
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 Fri Dec 13 2024 09:20:44 for ns-3 by
1.11.0