satellite-lora-conf.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: Bastien Tauran <bastien.tauran@viveris.fr>
19  */
20 
21 #ifndef SAT_LORA_CONF_H
22 #define SAT_LORA_CONF_H
23 
24 #include <ns3/lorawan-mac-end-device-class-a.h>
25 #include <ns3/lorawan-mac-gateway.h>
26 #include <ns3/satellite-conf.h>
27 
28 namespace ns3
29 {
30 
35 class SatLoraConf : public Object
36 {
37  public:
38  typedef enum
39  {
43 
47  SatLoraConf();
48 
49  virtual ~SatLoraConf()
50  {
51  }
52 
57  static TypeId GetTypeId(void);
58  TypeId GetInstanceTypeId(void) const;
59 
60  void SetConf(Ptr<LorawanMacGateway> gatewayMac);
61  void SetConf(Ptr<LorawanMacEndDeviceClassA> endDeviceMac);
62 
63  void setSatConfAttributes(Ptr<SatConf> satConf);
64 
65  private:
66  void SetEu863_870Conf(Ptr<LorawanMacGateway> gatewayMac);
67  void SetEu863_870Conf(Ptr<LorawanMacEndDeviceClassA> endDeviceMac);
68 
69  void SetSatelliteConf(Ptr<LorawanMacGateway> gatewayMac);
70  void SetSatelliteConf(Ptr<LorawanMacEndDeviceClassA> endDeviceMac);
71 
73 };
74 
75 } // namespace ns3
76 
77 #endif /* SAT_LORA_CONF_H */
A configuration class for the GEO satellite reference system.
SatLoraConf()
Default constructor.
void SetConf(Ptr< LorawanMacGateway > gatewayMac)
void SetEu863_870Conf(Ptr< LorawanMacGateway > gatewayMac)
static TypeId GetTypeId(void)
Get the type ID.
@ SATELLITE
For Satellite.
PhyLayerStandard_t m_phyLayerStandard
void SetSatelliteConf(Ptr< LorawanMacGateway > gatewayMac)
TypeId GetInstanceTypeId(void) const
void setSatConfAttributes(Ptr< SatConf > satConf)
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.