satellite-constant-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_CONSTANT_INTERFERENCE_H
24 #define SATELLITE_CONSTANT_INTERFERENCE_H
25 
26 #include "satellite-interference.h"
27 
28 namespace ns3
29 {
30 
37 {
38  public:
43  static TypeId GetTypeId(void);
44  TypeId GetInstanceTypeId(void) const;
45 
50 
55 
56  private:
67  virtual Ptr<SatInterference::InterferenceChangeEvent> DoAdd(Time rxDuration,
68  double rxPower,
69  Address rxAddress);
81  virtual std::vector<std::pair<double, double>> DoCalculate(
82  Ptr<SatInterference::InterferenceChangeEvent> event);
83 
87  virtual void DoReset(void);
88 
94  virtual void DoNotifyRxStart(Ptr<SatInterference::InterferenceChangeEvent> event);
95 
101  virtual void DoNotifyRxEnd(Ptr<SatInterference::InterferenceChangeEvent> event);
102 
105 
109  double m_power;
110 
114  bool m_rxing;
115 };
116 
117 } // namespace ns3
118 
119 #endif /* SATELLITE_CONSTANT_INTERFERENCE_H */
Satellite constant interference.
virtual Ptr< SatInterference::InterferenceChangeEvent > DoAdd(Time rxDuration, double rxPower, Address rxAddress)
Adds interference power to interference object.
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.
~SatConstantInterference()
Destructor for SatConstantInterference.
virtual void DoNotifyRxEnd(Ptr< SatInterference::InterferenceChangeEvent > event)
Notifies that RX is ended by a receiver.
virtual void DoReset(void)
Resets current interference.
SatConstantInterference & operator=(const SatConstantInterference &o)
virtual void DoNotifyRxStart(Ptr< SatInterference::InterferenceChangeEvent > event)
Notifies that RX is started by a receiver.
static TypeId GetTypeId(void)
Get the type ID.
SatConstantInterference(const SatConstantInterference &o)
Abstract class defining interface for interference calculations objects.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.