Loading...
Searching...
No Matches
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#include <map>
31#include <string>
32
33namespace ns3
34{
35
43{
44 public:
48 typedef std::map<std::string, Ptr<SatInputFileStreamTimeDoubleContainer>> container_t;
49
54
59
64 static TypeId GetTypeId(void);
65
69 void DoDispose();
70
76 GeoCoordinate GetPosition(const std::string& key,
78
82 void Reset();
83
84 private:
90 Ptr<SatInputFileStreamTimeDoubleContainer> AddNode(const std::string& key);
91
97 Ptr<SatInputFileStreamTimeDoubleContainer> FindNode(const std::string& key);
98
103};
104
105} // namespace ns3
106
107#endif /* SATELLITE_POSITION_INPUT_TRACE_CONTAINER_H */
GeoCoordinate class is used to store and operate with geodetic coordinates.
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.
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.