satellite-isl-arbiter-unicast-helper.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  * Copyright (c) 2018 CNES
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation;
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Inspired and adapted from Hypatia: https://github.com/snkas/hypatia
20  *
21  * Author: Bastien Tauran <bastien.tauran@viveris.fr>
22  */
23 
24 #ifndef SATELLITE_ISL_ARBITER_UNICAST_HELPER_H
25 #define SATELLITE_ISL_ARBITER_UNICAST_HELPER_H
26 
27 #include <ns3/node-container.h>
28 #include <ns3/satellite-isl-arbiter-unicast.h>
29 
30 namespace ns3
31 {
32 
33 class SatIslArbiterUnicastHelper : public Object
34 {
35  public:
36  static TypeId GetTypeId(void);
37 
42 
49  SatIslArbiterUnicastHelper(NodeContainer geoNodes,
50  std::vector<std::pair<uint32_t, uint32_t>> isls);
51 
55  void InstallArbiters();
56 
60  void UpdateArbiters();
61 
62  private:
66  std::vector<std::map<uint32_t, uint32_t>> CalculateGlobalState();
67 
68  NodeContainer m_geoNodes; // List of all satellite nodes
69  std::vector<std::pair<uint32_t, uint32_t>> m_isls; // List of all ISLs
70 };
71 
72 } // namespace ns3
73 
74 #endif /* SATELLITE_ISL_ARBITER_UNICAST_HELPER_H */
std::vector< std::pair< uint32_t, uint32_t > > m_isls
void InstallArbiters()
Install arbiter on all satellite nodes.
void UpdateArbiters()
Update arbiter on all satellite nodes.
std::vector< std::map< uint32_t, uint32_t > > CalculateGlobalState()
Compute routing tables for all satellite nodes.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.