Loading...
Searching...
No Matches
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
27
28#include <utility>
29#include <vector>
30
31namespace ns3
32{
33
40{
41 public:
46 static TypeId GetTypeId(void);
47
52
57
58 private:
69 virtual Ptr<SatInterference::InterferenceChangeEvent> DoAdd(Time rxDuration,
70 double rxPower,
71 Address rxAddress);
83 virtual std::vector<std::pair<double, double>> DoCalculate(
84 Ptr<SatInterference::InterferenceChangeEvent> event);
85
89 virtual void DoReset(void);
90
96 virtual void DoNotifyRxStart(Ptr<SatInterference::InterferenceChangeEvent> event);
97
103 virtual void DoNotifyRxEnd(Ptr<SatInterference::InterferenceChangeEvent> event);
104
107
111 double m_power;
112
117};
118
119} // namespace ns3
120
121#endif /* SATELLITE_CONSTANT_INTERFERENCE_H */
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.
SatConstantInterference & operator=(const SatConstantInterference &o)
virtual void DoNotifyRxEnd(Ptr< SatInterference::InterferenceChangeEvent > event)
Notifies that RX is ended by a receiver.
virtual void DoReset(void)
Resets current interference.
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)
SatInterference()
Constructor for Satellite interference base class.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.