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-pdcp-tag.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 CTTC
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Jaume Nin <jaume.nin@cttc.es>
7
* Nicola Baldo <nbaldo@cttc.es>
8
*/
9
10
#ifndef PDCP_TAG_H
11
#define PDCP_TAG_H
12
13
#include "ns3/nstime.h"
14
#include "ns3/packet.h"
15
16
namespace
ns3
17
{
18
19
class
Tag;
20
21
/**
22
* Tag to calculate the per-PDU delay from eNb PDCP to UE PDCP
23
*/
24
25
class
PdcpTag
:
public
Tag
26
{
27
public
:
28
/**
29
* \brief Get the type ID.
30
* \return the object TypeId
31
*/
32
static
TypeId
GetTypeId
();
33
TypeId
GetInstanceTypeId
()
const override
;
34
35
/**
36
* Create an empty PDCP tag
37
*/
38
PdcpTag
();
39
/**
40
* Create an PDCP tag with the given senderTimestamp
41
* \param senderTimestamp the time stamp
42
*/
43
PdcpTag
(
Time
senderTimestamp);
44
45
void
Serialize
(
TagBuffer
i)
const override
;
46
void
Deserialize
(
TagBuffer
i)
override
;
47
uint32_t
GetSerializedSize
()
const override
;
48
void
Print
(std::ostream& os)
const override
;
49
50
/**
51
* Get the instant when the PDCP delivers the PDU to the MAC SAP provider
52
* @return the sender timestamp
53
*/
54
Time
GetSenderTimestamp
()
const
;
55
56
/**
57
* Set the sender timestamp
58
* @param senderTimestamp time stamp of the instant when the PDCP delivers the PDU to the MAC
59
* SAP provider
60
*/
61
void
SetSenderTimestamp
(
Time
senderTimestamp);
62
63
private
:
64
Time
m_senderTimestamp
;
///< sender timestamp
65
};
66
67
}
// namespace ns3
68
69
#endif
/* PDCP_TAG_H */
ns3::PdcpTag
Tag to calculate the per-PDU delay from eNb PDCP to UE PDCP.
Definition
lte-pdcp-tag.h:26
ns3::PdcpTag::SetSenderTimestamp
void SetSenderTimestamp(Time senderTimestamp)
Set the sender timestamp.
Definition
lte-pdcp-tag.cc:81
ns3::PdcpTag::Serialize
void Serialize(TagBuffer i) const override
Definition
lte-pdcp-tag.cc:54
ns3::PdcpTag::GetSenderTimestamp
Time GetSenderTimestamp() const
Get the instant when the PDCP delivers the PDU to the MAC SAP provider.
Definition
lte-pdcp-tag.cc:75
ns3::PdcpTag::m_senderTimestamp
Time m_senderTimestamp
sender timestamp
Definition
lte-pdcp-tag.h:64
ns3::PdcpTag::Print
void Print(std::ostream &os) const override
Definition
lte-pdcp-tag.cc:69
ns3::PdcpTag::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition
lte-pdcp-tag.cc:42
ns3::PdcpTag::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
lte-pdcp-tag.cc:34
ns3::PdcpTag::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition
lte-pdcp-tag.cc:48
ns3::PdcpTag::Deserialize
void Deserialize(TagBuffer i) override
Definition
lte-pdcp-tag.cc:61
ns3::PdcpTag::PdcpTag
PdcpTag()
Create an empty PDCP tag.
Definition
lte-pdcp-tag.cc:20
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::Time
Simulation virtual time values and global simulation resolution.
Definition
nstime.h:94
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-pdcp-tag.h
Generated on Fri Nov 8 2024 13:59:03 for ns-3 by
1.11.0