Github
Documentation
API
References
Steering Commitee
satellite-fading-external-input-trace.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: Jani Puttonen <jani.puttonen@magister.fi>
19
*/
20
21
#ifndef SATELLITE_FADING_EXTERNAL_INPUT_TRACE_H
22
#define SATELLITE_FADING_EXTERNAL_INPUT_TRACE_H
23
24
#include <ns3/simple-ref-count.h>
25
26
#include <vector>
27
28
namespace
ns3
29
{
30
37
class
SatFadingExternalInputTrace
:
public
SimpleRefCount<SatFadingExternalInputTrace>
38
{
39
public
:
40
enum
TraceFileType_e
41
{
42
FT_TWO_COLUMN
,
43
FT_THREE_COLUMN
44
};
45
49
SatFadingExternalInputTrace
();
50
56
SatFadingExternalInputTrace
(
TraceFileType_e
type, std::string filePathName);
57
61
~SatFadingExternalInputTrace
();
62
67
double
GetFading
()
const
;
68
74
bool
TestFadingTrace
()
const
;
75
76
private
:
81
void
ReadTrace
(std::string filePathName);
82
93
TraceFileType_e
m_traceFileType
;
94
98
static
const
uint32_t
TIME_INDEX
= 0;
99
static
const
uint32_t
FADING_INDEX
= 1;
100
static
const
uint32_t
SCINTILLATION_INDEX
= 2;
101
108
float
m_startTime
;
109
float
m_timeInterval
;
110
114
std::vector<std::vector<float>>
m_traceVector
;
115
};
116
117
}
// namespace ns3
118
119
#endif
/* SATELLITE_FADING_EXTERNAL_INPUT_TRACE_H */
ns3::SatFadingExternalInputTrace
The class for satellite fading external input trace.
Definition:
satellite-fading-external-input-trace.h:38
ns3::SatFadingExternalInputTrace::m_timeInterval
float m_timeInterval
Definition:
satellite-fading-external-input-trace.h:109
ns3::SatFadingExternalInputTrace::SCINTILLATION_INDEX
static const uint32_t SCINTILLATION_INDEX
Definition:
satellite-fading-external-input-trace.h:100
ns3::SatFadingExternalInputTrace::TestFadingTrace
bool TestFadingTrace() const
A method to test that the fading trace is according to assumptions.
Definition:
satellite-fading-external-input-trace.cc:163
ns3::SatFadingExternalInputTrace::FADING_INDEX
static const uint32_t FADING_INDEX
Definition:
satellite-fading-external-input-trace.h:99
ns3::SatFadingExternalInputTrace::ReadTrace
void ReadTrace(std::string filePathName)
Read the fading trace from a binary file.
Definition:
satellite-fading-external-input-trace.cc:61
ns3::SatFadingExternalInputTrace::TIME_INDEX
static const uint32_t TIME_INDEX
Constant indices used in the fading container.
Definition:
satellite-fading-external-input-trace.h:98
ns3::SatFadingExternalInputTrace::m_startTime
float m_startTime
Fading start time and interval calculated from the actual trace file.
Definition:
satellite-fading-external-input-trace.h:108
ns3::SatFadingExternalInputTrace::m_traceVector
std::vector< std::vector< float > > m_traceVector
Container for the fading trace.
Definition:
satellite-fading-external-input-trace.h:114
ns3::SatFadingExternalInputTrace::SatFadingExternalInputTrace
SatFadingExternalInputTrace()
Default constructor.
Definition:
satellite-fading-external-input-trace.cc:36
ns3::SatFadingExternalInputTrace::~SatFadingExternalInputTrace
~SatFadingExternalInputTrace()
Destructor for SatFadingExternalInputTrace.
Definition:
satellite-fading-external-input-trace.cc:55
ns3::SatFadingExternalInputTrace::GetFading
double GetFading() const
Get the current fading value for this specific fading file.
Definition:
satellite-fading-external-input-trace.cc:120
ns3::SatFadingExternalInputTrace::TraceFileType_e
TraceFileType_e
Definition:
satellite-fading-external-input-trace.h:41
ns3::SatFadingExternalInputTrace::FT_TWO_COLUMN
@ FT_TWO_COLUMN
Definition:
satellite-fading-external-input-trace.h:42
ns3::SatFadingExternalInputTrace::FT_THREE_COLUMN
@ FT_THREE_COLUMN
Definition:
satellite-fading-external-input-trace.h:43
ns3::SatFadingExternalInputTrace::m_traceFileType
TraceFileType_e m_traceFileType
There may be different fading file types.
Definition:
satellite-fading-external-input-trace.h:93
ns3
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.
Definition:
sat-link-results-plot.cc:40
model
satellite-fading-external-input-trace.h
Generated by
1.9.1