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 namespace ns3
31 {
32 
38 {
39  public:
44  static TypeId GetTypeId(void);
45 
50  TypeId GetInstanceTypeId(void) const;
51 
57  SatTracedInterference(SatEnums::ChannelType_t channeltype, double rxBandwidth);
58 
63 
68 
72  void DoDispose();
73 
78  void SetRxBandwidth(double rxBandwidth);
79 
80  private:
91  virtual Ptr<SatInterference::InterferenceChangeEvent> DoAdd(Time rxDuration,
92  double rxPower,
93  Address rxAddress);
105  virtual std::vector<std::pair<double, double>> DoCalculate(
106  Ptr<SatInterference::InterferenceChangeEvent> event);
107 
111  virtual void DoReset(void);
112 
118  virtual void DoNotifyRxStart(Ptr<SatInterference::InterferenceChangeEvent> event);
119 
125  virtual void DoNotifyRxEnd(Ptr<SatInterference::InterferenceChangeEvent> event);
126 
132 
139 
143  bool m_rxing;
144 
148  double m_power;
149 
154 
159 };
160 
161 } // namespace ns3
162 
163 #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.