Loading...
Searching...
No Matches
satellite-crdsa-replica-tag.h
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2014 Magister Solutions Ltd
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: Frans Laakso <frans.laakso@magister.fi>
19 */
20
21#ifndef SATELLITE_CRDSA_REPLICA_TAG_H
22#define SATELLITE_CRDSA_REPLICA_TAG_H
23
24#include "ns3/tag.h"
25
26#include <ostream>
27#include <stdint.h>
28#include <vector>
29
30namespace ns3
31{
32
42class SatCrdsaReplicaTag : public Tag
43{
44 public:
49
54
55 void AddSlotId(uint16_t slotId);
56 std::vector<uint16_t> GetSlotIds(void);
57
62 static TypeId GetTypeId(void);
63
68 virtual TypeId GetInstanceTypeId(void) const;
69
74 virtual uint32_t GetSerializedSize(void) const;
75
80 virtual void Serialize(TagBuffer buffer) const;
81
86 virtual void Deserialize(TagBuffer buffer);
87
92 virtual void Print(std::ostream& os) const;
93
94 private:
95 std::vector<uint16_t> m_slotIds;
96 uint8_t m_numOfIds;
97};
98
99} // namespace ns3
100
101#endif /* SATELLITE_CRDSA_REPLICA_TAG_H */
virtual void Deserialize(TagBuffer buffer)
Deserializes information from buffer to this instance of SatCrdsaReplicaTag.
std::vector< uint16_t > m_slotIds
virtual uint32_t GetSerializedSize(void) const
Get serialized size of SatCrdsaReplicaTag.
virtual TypeId GetInstanceTypeId(void) const
Get the type ID of instance.
static TypeId GetTypeId(void)
Get the type ID.
~SatCrdsaReplicaTag()
Destructor for SatCrdsaReplicaTag.
virtual void Serialize(TagBuffer buffer) const
Serializes information to buffer from this instance of SatCrdsaReplicaTag.
virtual void Print(std::ostream &os) const
Print time stamp of this instance of SatCrdsaReplicaTag.
SatCrdsaReplicaTag()
Default constructor.
std::vector< uint16_t > GetSlotIds(void)
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.