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 "satellite-conf.h"
25 
26 #include <ns3/lorawan-mac-end-device-class-a.h>
27 #include <ns3/lorawan-mac-gateway.h>
28 
29 namespace ns3
30 {
31 
36 class SatLoraConf : public Object
37 {
38  public:
39  typedef enum
40  {
44 
48  SatLoraConf();
49 
50  virtual ~SatLoraConf()
51  {
52  }
53 
58  static TypeId GetTypeId(void);
59  TypeId GetInstanceTypeId(void) const;
60 
61  void SetConf(Ptr<LorawanMacGateway> gatewayMac);
62  void SetConf(Ptr<LorawanMacEndDeviceClassA> endDeviceMac);
63 
64  void setSatConfAttributes(Ptr<SatConf> satConf);
65 
66  private:
67  void SetEu863_870Conf(Ptr<LorawanMacGateway> gatewayMac);
68  void SetEu863_870Conf(Ptr<LorawanMacEndDeviceClassA> endDeviceMac);
69 
70  void SetSatelliteConf(Ptr<LorawanMacGateway> gatewayMac);
71  void SetSatelliteConf(Ptr<LorawanMacEndDeviceClassA> endDeviceMac);
72 
74 };
75 
76 } // namespace ns3
77 
78 #endif /* SAT_LORA_CONF_H */
A configuration class for the 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.