A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
probabilistic-v2v-channel-condition-model.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2020 SIGNET Lab, Department of Information Engineering,
4
* University of Padova
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation;
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*/
19
20
#ifndef PROBABILISTIC_V2V_CHANNEL_CONDITION_MODEL_H
21
#define PROBABILISTIC_V2V_CHANNEL_CONDITION_MODEL_H
22
23
#include "ns3/channel-condition-model.h"
24
25
namespace
ns3
{
26
27
class
MobilityModel;
28
39
class
ProbabilisticV2vUrbanChannelConditionModel
:
public
ThreeGppChannelConditionModel
40
{
41
public
:
47
static
TypeId
GetTypeId
(
void
);
48
52
ProbabilisticV2vUrbanChannelConditionModel
();
53
57
virtual
~ProbabilisticV2vUrbanChannelConditionModel
()
override
;
58
59
private
:
67
virtual
double
ComputePlos
(
Ptr<const MobilityModel>
a,
Ptr<const MobilityModel>
b)
const override
;
68
76
virtual
double
ComputePnlos
(
Ptr<const MobilityModel>
a,
Ptr<const MobilityModel>
b)
const override
;
77
78
enum
VehicleDensity
m_densityUrban {
VehicleDensity::INVALID
};
79
};
80
91
class
ProbabilisticV2vHighwayChannelConditionModel
:
public
ThreeGppChannelConditionModel
92
{
93
public
:
99
static
TypeId
GetTypeId
(
void
);
100
104
ProbabilisticV2vHighwayChannelConditionModel
();
105
109
virtual
~ProbabilisticV2vHighwayChannelConditionModel
()
override
;
110
111
private
:
119
virtual
double
ComputePlos
(
Ptr<const MobilityModel>
a,
Ptr<const MobilityModel>
b)
const override
;
120
128
virtual
double
ComputePnlos
(
Ptr<const MobilityModel>
a,
Ptr<const MobilityModel>
b)
const override
;
129
130
enum
VehicleDensity
m_densityHighway {
VehicleDensity::INVALID
};
131
};
132
133
}
// end ns3 namespace
134
135
#endif
/* PROBABILISTIC_V2V_CHANNEL_CONDITION_MODEL_H */
ns3::ProbabilisticV2vHighwayChannelConditionModel
Computes the channel condition for the V2V Highway scenario.
Definition:
probabilistic-v2v-channel-condition-model.h:92
ns3::ProbabilisticV2vHighwayChannelConditionModel::ComputePnlos
virtual double ComputePnlos(Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const override
Compute the NLOS probability.
Definition:
probabilistic-v2v-channel-condition-model.cc:178
ns3::ProbabilisticV2vHighwayChannelConditionModel::~ProbabilisticV2vHighwayChannelConditionModel
virtual ~ProbabilisticV2vHighwayChannelConditionModel() override
Destructor for the ProbabilisticV2vHighwayChannelConditionModel class.
Definition:
probabilistic-v2v-channel-condition-model.cc:138
ns3::ProbabilisticV2vHighwayChannelConditionModel::ProbabilisticV2vHighwayChannelConditionModel
ProbabilisticV2vHighwayChannelConditionModel()
Constructor for the ProbabilisticV2vHighwayChannelConditionModel class.
Definition:
probabilistic-v2v-channel-condition-model.cc:134
ns3::ProbabilisticV2vHighwayChannelConditionModel::ComputePlos
virtual double ComputePlos(Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const override
Compute the LOS probability.
Definition:
probabilistic-v2v-channel-condition-model.cc:142
ns3::ProbabilisticV2vHighwayChannelConditionModel::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
probabilistic-v2v-channel-condition-model.cc:117
ns3::ProbabilisticV2vUrbanChannelConditionModel
Computes the channel condition for the V2V Urban scenario.
Definition:
probabilistic-v2v-channel-condition-model.h:40
ns3::ProbabilisticV2vUrbanChannelConditionModel::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
probabilistic-v2v-channel-condition-model.cc:33
ns3::ProbabilisticV2vUrbanChannelConditionModel::ComputePnlos
virtual double ComputePnlos(Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const override
Compute the NLOS probability.
Definition:
probabilistic-v2v-channel-condition-model.cc:84
ns3::ProbabilisticV2vUrbanChannelConditionModel::~ProbabilisticV2vUrbanChannelConditionModel
virtual ~ProbabilisticV2vUrbanChannelConditionModel() override
Destructor for the ProbabilisticV2vUrbanChannelConditionModel class.
Definition:
probabilistic-v2v-channel-condition-model.cc:54
ns3::ProbabilisticV2vUrbanChannelConditionModel::ProbabilisticV2vUrbanChannelConditionModel
ProbabilisticV2vUrbanChannelConditionModel()
Constructor for the ProbabilisticV2vUrbanChannelConditionModel class.
Definition:
probabilistic-v2v-channel-condition-model.cc:50
ns3::ProbabilisticV2vUrbanChannelConditionModel::ComputePlos
virtual double ComputePlos(Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const override
Compute the LOS probability.
Definition:
probabilistic-v2v-channel-condition-model.cc:58
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:74
ns3::ThreeGppChannelConditionModel
Base class for the 3GPP channel condition models.
Definition:
channel-condition-model.h:448
ns3::ThreeGppChannelConditionModel::VehicleDensity
VehicleDensity
Determine the density of vehicles in a V2V scenario.
Definition:
channel-condition-model.h:498
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::aodv::INVALID
@ INVALID
INVALID.
Definition:
aodv-rtable.h:51
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
propagation
model
probabilistic-v2v-channel-condition-model.h
Generated on Tue Feb 6 2024 19:21:26 for ns-3 by
1.9.1