satellite-rx-power-input-trace-container.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  *
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: Frans Laakso <frans.laakso@magister.fi>
19  */
20 #ifndef SATELLITE_RX_POWER_INPUT_TRACE_CONTAINER_H
21 #define SATELLITE_RX_POWER_INPUT_TRACE_CONTAINER_H
22 
24 #include "satellite-enums.h"
25 
26 #include <ns3/mac48-address.h>
27 #include <ns3/satellite-input-fstream-time-double-container.h>
28 
29 namespace ns3
30 {
31 
39 {
40  public:
44  typedef std::pair<Address, SatEnums::ChannelType_t> key_t;
45 
49  typedef std::map<key_t, Ptr<SatInputFileStreamTimeDoubleContainer>> container_t;
50 
55 
60 
65  static TypeId GetTypeId(void);
66 
71  TypeId GetInstanceTypeId(void) const;
72 
76  void DoDispose();
77 
83  double GetRxPowerDensity(key_t key);
84 
88  void Reset();
89 
90  private:
96  Ptr<SatInputFileStreamTimeDoubleContainer> AddNode(
97  std::pair<Address, SatEnums::ChannelType_t> key);
98 
104  Ptr<SatInputFileStreamTimeDoubleContainer> FindNode(key_t key);
105 
110 };
111 
112 } // namespace ns3
113 
114 #endif /* SATELLITE_RX_POWER_INPUT_TRACE_CONTAINER_H */
Base class for trace containers such as interference or fading traces.
Class for Rx power input trace container.
TypeId GetInstanceTypeId(void) const
NS-3 instance type id function.
static TypeId GetTypeId(void)
NS-3 type id function.
std::pair< Address, SatEnums::ChannelType_t > key_t
typedef for map key
std::map< key_t, Ptr< SatInputFileStreamTimeDoubleContainer > > container_t
typedef for map of containers
void Reset()
Function for resetting the variables.
Ptr< SatInputFileStreamTimeDoubleContainer > AddNode(std::pair< Address, SatEnums::ChannelType_t > key)
Function for adding the node to the map.
Ptr< SatInputFileStreamTimeDoubleContainer > FindNode(key_t key)
Function for finding the container matching the key.
double GetRxPowerDensity(key_t key)
Function for getting the Rx power density.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.