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 #include <map>
31 #include <stdint.h>
32 #include <utility>
33 #include <vector>
34 
35 namespace ns3
36 {
37 
38 class SatIslArbiterUnicastHelper : public Object
39 {
40  public:
41  static TypeId GetTypeId(void);
42 
47 
53  SatIslArbiterUnicastHelper(std::vector<std::pair<uint32_t, uint32_t>> isls);
54 
58  void InstallArbiters();
59 
63  void UpdateArbiters();
64 
65  private:
69  std::vector<std::map<uint32_t, uint32_t>> CalculateGlobalState();
70 
71  std::vector<std::pair<uint32_t, uint32_t>> m_isls; // List of all ISLs
72 };
73 
74 } // namespace ns3
75 
76 #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.