satellite-base-trace-container.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2013 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 #ifndef SATELLITE_BASE_TRACE_CONTAINER_H
21 #define SATELLITE_BASE_TRACE_CONTAINER_H
22 
23 #include "satellite-enums.h"
24 
25 #include <ns3/object.h>
26 #include <ns3/simulator.h>
27 
28 #include <stdint.h>
29 
30 namespace ns3
31 {
32 
42 class SatBaseTraceContainer : public Object
43 {
44  public:
49 
53  static const uint32_t RX_POWER_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2;
58 
62  static const uint32_t RX_CNO_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2;
63 
67  static const uint32_t INTF_TRACE_DEFAULT_INTF_DENSITY_INDEX = 1;
68 
72  static const uint32_t INTF_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2;
73 
77  static const uint32_t FADING_TRACE_DEFAULT_FADING_VALUE_INDEX = 1;
78 
82  static const uint32_t FADING_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2;
83 
87  static const uint32_t CSINR_TRACE_DEFAULT_FADING_VALUE_INDEX = 1;
88 
92  static const uint32_t CSINR_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2;
93 
97  static const uint32_t POSITION_TRACE_DEFAULT_LATITUDE_INDEX = 1;
98 
102  static const uint32_t POSITION_TRACE_DEFAULT_LONGITUDE_INDEX = 2;
103 
107  static const uint32_t POSITION_TRACE_DEFAULT_ALTITUDE_INDEX = 3;
108 
112  static const uint32_t POSITION_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 4;
113 
118 
122  virtual ~SatBaseTraceContainer();
123 
128  static TypeId GetTypeId(void);
129 
134  TypeId GetInstanceTypeId(void) const;
135 
139  virtual void Reset() = 0;
140 
141  private:
142 };
143 
144 } // namespace ns3
145 
146 #endif /* SATELLITE_BASE_TRACE_CONTAINER_H */
Base class for trace containers such as interference or fading traces.
static const uint32_t FADING_TRACE_DEFAULT_NUMBER_OF_COLUMNS
Default number of columns for fading traces.
static const uint32_t POSITION_TRACE_DEFAULT_ALTITUDE_INDEX
Default altitude value index for positions traces.
TypeId GetInstanceTypeId(void) const
NS-3 instance type id function.
static const uint32_t POSITION_TRACE_DEFAULT_LATITUDE_INDEX
Default latitude value index for positions traces.
virtual void Reset()=0
Function for resetting the trace.
static const uint32_t POSITION_TRACE_DEFAULT_LONGITUDE_INDEX
Default longitude value index for positions traces.
static const uint32_t RX_CNO_TRACE_DEFAULT_RX_POWER_DENSITY_INDEX
Default Rx power density index for Rx power traces.
static const uint32_t CSINR_TRACE_DEFAULT_NUMBER_OF_COLUMNS
Default number of columns for composite sinr traces.
static const uint32_t CSINR_TRACE_DEFAULT_FADING_VALUE_INDEX
Default sinr value index for composite sinr traces.
static const uint32_t FADING_TRACE_DEFAULT_FADING_VALUE_INDEX
Default fading value index for fading traces.
static const uint32_t RX_POWER_TRACE_DEFAULT_RX_POWER_DENSITY_INDEX
Default Rx C/N0 index for C/N0 traces.
static const uint32_t POSITION_TRACE_DEFAULT_NUMBER_OF_COLUMNS
Default number of columns for position traces.
static const uint32_t RX_POWER_TRACE_DEFAULT_NUMBER_OF_COLUMNS
Default Rx C/N0 index for C/N0 traces.
static const uint32_t INTF_TRACE_DEFAULT_INTF_DENSITY_INDEX
Default interference density index for interference traces.
static TypeId GetTypeId(void)
NS-3 type id function.
static const uint32_t INTF_TRACE_DEFAULT_NUMBER_OF_COLUMNS
Default number of columns for interference traces.
static const uint32_t RX_CNO_TRACE_DEFAULT_NUMBER_OF_COLUMNS
Default Rx power density index for Rx power traces.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.