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-phy-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: Marco Miozzo <marco.miozzo@cttc.es>
7
* Nicola Baldo <nbaldo@cttc.es>
8
*/
9
#ifndef LTE_PHY_TAG_H
10
#define LTE_PHY_TAG_H
11
12
#include "ns3/tag.h"
13
14
namespace
ns3
15
{
16
17
/**
18
* Tag used to define PHY parameters
19
*/
20
class
LtePhyTag
:
public
Tag
21
{
22
public
:
23
/**
24
* \brief Get the type ID.
25
* \return the object TypeId
26
*/
27
static
TypeId
GetTypeId
();
28
TypeId
GetInstanceTypeId
()
const override
;
29
30
/**
31
* Create an empty LtePhyTag
32
*/
33
LtePhyTag
();
34
35
/**
36
* Create a LtePhyTag with the given RNTI and LC id
37
* \param cellId the cell ID
38
*/
39
LtePhyTag
(uint16_t cellId);
40
41
~LtePhyTag
()
override
;
42
43
void
Serialize
(
TagBuffer
i)
const override
;
44
void
Deserialize
(
TagBuffer
i)
override
;
45
uint32_t
GetSerializedSize
()
const override
;
46
void
Print
(std::ostream& os)
const override
;
47
48
/**
49
* Get cell ID
50
*
51
* \returns cell ID
52
*/
53
uint16_t
GetCellId
()
const
;
54
55
private
:
56
uint16_t
m_cellId
;
///< the cell ID
57
};
58
59
}
// namespace ns3
60
61
#endif
/* LTE_PHY_TAG_H */
ns3::LtePhyTag
Tag used to define PHY parameters.
Definition
lte-phy-tag.h:21
ns3::LtePhyTag::Print
void Print(std::ostream &os) const override
Definition
lte-phy-tag.cc:66
ns3::LtePhyTag::~LtePhyTag
~LtePhyTag() override
Definition
lte-phy-tag.cc:43
ns3::LtePhyTag::m_cellId
uint16_t m_cellId
the cell ID
Definition
lte-phy-tag.h:56
ns3::LtePhyTag::Deserialize
void Deserialize(TagBuffer i) override
Definition
lte-phy-tag.cc:60
ns3::LtePhyTag::LtePhyTag
LtePhyTag()
Create an empty LtePhyTag.
Definition
lte-phy-tag.cc:34
ns3::LtePhyTag::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition
lte-phy-tag.cc:48
ns3::LtePhyTag::GetCellId
uint16_t GetCellId() const
Get cell ID.
Definition
lte-phy-tag.cc:72
ns3::LtePhyTag::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
lte-phy-tag.cc:21
ns3::LtePhyTag::Serialize
void Serialize(TagBuffer i) const override
Definition
lte-phy-tag.cc:54
ns3::LtePhyTag::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition
lte-phy-tag.cc:29
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-phy-tag.h
Generated on Fri Nov 8 2024 13:59:03 for ns-3 by
1.11.0