satellite-stats-fwd-link-scheduler-symbol-rate-helper.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2019 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: Bastien Tauran <bastien.tauran@viveris.fr>
19  *
20  */
21 
22 #ifndef SATELLITE_STATS_FWD_LINK_SCHEDULER_SYMBOL_RATE_HELPER_H
23 #define SATELLITE_STATS_FWD_LINK_SCHEDULER_SYMBOL_RATE_HELPER_H
24 
25 #include <ns3/callback.h>
26 #include <ns3/collector-map.h>
27 #include <ns3/ptr.h>
28 #include <ns3/satellite-enums.h>
29 #include <ns3/satellite-stats-helper.h>
30 
31 namespace ns3
32 {
33 
34 // BASE CLASS /////////////////////////////////////////////////////////////////
35 
36 class SatHelper;
37 class Node;
38 class Time;
39 class DataCollectionObject;
40 
46 {
47  public:
48  // inherited from SatStatsHelper base class
49  SatStatsFwdLinkSchedulerSymbolRateHelper(Ptr<const SatHelper> satHelper);
50 
55 
59  static TypeId GetTypeId();
60 
65  void InstallProbes();
66 
72  void SymbolRateCallback(uint8_t sliceId, double symbolRate);
73 
77  Callback<void, uint8_t, double> GetTraceSinkCallback() const;
78 
79  protected:
80  // inherited from SatStatsHelper base class
81  void DoInstall();
82 
84  CollectorMap m_collectors;
85 
87  Ptr<DataCollectionObject> m_aggregator;
88 
89  private:
91  Callback<void, uint8_t, double> m_traceSinkCallback;
92 
93 }; // end of class SatStatsFwdLinkSchedulerSymbolRateHelper
94 
95 } // end of namespace ns3
96 
97 #endif /* SATELLITE_STATS_FWD_LINK_SCHEDULER_SYMBOL_RATE_HELPER_H */
Parent abstract class of all satellite statistics helpers.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.