A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
buildings-channel-condition-model.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015, NYU WIRELESS, Tandon School of Engineering, New York
3
* University
4
* Copyright (c) 2019 SIGNET Lab, Department of Information Engineering,
5
* University of Padova
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License version 2 as
9
* published by the Free Software Foundation;
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
*/
20
21
#ifndef BUILDINGS_CHANNEL_CONDITION_MODEL_H
22
#define BUILDINGS_CHANNEL_CONDITION_MODEL_H
23
24
#include "ns3/channel-condition-model.h"
25
26
namespace
ns3
27
{
28
29
class
MobilityModel;
30
31
/**
32
* \ingroup buildings
33
* \ingroup propagation
34
*
35
* \brief Determines the channel condition based on the buildings deployed in the
36
* scenario
37
*
38
* Code adapted from MmWave3gppBuildingsPropagationLossModel
39
*/
40
class
BuildingsChannelConditionModel
:
public
ChannelConditionModel
41
{
42
public
:
43
/**
44
* Get the type ID.
45
* \brief Get the type ID.
46
* \return the object TypeId
47
*/
48
static
TypeId
GetTypeId
();
49
50
/**
51
* Constructor for the BuildingsChannelConditionModel class
52
*/
53
BuildingsChannelConditionModel
();
54
55
/**
56
* Destructor for the BuildingsChannelConditionModel class
57
*/
58
~BuildingsChannelConditionModel
()
override
;
59
60
/**
61
* Computes the condition of the channel between a and b.
62
*
63
* \param a mobility model
64
* \param b mobility model
65
* \return the condition of the channel between a and b
66
*/
67
Ptr<ChannelCondition>
GetChannelCondition
(
Ptr<const MobilityModel>
a,
68
Ptr<const MobilityModel>
b)
const override
;
69
70
/**
71
* If this model uses objects of type RandomVariableStream,
72
* set the stream numbers to the integers starting with the offset
73
* 'stream'. Return the number of streams (possibly zero) that
74
* have been assigned.
75
*
76
* \param stream
77
* \return the number of stream indices assigned by this model
78
*/
79
int64_t
AssignStreams
(int64_t stream)
override
;
80
81
private
:
82
/**
83
* \brief Checks if the line of sight between position l1 and position l2 is
84
* blocked by a building.
85
*
86
* \param l1 position
87
* \param l2 position
88
* \return true if the line of sight is blocked, false otherwise
89
*/
90
bool
IsLineOfSightBlocked
(
const
Vector& l1,
const
Vector& l2)
const
;
91
};
92
93
}
// namespace ns3
94
95
#endif
/* BUILDINGS_CHANNEL_CONDITION_MODEL_H */
ns3::BuildingsChannelConditionModel
Determines the channel condition based on the buildings deployed in the scenario.
Definition:
buildings-channel-condition-model.h:41
ns3::BuildingsChannelConditionModel::AssignStreams
int64_t AssignStreams(int64_t stream) override
If this model uses objects of type RandomVariableStream, set the stream numbers to the integers start...
Definition:
buildings-channel-condition-model.cc:190
ns3::BuildingsChannelConditionModel::GetChannelCondition
Ptr< ChannelCondition > GetChannelCondition(Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const override
Computes the condition of the channel between a and b.
Definition:
buildings-channel-condition-model.cc:56
ns3::BuildingsChannelConditionModel::IsLineOfSightBlocked
bool IsLineOfSightBlocked(const Vector &l1, const Vector &l2) const
Checks if the line of sight between position l1 and position l2 is blocked by a building.
Definition:
buildings-channel-condition-model.cc:171
ns3::BuildingsChannelConditionModel::BuildingsChannelConditionModel
BuildingsChannelConditionModel()
Constructor for the BuildingsChannelConditionModel class.
Definition:
buildings-channel-condition-model.cc:46
ns3::BuildingsChannelConditionModel::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
buildings-channel-condition-model.cc:37
ns3::BuildingsChannelConditionModel::~BuildingsChannelConditionModel
~BuildingsChannelConditionModel() override
Destructor for the BuildingsChannelConditionModel class.
Definition:
buildings-channel-condition-model.cc:51
ns3::ChannelConditionModel
Models the channel condition.
Definition:
channel-condition-model.h:237
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
buildings
model
buildings-channel-condition-model.h
Generated on Tue May 28 2024 23:34:15 for ns-3 by
1.9.6