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
* SPDX-License-Identifier: GPL-2.0-only
8
*/
9
10
#ifndef BUILDINGS_CHANNEL_CONDITION_MODEL_H
11
#define BUILDINGS_CHANNEL_CONDITION_MODEL_H
12
13
#include "ns3/channel-condition-model.h"
14
15
namespace
ns3
16
{
17
18
class
MobilityModel;
19
20
/**
21
* \ingroup buildings
22
* \ingroup propagation
23
*
24
* \brief Determines the channel condition based on the buildings deployed in the
25
* scenario
26
*
27
* Code adapted from MmWave3gppBuildingsPropagationLossModel
28
*/
29
class
BuildingsChannelConditionModel
:
public
ChannelConditionModel
30
{
31
public
:
32
/**
33
* Get the type ID.
34
* \brief Get the type ID.
35
* \return the object TypeId
36
*/
37
static
TypeId
GetTypeId
();
38
39
/**
40
* Constructor for the BuildingsChannelConditionModel class
41
*/
42
BuildingsChannelConditionModel
();
43
44
/**
45
* Destructor for the BuildingsChannelConditionModel class
46
*/
47
~BuildingsChannelConditionModel
()
override
;
48
49
/**
50
* Computes the condition of the channel between a and b.
51
*
52
* \param a mobility model
53
* \param b mobility model
54
* \return the condition of the channel between a and b
55
*/
56
Ptr<ChannelCondition>
GetChannelCondition
(
Ptr<const MobilityModel>
a,
57
Ptr<const MobilityModel>
b)
const override
;
58
59
/**
60
* If this model uses objects of type RandomVariableStream,
61
* set the stream numbers to the integers starting with the offset
62
* 'stream'. Return the number of streams (possibly zero) that
63
* have been assigned.
64
*
65
* \param stream
66
* \return the number of stream indices assigned by this model
67
*/
68
int64_t
AssignStreams
(int64_t stream)
override
;
69
70
private
:
71
/**
72
* \brief Checks if the line of sight between position l1 and position l2 is
73
* blocked by a building.
74
*
75
* \param l1 position
76
* \param l2 position
77
* \return true if the line of sight is blocked, false otherwise
78
*/
79
bool
IsLineOfSightBlocked
(
const
Vector& l1,
const
Vector& l2)
const
;
80
};
81
82
}
// namespace ns3
83
84
#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:30
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:179
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:45
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:160
ns3::BuildingsChannelConditionModel::BuildingsChannelConditionModel
BuildingsChannelConditionModel()
Constructor for the BuildingsChannelConditionModel class.
Definition
buildings-channel-condition-model.cc:35
ns3::BuildingsChannelConditionModel::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
buildings-channel-condition-model.cc:26
ns3::BuildingsChannelConditionModel::~BuildingsChannelConditionModel
~BuildingsChannelConditionModel() override
Destructor for the BuildingsChannelConditionModel class.
Definition
buildings-channel-condition-model.cc:40
ns3::ChannelConditionModel
Models the channel condition.
Definition
channel-condition-model.h:226
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
buildings
model
buildings-channel-condition-model.h
Generated on Fri Nov 8 2024 13:58:59 for ns-3 by
1.11.0