Loading...
Searching...
No Matches
lora-beam-tag.h
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2017 University of Padova
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation;
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Author: Bastien Tauran <bastien.tauran@viveris.fr>
19 */
20
21#ifndef LORA_BEAM_TAG_H
22#define LORA_BEAM_TAG_H
23
24#include "ns3/tag.h"
25
26#include <ostream>
27#include <stdint.h>
28
29namespace ns3
30{
31
36class LoraBeamTag : public Tag
37{
38 public:
39 static TypeId GetTypeId(void);
40 virtual TypeId GetInstanceTypeId(void) const;
41
47 LoraBeamTag(uint8_t beamId = 0);
48
49 virtual ~LoraBeamTag();
50
51 virtual void Serialize(TagBuffer i) const;
52 virtual void Deserialize(TagBuffer i);
53 virtual uint32_t GetSerializedSize() const;
54 virtual void Print(std::ostream& os) const;
55
61 uint8_t GetBeamId() const;
62
68 void SetBeamId(uint8_t beamId);
69
70 private:
71 uint8_t m_beamId;
72};
73} // namespace ns3
74
75#endif // LORA_BEAM_TAG_H
virtual TypeId GetInstanceTypeId(void) const
void SetBeamId(uint8_t beamId)
Set which beamId this packet was transmitted with.
uint8_t GetBeamId() const
Read which beam ID this packet was transmitted with.
static TypeId GetTypeId(void)
uint8_t m_beamId
The beam ID used by the packet.
virtual void Serialize(TagBuffer i) const
virtual ~LoraBeamTag()
virtual uint32_t GetSerializedSize() const
virtual void Print(std::ostream &os) const
LoraBeamTag(uint8_t beamId=0)
Create a LoraBeamTag with a given beam ID.
virtual void Deserialize(TagBuffer i)
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.