satellite-position-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) 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_POSITION_INPUT_TRACE_CONTAINER_H
22 #define SATELLITE_POSITION_INPUT_TRACE_CONTAINER_H
23 
24 #include "geo-coordinate.h"
27 
28 #include <ns3/satellite-input-fstream-time-double-container.h>
29 
30 namespace ns3
31 {
32 
40 {
41  public:
45  typedef std::map<std::string, Ptr<SatInputFileStreamTimeDoubleContainer>> container_t;
46 
51 
56 
61  static TypeId GetTypeId(void);
62 
67  TypeId GetInstanceTypeId(void) const;
68 
72  void DoDispose();
73 
79  GeoCoordinate GetPosition(const std::string& key,
81 
85  void Reset();
86 
87  private:
93  Ptr<SatInputFileStreamTimeDoubleContainer> AddNode(const std::string& key);
94 
100  Ptr<SatInputFileStreamTimeDoubleContainer> FindNode(const std::string& key);
101 
106 };
107 
108 } // namespace ns3
109 
110 #endif /* SATELLITE_POSITION_INPUT_TRACE_CONTAINER_H */
GeoCoordinate class is used to store and operate with geodetic coordinates.
Base class for trace containers such as interference or fading traces.
Ptr< SatInputFileStreamTimeDoubleContainer > AddNode(const std::string &key)
Function for adding the node to the map.
static TypeId GetTypeId(void)
NS-3 type id function.
std::map< std::string, Ptr< SatInputFileStreamTimeDoubleContainer > > container_t
typedef for map of containers
void Reset()
Function for resetting the variables.
TypeId GetInstanceTypeId(void) const
NS-3 instance type id function.
GeoCoordinate GetPosition(const std::string &key, GeoCoordinate::ReferenceEllipsoid_t refEllipsoid)
Function for getting the Rx power density.
Ptr< SatInputFileStreamTimeDoubleContainer > FindNode(const std::string &key)
Function for finding the container matching the key.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.