Loading...
Searching...
No Matches
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"
29
30#include <utility>
31#include <vector>
32
33namespace ns3
34{
35
41{
42 public:
47 static TypeId GetTypeId(void);
48
54 SatTracedInterference(SatEnums::ChannelType_t channeltype, double rxBandwidth);
55
60
65
69 void DoDispose();
70
75 void SetRxBandwidth(double rxBandwidth);
76
77 private:
88 virtual Ptr<SatInterference::InterferenceChangeEvent> DoAdd(Time rxDuration,
89 double rxPower,
90 Address rxAddress);
102 virtual std::vector<std::pair<double, double>> DoCalculate(
103 Ptr<SatInterference::InterferenceChangeEvent> event);
104
108 virtual void DoReset(void);
109
115 virtual void DoNotifyRxStart(Ptr<SatInterference::InterferenceChangeEvent> event);
116
122 virtual void DoNotifyRxEnd(Ptr<SatInterference::InterferenceChangeEvent> event);
123
129
136
141
145 double m_power;
146
151
156};
157
158} // namespace ns3
159
160#endif /* SATELLITE_TRACED_INTERFERENCE_H */
ChannelType_t
Types of channel.
SatInterference()
Constructor for Satellite interference base class.
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.
virtual void DoReset(void)
Resets current interference.
void DoDispose()
Dispose of SatTracedInterference.
SatTracedInterference(SatEnums::ChannelType_t channeltype, double rxBandwidth)
Constructor.
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.
SatTracedInterference & operator=(const SatTracedInterference &o)
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.