satellite-traced-interference.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  * Copyright (c) 2018 CNES
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation;
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Author: Sami Rantanen <sami.rantanen@magister.fi>
20  * Author: Mathias Ettinger <mettinger@toulouse.viveris.fr>
21  */
22 
23 #ifndef SATELLITE_TRACED_INTERFERENCE_H
24 #define SATELLITE_TRACED_INTERFERENCE_H
25 
26 #include "satellite-enums.h"
28 #include "satellite-interference.h"
29 
30 #include <utility>
31 #include <vector>
32 
33 namespace ns3
34 {
35 
41 {
42  public:
47  static TypeId GetTypeId(void);
48 
53  TypeId GetInstanceTypeId(void) const;
54 
60  SatTracedInterference(SatEnums::ChannelType_t channeltype, double rxBandwidth);
61 
66 
71 
75  void DoDispose();
76 
81  void SetRxBandwidth(double rxBandwidth);
82 
83  private:
94  virtual Ptr<SatInterference::InterferenceChangeEvent> DoAdd(Time rxDuration,
95  double rxPower,
96  Address rxAddress);
108  virtual std::vector<std::pair<double, double>> DoCalculate(
109  Ptr<SatInterference::InterferenceChangeEvent> event);
110 
114  virtual void DoReset(void);
115 
121  virtual void DoNotifyRxStart(Ptr<SatInterference::InterferenceChangeEvent> event);
122 
128  virtual void DoNotifyRxEnd(Ptr<SatInterference::InterferenceChangeEvent> event);
129 
135 
142 
146  bool m_rxing;
147 
151  double m_power;
152 
157 
162 };
163 
164 } // namespace ns3
165 
166 #endif /* SATELLITE_TRACED_INTERFERENCE_H */
ChannelType_t
Types of channel.
Abstract class defining interface for interference calculations objects.
Satellite traced interference.
static TypeId GetTypeId(void)
Derived from Object.
SatTracedInterference(const SatTracedInterference &o)
virtual void DoNotifyRxEnd(Ptr< SatInterference::InterferenceChangeEvent > event)
Notifies that RX is ended by a receiver.
TypeId GetInstanceTypeId(void) const
Derived from Object.
SatTracedInterference & operator=(const SatTracedInterference &o)
virtual void DoReset(void)
Resets current interference.
void DoDispose()
Dispose of SatTracedInterference.
virtual std::vector< std::pair< double, double > > DoCalculate(Ptr< SatInterference::InterferenceChangeEvent > event)
Calculates interference power for the given reference Sets final power at end time to finalPower.
void SetRxBandwidth(double rxBandwidth)
Set Rx bandwidth.
SatTracedInterference()
Default constructor, not used.
virtual void DoNotifyRxStart(Ptr< SatInterference::InterferenceChangeEvent > event)
Notifies that RX is started by a receiver.
double m_rxBandwidth_Hz
RX Bandwidth in Hz.
virtual Ptr< SatInterference::InterferenceChangeEvent > DoAdd(Time rxDuration, double rxPower, Address rxAddress)
Adds interference power to interference object.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.