satellite-stats-resources-granted-helper.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2014 Magister Solutions
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: Budiarto Herman <budiarto.herman@magister.fi>
19  *
20  */
21 
22 #ifndef SATELLITE_STATS_RESOURCES_GRANTED_HELPER_H
23 #define SATELLITE_STATS_RESOURCES_GRANTED_HELPER_H
24 
25 #include "satellite-stats-helper.h"
26 
27 #include <ns3/collector-map.h>
28 #include <ns3/ptr.h>
29 
30 #include <list>
31 #include <map>
32 #include <utility>
33 
34 namespace ns3
35 {
36 
37 class SatHelper;
38 class DataCollectionObject;
39 
45 {
46  public:
47  // inherited from SatStatsHelper base class
48  SatStatsResourcesGrantedHelper(Ptr<const SatHelper> satHelper);
49 
54 
58  static TypeId GetTypeId();
59 
63  template <typename R, typename C, typename P>
65 
66  protected:
67  // inherited from SatStatsHelper base class
68  void DoInstall();
69 
70  private:
75  template <typename R, typename C, typename P>
76  void InstallProbe(Ptr<Node> utNode, R (C::*collectorTraceSink)(P, P));
77 
79  std::map<Ptr<Probe>, std::pair<Ptr<Node>, uint32_t>> m_probes;
80 
82  CollectorMap m_terminalCollectors;
83 
85  Ptr<DataCollectionObject> m_aggregator;
86 
87 }; // end of class SatStatsResourcesGrantedHelper
88 
89 } // end of namespace ns3
90 
91 #endif /* SATELLITE_STATS_RESOURCES_GRANTED_HELPER_H */
Parent abstract class of all satellite statistics helpers.
std::map< Ptr< Probe >, std::pair< Ptr< Node >, uint32_t > > m_probes
Maintains a list of probes created by this helper.
void InstallProbe(Ptr< Node > utNode, R(C::*collectorTraceSink)(P, P))
void DoInstall()
Install the probes, collectors, and aggregators necessary to produce the statistics output.
Ptr< DataCollectionObject > m_aggregator
The aggregator created by this helper.
SatStatsResourcesGrantedHelper(Ptr< const SatHelper > satHelper)
void UpdateIdentifierOnProbes()
Change identifier used on probes, when handovers occur.
static TypeId GetTypeId()
inherited from ObjectBase base class
CollectorMap m_terminalCollectors
Maintains a list of collectors created by this helper.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.