satellite-propagation-delay-model.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_PROPAGATION_DELAY_MODEL_H
22 #define SATELLITE_PROPAGATION_DELAY_MODEL_H
23 
24 #include <ns3/mobility-model.h>
25 #include <ns3/propagation-delay-model.h>
26 
27 namespace ns3
28 {
29 
35 class SatConstantPropagationDelayModel : public PropagationDelayModel
36 {
37  public:
42  static TypeId GetTypeId(void);
43 
48 
55  virtual Time GetDelay(Ptr<MobilityModel> a, Ptr<MobilityModel> b) const;
56 
61  virtual Time GetDelay(void) const;
62 
67  void SetDelay(Time delay);
68 
73  int64_t DoAssignStreams(int64_t s);
74 
75  private:
76  Time m_delay;
77 };
78 
79 } // namespace ns3
80 
81 #endif /* SATELLITE_PROPAGATION_DELAY_MODEL_H */
The propagation delay is constant in time.
virtual Time GetDelay(void) const
Get the propagation delay in Time.
int64_t DoAssignStreams(int64_t s)
DoAssignStreams need to be implemented due to inheritance from PropagationDelayModel.
void SetDelay(Time delay)
Set constant propagation delay.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.