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 
30 namespace ns3
31 {
32 
45 class SatChannelEstimationErrorContainer : public SimpleRefCount<SatChannelEstimationErrorContainer>
46 {
47  public:
52 
57 
65  double AddError(double sinrInDb, uint32_t wfId = 0) const;
66 
67  protected:
74  virtual double DoAddError(double sinrInDb, uint32_t wfId) const = 0;
75 
76  private:
77 };
78 
80 {
81  public:
86 
91 
92  protected:
99  virtual double DoAddError(double sinrInDb, uint32_t wfId) const;
100 
101  private:
102 };
103 
105 {
106  public:
111 
116 
117  protected:
125  virtual double DoAddError(double sinrInDb, uint32_t wfId) const;
126 
127  private:
132  Ptr<SatChannelEstimationError> m_channelEstimationError;
133 };
134 
136 {
137  public:
143  SatRtnLinkChannelEstimationErrorContainer(uint32_t minWfId, uint32_t maxWfId);
144 
149 
150  protected:
157  virtual double DoAddError(double sinrInDb, uint32_t wfId) const;
158 
159  private:
163  std::map<uint32_t, Ptr<SatChannelEstimationError>> m_channelEstimationErrors;
164 };
165 
166 } // namespace ns3
167 
168 #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.