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 namespace ns3
27 {
28 
36 class SatRtnLinkTime : public SimpleRefCount<SatRtnLinkTime>
37 {
38  public:
43 
47  virtual ~SatRtnLinkTime();
48 
53  void Initialize(Ptr<SatSuperframeSeq> seq);
54 
60  Time GetSuperFrameDuration(uint8_t superFrameSeqId) const;
61 
67  uint32_t GetCurrentSuperFrameCount(uint8_t superFrameSeqId) const;
68 
74  Time GetCurrentSuperFrameStartTime(uint8_t superFrameSeqId) const;
75 
81  uint32_t GetNextSuperFrameCount(uint8_t superFrameSeqId) const;
82 
88  Time GetNextSuperFrameStartTime(uint8_t superFrameSeqId) const;
89 
97  Time GetSuperFrameTxTime(uint8_t superFrameSeqId,
98  uint32_t superFrameCount,
99  Time timingAdvance) const;
100 
107  uint32_t GetCurrentSuperFrameCount(uint8_t superFrameSeqId, Time timingAdvance) const;
108 
115  uint32_t GetNextSuperFrameCount(uint8_t superFrameSeqId, Time timingAdvance) const;
116 
123  Time GetCurrentSuperFrameTxTime(uint8_t superFrameSeqId, Time timingAdvance) const;
124 
131  Time GetNextSuperFrameTxTime(uint8_t superFrameSeqId, Time timingAdvance) const;
132 
133  private:
134  Ptr<SatSuperframeSeq> m_superframeSeq;
135 };
136 
137 } // namespace ns3
138 
139 #endif /* SATELLITE_RTN_LINK_TIME_H_ */
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.