Loading...
Searching...
No Matches
satellite-rtn-link-time.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: Jani Puttonen <jani.puttonen@magister.fi>
19 */
20
21#ifndef SATELLITE_RTN_LINK_TIME_H_
22#define SATELLITE_RTN_LINK_TIME_H_
23
25
26#include <stdint.h>
27
28namespace ns3
29{
30
37
38class SatRtnLinkTime : public SimpleRefCount<SatRtnLinkTime>
39{
40 public:
45
49 virtual ~SatRtnLinkTime();
50
55 void Initialize(Ptr<SatSuperframeSeq> seq);
56
62 Time GetSuperFrameDuration(uint8_t superFrameSeqId) const;
63
69 uint32_t GetCurrentSuperFrameCount(uint8_t superFrameSeqId) const;
70
76 Time GetCurrentSuperFrameStartTime(uint8_t superFrameSeqId) const;
77
83 uint32_t GetNextSuperFrameCount(uint8_t superFrameSeqId) const;
84
90 Time GetNextSuperFrameStartTime(uint8_t superFrameSeqId) const;
91
99 Time GetSuperFrameTxTime(uint8_t superFrameSeqId,
100 uint32_t superFrameCount,
101 Time timingAdvance) const;
102
109 uint32_t GetCurrentSuperFrameCount(uint8_t superFrameSeqId, Time timingAdvance) const;
110
117 uint32_t GetNextSuperFrameCount(uint8_t superFrameSeqId, Time timingAdvance) const;
118
125 Time GetCurrentSuperFrameTxTime(uint8_t superFrameSeqId, Time timingAdvance) const;
126
133 Time GetNextSuperFrameTxTime(uint8_t superFrameSeqId, Time timingAdvance) const;
134
135 private:
136 Ptr<SatSuperframeSeq> m_superframeSeq;
137};
138
139} // namespace ns3
140
141#endif /* SATELLITE_RTN_LINK_TIME_H_ */
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.