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 #include <stdint.h>
28 
29 namespace ns3
30 {
31 
37 class SatConstantPropagationDelayModel : public PropagationDelayModel
38 {
39  public:
44  static TypeId GetTypeId(void);
45 
50 
57  virtual Time GetDelay(Ptr<MobilityModel> a, Ptr<MobilityModel> b) const;
58 
63  virtual Time GetDelay(void) const;
64 
69  void SetDelay(Time delay);
70 
75  int64_t DoAssignStreams(int64_t s);
76 
77  private:
78  Time m_delay;
79 };
80 
81 } // namespace ns3
82 
83 #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.