Loading...
Searching...
No Matches
satellite-stats-antenna-gain-helper.h
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2018 CNES
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation;
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Author: Mathias Ettinger <mettinger@toulouse.viveris.com>
19 */
20
21#ifndef SATELLITE_STATS_ANTENNA_GAIN_HELPER_H
22#define SATELLITE_STATS_ANTENNA_GAIN_HELPER_H
23
25
26#include "ns3/address.h"
27#include "ns3/collector-map.h"
28#include "ns3/ptr.h"
29
30#include <list>
31#include <map>
32#include <string>
33
34namespace ns3
35{
36
37class SatHelper;
38class Node;
39class Time;
40class DataCollectionObject;
41class DistributionCollector;
42
48{
49 public:
50 // inherited from SatStatsHelper base class
51 SatStatsAntennaGainHelper(Ptr<const SatHelper> satHelper);
52
57
61 static TypeId GetTypeId();
62
66 void SetAveragingMode(bool averagingMode);
67
71 bool GetAveragingMode() const;
72
77 void InstallProbes();
78
84 void AntennaGainCallback(std::string identifier, double gain);
85
86 protected:
87 // inherited from SatStatsHelper base class
88 void DoInstall();
89
92
94 Ptr<DistributionCollector> m_averagingCollector;
95
97 Ptr<DataCollectionObject> m_aggregator;
98
99 private:
101
102}; // end of class SatStatsAntennaGainHelper
103
104} // namespace ns3
105
106#endif /* SATELLITE_STATS_ANTENNA_GAIN_HELPER_H */
Build a satellite network set with needed objects and configuration.
void AntennaGainCallback(std::string identifier, double gain)
Receive inputs from trace sources.
SatStatsAntennaGainHelper(Ptr< const SatHelper > satHelper)
void InstallProbes()
Set up several probes or other means of listeners and connect them to the collectors.
static TypeId GetTypeId()
inherited from ObjectBase base class
CollectorMap m_terminalCollectors
Maintains a list of collectors created by this helper.
Ptr< DataCollectionObject > m_aggregator
The aggregator created by this helper.
Ptr< DistributionCollector > m_averagingCollector
The final collector utilized in averaged output (histogram, PDF, and CDF).
void DoInstall()
Install the probes, collectors, and aggregators necessary to produce the statistics output.
SatStatsHelper(Ptr< const SatHelper > satHelper)
Creates a new helper instance.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.