satellite-channel-estimation-error-container.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2014 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_CHANNEL_ESTIMATION_ERROR_CONTAINER_H_
22 #define SATELLITE_CHANNEL_ESTIMATION_ERROR_CONTAINER_H_
23 
25 
26 #include <ns3/object.h>
27 
28 #include <map>
29 #include <stdint.h>
30 
31 namespace ns3
32 {
33 
46 class SatChannelEstimationErrorContainer : public SimpleRefCount<SatChannelEstimationErrorContainer>
47 {
48  public:
53 
58 
66  double AddError(double sinrInDb, uint32_t wfId = 0) const;
67 
68  protected:
75  virtual double DoAddError(double sinrInDb, uint32_t wfId) const = 0;
76 
77  private:
78 };
79 
81 {
82  public:
87 
92 
93  protected:
100  virtual double DoAddError(double sinrInDb, uint32_t wfId) const;
101 
102  private:
103 };
104 
106 {
107  public:
112 
117 
118  protected:
126  virtual double DoAddError(double sinrInDb, uint32_t wfId) const;
127 
128  private:
133  Ptr<SatChannelEstimationError> m_channelEstimationError;
134 };
135 
137 {
138  public:
144  SatRtnLinkChannelEstimationErrorContainer(uint32_t minWfId, uint32_t maxWfId);
145 
150 
151  protected:
158  virtual double DoAddError(double sinrInDb, uint32_t wfId) const;
159 
160  private:
164  std::map<uint32_t, Ptr<SatChannelEstimationError>> m_channelEstimationErrors;
165 };
166 
167 } // namespace ns3
168 
169 #endif /* SATELLITE_CHANNEL_ESTIMATION_ERROR_CONTAINER_H_ */
SatChannelEstimationErrorContainer is responsible of adding a channel estimation error on top of raw ...
virtual double DoAddError(double sinrInDb, uint32_t wfId) const =0
Pure virtual method for the implementation in derived classes.
virtual ~SatChannelEstimationErrorContainer()
Destructor for SatChannelEstimationErrorContainer.
double AddError(double sinrInDb, uint32_t wfId=0) const
Add channel estimation error to SINR.
virtual ~SatSimpleChannelEstimationErrorContainer()
Destructor for SatSimpleChannelEstimationErrorContainer.
virtual double DoAddError(double sinrInDb, uint32_t wfId) const
Simple channel estimation error does nothing to the SINR.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.