A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
rem-spectrum-phy.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2012 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: Nicola Baldo <nbaldo@cttc.es>
19
*/
20
21
#ifndef REM_SPECTRUM_PHY_H
22
#define REM_SPECTRUM_PHY_H
23
24
25
#include <ns3/spectrum-value.h>
26
#include <ns3/mobility-model.h>
27
#include <ns3/packet.h>
28
#include <ns3/nstime.h>
29
#include <ns3/net-device.h>
30
#include <ns3/spectrum-phy.h>
31
#include <ns3/spectrum-channel.h>
32
#include <string>
33
#include <fstream>
34
35
namespace
ns3 {
36
37
51
class
RemSpectrumPhy
:
public
SpectrumPhy
52
{
53
54
public
:
55
RemSpectrumPhy
();
56
virtual
~RemSpectrumPhy
();
57
58
// inherited from Object
59
void
DoDispose
();
60
static
TypeId
GetTypeId
(
void
);
61
62
// inherited from SpectrumPhy
63
void
SetChannel
(
Ptr<SpectrumChannel>
c);
64
void
SetMobility
(
Ptr<MobilityModel>
m);
65
void
SetDevice
(
Ptr<NetDevice>
d);
66
Ptr<MobilityModel>
GetMobility
();
67
Ptr<NetDevice>
GetDevice
();
68
Ptr<const SpectrumModel>
GetRxSpectrumModel
()
const
;
69
Ptr<AntennaModel>
GetRxAntenna
();
70
void
StartRx
(
Ptr<SpectrumSignalParameters>
params);
71
77
void
SetRxSpectrumModel
(
Ptr<const SpectrumModel>
m);
78
83
double
GetSinr
(
double
noisePower);
84
89
void
Deactivate
();
90
95
bool
IsActive
();
96
101
void
Reset
();
102
103
private
:
104
Ptr<MobilityModel>
m_mobility
;
105
Ptr<const SpectrumModel>
m_rxSpectrumModel
;
106
107
double
m_referenceSignalPower
;
108
double
m_sumPower
;
109
110
bool
m_active
;
111
112
};
113
114
115
116
117
118
119
}
120
121
122
123
124
125
#endif
/* REM_SPECTRUM_PHY_H */
ns3::RemSpectrumPhy::GetMobility
Ptr< MobilityModel > GetMobility()
Definition:
rem-spectrum-phy.cc:97
ns3::RemSpectrumPhy::GetSinr
double GetSinr(double noisePower)
Definition:
rem-spectrum-phy.cc:150
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::SpectrumPhy
Definition:
spectrum-phy.h:45
ns3::RemSpectrumPhy::m_active
bool m_active
Definition:
rem-spectrum-phy.h:110
ns3::RemSpectrumPhy::SetRxSpectrumModel
void SetRxSpectrumModel(Ptr< const SpectrumModel > m)
Definition:
rem-spectrum-phy.cc:143
ns3::RemSpectrumPhy::m_referenceSignalPower
double m_referenceSignalPower
Definition:
rem-spectrum-phy.h:107
ns3::RemSpectrumPhy::GetRxAntenna
Ptr< AntennaModel > GetRxAntenna()
Definition:
rem-spectrum-phy.cc:115
ns3::RemSpectrumPhy::~RemSpectrumPhy
virtual ~RemSpectrumPhy()
Definition:
rem-spectrum-phy.cc:51
ns3::RemSpectrumPhy::GetDevice
Ptr< NetDevice > GetDevice()
Definition:
rem-spectrum-phy.cc:103
ns3::RemSpectrumPhy::Reset
void Reset()
Definition:
rem-spectrum-phy.cc:168
ns3::RemSpectrumPhy
Definition:
rem-spectrum-phy.h:51
ns3::RemSpectrumPhy::Deactivate
void Deactivate()
Definition:
rem-spectrum-phy.cc:156
ns3::RemSpectrumPhy::StartRx
void StartRx(Ptr< SpectrumSignalParameters > params)
Definition:
rem-spectrum-phy.cc:122
ns3::RemSpectrumPhy::m_rxSpectrumModel
Ptr< const SpectrumModel > m_rxSpectrumModel
Definition:
rem-spectrum-phy.h:105
ns3::RemSpectrumPhy::m_sumPower
double m_sumPower
Definition:
rem-spectrum-phy.h:108
ns3::RemSpectrumPhy::m_mobility
Ptr< MobilityModel > m_mobility
Definition:
rem-spectrum-phy.h:104
ns3::RemSpectrumPhy::SetChannel
void SetChannel(Ptr< SpectrumChannel > c)
Definition:
rem-spectrum-phy.cc:77
ns3::RemSpectrumPhy::RemSpectrumPhy
RemSpectrumPhy()
Definition:
rem-spectrum-phy.cc:40
ns3::RemSpectrumPhy::IsActive
bool IsActive()
Definition:
rem-spectrum-phy.cc:162
ns3::RemSpectrumPhy::SetMobility
void SetMobility(Ptr< MobilityModel > m)
Definition:
rem-spectrum-phy.cc:83
ns3::RemSpectrumPhy::DoDispose
void DoDispose()
Definition:
rem-spectrum-phy.cc:57
ns3::RemSpectrumPhy::GetTypeId
static TypeId GetTypeId(void)
Definition:
rem-spectrum-phy.cc:65
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::RemSpectrumPhy::GetRxSpectrumModel
Ptr< const SpectrumModel > GetRxSpectrumModel() const
Definition:
rem-spectrum-phy.cc:109
ns3::RemSpectrumPhy::SetDevice
void SetDevice(Ptr< NetDevice > d)
Definition:
rem-spectrum-phy.cc:90
src
lte
model
rem-spectrum-phy.h
Generated on Sat Nov 16 2013 12:55:32 for ns-3 by
1.8.5