satellite-phy-rx-carrier-uplink.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  * Copyright (c) 2018 CNES
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation;
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Author: Jani Puttonen <jani.puttonen@magister.fi>
20  * Author: Mathias Ettinger <mettinger@toulouse.viveris.fr>
21  */
22 
23 #ifndef SATELLITE_PHY_RX_CARRIER_UPLINK_H
24 #define SATELLITE_PHY_RX_CARRIER_UPLINK_H
25 
27 
28 #include <deque>
29 #include <list>
30 #include <map>
31 #include <stdint.h>
32 #include <vector>
33 
34 namespace ns3
35 {
36 
37 class SatPhyRxCarrierConf;
38 class SatPhyRxCarrier;
39 
45 {
46  public:
54  SatPhyRxCarrierUplink(uint32_t carrierId,
55  Ptr<SatPhyRxCarrierConf> carrierConf,
56  Ptr<SatWaveformConf> waveformConf,
57  bool randomAccessEnabled);
58 
62  virtual ~SatPhyRxCarrierUplink();
63 
68  static TypeId GetTypeId(void);
69 
73  inline virtual CarrierType GetCarrierType()
74  {
75  return CarrierType::DEDICATED_ACCESS;
76  }
77 
83  bool StartRx(Ptr<SatSignalParameters> rxParams);
84 
85  protected:
89  inline virtual const bool GetDefaultReceiveMode()
90  {
91  return true;
92  }
93 
98  virtual void EndRxData(uint32_t key);
99 
105  virtual Ptr<SatInterference::InterferenceChangeEvent> CreateInterference(
106  Ptr<SatSignalParameters> rxParams,
107  Address rxAddress);
108 };
109 
110 } // namespace ns3
111 
112 #endif /* SATELLITE_PHY_RX_CARRIER_UPLINK_H */
Base class for all SatPhyRxCarriers.
CarrierType
Possible carrier types.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.