A Discrete-Event Network Simulator
API
constant-spectrum-propagation-loss.h
Go to the documentation of this file.
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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: Manuel Requena <manuel.requena@cttc.es>
19  */
20 
21 #ifndef CONSTANT_SPECTRUM_PROPAGATION_LOSS_H
22 #define CONSTANT_SPECTRUM_PROPAGATION_LOSS_H
23 
24 #include "ns3/spectrum-propagation-loss-model.h"
25 
26 namespace ns3 {
27 
34 {
35 public:
38 
43  static TypeId GetTypeId ();
44 
47  Ptr<const MobilityModel> b) const;
52  void SetLossDb (double lossDb);
57  double GetLossDb () const;
58 
59 protected:
60  double m_lossDb;
61  double m_lossLinear;
62 private:
63 };
64 
65 
66 } // namespace ns3
67 
68 #endif /* CONSTANT_SPECTRUM_PROPAGATION_LOSS_MODEL_H */
virtual Ptr< SpectrumValue > DoCalcRxPowerSpectralDensity(Ptr< const SpectrumValue > txPsd, Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const
double GetLossDb() const
Get the propagation loss.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetLossDb(double lossDb)
Set the propagation loss.
spectrum-aware propagation loss model
a unique identifier for an interface.
Definition: type-id.h:58