satellite-const-variables.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  * Copyright (c) 2018 CNES
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation;
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Author: Jani Puttonen <jani.puttonen@magister.fi>
20  * Author: Mathias Ettinger <mettinger@toulouse.viveris.fr>
21  */
22 
23 #ifndef SATELLITE_CONST_VARIABLES_H
24 #define SATELLITE_CONST_VARIABLES_H
25 
26 namespace ns3
27 {
28 
34 namespace SatConstVariables
35 {
36 
40 constexpr double SPEED_OF_LIGHT = 299792458.0;
41 
45 constexpr uint32_t BITS_PER_BYTE = 8;
46 
50 constexpr uint32_t BYTES_IN_KBYTE = 1024;
51 
55 constexpr uint32_t BITS_IN_KBIT = 1000;
56 
60 constexpr double BOLTZMANN_CONSTANT = 1.3806488e-23;
61 
65 constexpr uint8_t SUPERFRAME_SEQUENCE = 0;
66 
70 constexpr uint16_t MAXIMUM_TIME_SLOT_ID = 2047;
71 
75 constexpr uint32_t MAX_BEAMS_PER_SATELLITE = 1000;
76 
80 constexpr uint32_t MAX_SATELLITES = 10000;
81 
82 } // namespace SatConstVariables
83 
84 } // namespace ns3
85 
86 #endif /* SATELLITE_CONST_VARIABLES_H */
constexpr double SPEED_OF_LIGHT
Constant definition for the speed of light in m/s.
constexpr uint8_t SUPERFRAME_SEQUENCE
Used superframe sequence in the RTN link.
constexpr uint32_t MAX_BEAMS_PER_SATELLITE
Maximum number of beams per satellite.
constexpr uint32_t BITS_IN_KBIT
Number of bits consisting a kilobit.
constexpr uint32_t MAX_SATELLITES
Maximum number of satellites in constellation.
constexpr uint16_t MAXIMUM_TIME_SLOT_ID
Maximum value for time slot ID as specified in ETSI EN 301 542-2, chapter 7.5.1.3.
constexpr double BOLTZMANN_CONSTANT
Boltzmann Constant.
constexpr uint32_t BITS_PER_BYTE
Number of bits in a byte.
constexpr uint32_t BYTES_IN_KBYTE
Number of bytes consisting a kilobyte.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.