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 <stdint.h>
27
#include <string>
28
#include <vector>
29
30
namespace
ns3
31
{
32
39
class
SatFadingExternalInputTrace
:
public
SimpleRefCount<SatFadingExternalInputTrace>
40
{
41
public
:
42
enum
TraceFileType_e
43
{
44
FT_TWO_COLUMN
,
45
FT_THREE_COLUMN
46
};
47
51
SatFadingExternalInputTrace
();
52
58
SatFadingExternalInputTrace
(
TraceFileType_e
type, std::string filePathName);
59
63
~SatFadingExternalInputTrace
();
64
69
double
GetFading
()
const
;
70
76
bool
TestFadingTrace
()
const
;
77
78
private
:
83
void
ReadTrace
(std::string filePathName);
84
95
TraceFileType_e
m_traceFileType
;
96
100
static
const
uint32_t
TIME_INDEX
= 0;
101
static
const
uint32_t
FADING_INDEX
= 1;
102
static
const
uint32_t
SCINTILLATION_INDEX
= 2;
103
110
float
m_startTime
;
111
float
m_timeInterval
;
112
116
std::vector<std::vector<float>>
m_traceVector
;
117
};
118
119
}
// namespace ns3
120
121
#endif
/* SATELLITE_FADING_EXTERNAL_INPUT_TRACE_H */
ns3::SatFadingExternalInputTrace
The class for satellite fading external input trace.
Definition:
satellite-fading-external-input-trace.h:40
ns3::SatFadingExternalInputTrace::m_timeInterval
float m_timeInterval
Definition:
satellite-fading-external-input-trace.h:111
ns3::SatFadingExternalInputTrace::SCINTILLATION_INDEX
static const uint32_t SCINTILLATION_INDEX
Definition:
satellite-fading-external-input-trace.h:102
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:168
ns3::SatFadingExternalInputTrace::FADING_INDEX
static const uint32_t FADING_INDEX
Definition:
satellite-fading-external-input-trace.h:101
ns3::SatFadingExternalInputTrace::ReadTrace
void ReadTrace(std::string filePathName)
Read the fading trace from a binary file.
Definition:
satellite-fading-external-input-trace.cc:66
ns3::SatFadingExternalInputTrace::TIME_INDEX
static const uint32_t TIME_INDEX
Constant indices used in the fading container.
Definition:
satellite-fading-external-input-trace.h:100
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:110
ns3::SatFadingExternalInputTrace::m_traceVector
std::vector< std::vector< float > > m_traceVector
Container for the fading trace.
Definition:
satellite-fading-external-input-trace.h:116
ns3::SatFadingExternalInputTrace::SatFadingExternalInputTrace
SatFadingExternalInputTrace()
Default constructor.
Definition:
satellite-fading-external-input-trace.cc:41
ns3::SatFadingExternalInputTrace::~SatFadingExternalInputTrace
~SatFadingExternalInputTrace()
Destructor for SatFadingExternalInputTrace.
Definition:
satellite-fading-external-input-trace.cc:60
ns3::SatFadingExternalInputTrace::GetFading
double GetFading() const
Get the current fading value for this specific fading file.
Definition:
satellite-fading-external-input-trace.cc:125
ns3::SatFadingExternalInputTrace::TraceFileType_e
TraceFileType_e
Definition:
satellite-fading-external-input-trace.h:43
ns3::SatFadingExternalInputTrace::FT_TWO_COLUMN
@ FT_TWO_COLUMN
Definition:
satellite-fading-external-input-trace.h:44
ns3::SatFadingExternalInputTrace::FT_THREE_COLUMN
@ FT_THREE_COLUMN
Definition:
satellite-fading-external-input-trace.h:45
ns3::SatFadingExternalInputTrace::m_traceFileType
TraceFileType_e m_traceFileType
There may be different fading file types.
Definition:
satellite-fading-external-input-trace.h:95
ns3
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.
Definition:
sat-link-results-plot.cc:41
model
satellite-fading-external-input-trace.h
Generated by
1.9.1