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 namespace ns3
29 {
30 
40 class SatBaseTraceContainer : public Object
41 {
42  public:
47 
51  static const uint32_t RX_POWER_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2;
56 
60  static const uint32_t RX_CNO_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2;
61 
65  static const uint32_t INTF_TRACE_DEFAULT_INTF_DENSITY_INDEX = 1;
66 
70  static const uint32_t INTF_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2;
71 
75  static const uint32_t FADING_TRACE_DEFAULT_FADING_VALUE_INDEX = 1;
76 
80  static const uint32_t FADING_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2;
81 
85  static const uint32_t CSINR_TRACE_DEFAULT_FADING_VALUE_INDEX = 1;
86 
90  static const uint32_t CSINR_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 2;
91 
95  static const uint32_t POSITION_TRACE_DEFAULT_LATITUDE_INDEX = 1;
96 
100  static const uint32_t POSITION_TRACE_DEFAULT_LONGITUDE_INDEX = 2;
101 
105  static const uint32_t POSITION_TRACE_DEFAULT_ALTITUDE_INDEX = 3;
106 
110  static const uint32_t POSITION_TRACE_DEFAULT_NUMBER_OF_COLUMNS = 4;
111 
116 
120  virtual ~SatBaseTraceContainer();
121 
126  static TypeId GetTypeId(void);
127 
132  TypeId GetInstanceTypeId(void) const;
133 
137  virtual void Reset() = 0;
138 
139  private:
140 };
141 
142 } // namespace ns3
143 
144 #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.