A Discrete-Event Network Simulator
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
14namespace ns3
15{
16
17/**
18 * Tag used to define PHY parameters
19 */
20class 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 */
Tag used to define PHY parameters.
Definition lte-phy-tag.h:21
void Print(std::ostream &os) const override
~LtePhyTag() override
uint16_t m_cellId
the cell ID
Definition lte-phy-tag.h:56
void Deserialize(TagBuffer i) override
LtePhyTag()
Create an empty LtePhyTag.
uint32_t GetSerializedSize() const override
uint16_t GetCellId() const
Get cell ID.
static TypeId GetTypeId()
Get the type ID.
void Serialize(TagBuffer i) const override
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
read and write tag data
Definition tag-buffer.h:41
tag a set of bytes in a packet
Definition tag.h:28
a unique identifier for an interface.
Definition type-id.h:48
Every class exported by the ns3 library is enclosed in the ns3 namespace.