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 <vector>
32 
33 namespace ns3
34 {
35 
36 class SatPhyRxCarrierConf;
37 class SatPhyRxCarrier;
38 
44 {
45  public:
53  SatPhyRxCarrierUplink(uint32_t carrierId,
54  Ptr<SatPhyRxCarrierConf> carrierConf,
55  Ptr<SatWaveformConf> waveformConf,
56  bool randomAccessEnabled);
57 
61  virtual ~SatPhyRxCarrierUplink();
62 
67  static TypeId GetTypeId(void);
68 
72  inline virtual CarrierType GetCarrierType()
73  {
74  return CarrierType::DEDICATED_ACCESS;
75  }
76 
82  bool StartRx(Ptr<SatSignalParameters> rxParams);
83 
84  protected:
88  inline virtual const bool GetDefaultReceiveMode()
89  {
90  return true;
91  }
92 
97  virtual void EndRxData(uint32_t key);
98 
104  virtual Ptr<SatInterference::InterferenceChangeEvent> CreateInterference(
105  Ptr<SatSignalParameters> rxParams,
106  Address rxAddress);
107 };
108 
109 } // namespace ns3
110 
111 #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.