satellite-residual-interference-elimination.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2018 CNES
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: Mathias Ettinger <mettinger@toulouse.viveris.com>
19  */
20 
21 #ifndef SATELLITE_RESIDUAL_INTERFERENCE_ELIMINATION_H
22 #define SATELLITE_RESIDUAL_INTERFERENCE_ELIMINATION_H
23 
24 #include "satellite-enums.h"
27 
28 #include <stdint.h>
29 
30 namespace ns3
31 {
32 
38 {
39  public:
43  static TypeId GetTypeId(void);
44 
48  TypeId GetInstanceTypeId(void) const;
49 
54 
58  SatResidualInterferenceElimination(Ptr<SatWaveformConf> waveformConf);
59 
64 
72  void EliminateInterferences(Ptr<SatSignalParameters> packetInterferedWith,
73  Ptr<SatSignalParameters> processedPacket,
74  double EsNo,
75  bool isRegenerative);
76 
86  void EliminateInterferences(Ptr<SatSignalParameters> packetInterferedWith,
87  Ptr<SatSignalParameters> processedPacket,
88  double EsNo,
89  bool isRegenerative,
90  double startTime,
91  double endTime);
92 
93  inline uint32_t GetBurstLengthInSymbols(uint32_t waveformId) const
94  {
95  return m_waveformConf->GetWaveform(waveformId)->GetBurstLengthInSymbols();
96  }
97 
101  double GetResidualPower(Ptr<SatSignalParameters> processedPacket, double EsNo);
102 
103  private:
104  Ptr<SatWaveformConf> m_waveformConf;
106 };
107 
108 } // namespace ns3
109 
110 #endif /* SATELLITE_RESIDUAL_INTERFERENCE_ELIMINATION_H */
Abstract class defining interface for interference elimination calculation objects.
Satellite interference elimination with residual power.
void EliminateInterferences(Ptr< SatSignalParameters > packetInterferedWith, Ptr< SatSignalParameters > processedPacket, double EsNo, bool isRegenerative)
Eliminate the residual power of interference for the given packets.
double GetResidualPower(Ptr< SatSignalParameters > processedPacket, double EsNo)
Calculate the residual power of interference for a given packet.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.