Loading...
Searching...
No Matches
satellite-beam-user-info.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: Sami Rantanen <sami.rantanen@magister.fi>
19 */
20
21#ifndef SAT_BEAM_USER_INFO_H
22#define SAT_BEAM_USER_INFO_H
23
24#include "ns3/geo-coordinate.h"
25
26#include <stdint.h>
27#include <utility>
28#include <vector>
29
30namespace ns3
31{
32
46{
47 public:
52
61 SatBeamUserInfo(uint32_t utCount, uint32_t userCountPerUt);
62
67 {
68 }
69
73 uint32_t GetUtCount() const;
74
80 uint32_t GetUtUserCount(uint32_t utIndex) const;
81
90 void SetUtUserCount(uint32_t utIndex, uint32_t userCount);
91
97 void AppendUt(uint32_t userCount);
98
102 std::vector<std::pair<GeoCoordinate, uint32_t>> GetPositions();
103
107 void SetPositions(std::vector<std::pair<GeoCoordinate, uint32_t>> positions);
108
109 private:
110 // vector to store users per UT
111 std::vector<uint32_t> m_userCount;
112
113 // storing static positions for some UTs
114 std::vector<std::pair<GeoCoordinate, uint32_t>> m_positions;
115};
116
117} // namespace ns3
118
119#endif /* SAT_BEAM_USER_INFO_H */
uint32_t GetUtUserCount(uint32_t utIndex) const
void AppendUt(uint32_t userCount)
Appends new UT to end of the list with given user count for the appended UT.
virtual ~SatBeamUserInfo()
Destructor for SatBeamUserInfo.
std::vector< std::pair< GeoCoordinate, uint32_t > > GetPositions()
void SetPositions(std::vector< std::pair< GeoCoordinate, uint32_t > > positions)
Set the list of custom positions to create, and associated group.
void SetUtUserCount(uint32_t utIndex, uint32_t userCount)
Sets user count for the UT with given uIndex.
std::vector< std::pair< GeoCoordinate, uint32_t > > m_positions
SatBeamUserInfo()
Default constructor for SatBeamUserInfo enables creating an empty information structure.
std::vector< uint32_t > m_userCount
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.