A Discrete-Event Network Simulator
API
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 
40 {
41  public:
47  static TypeId GetTypeId();
48 
53 
58 
67  Ptr<const MobilityModel> b) const override;
68 
78  int64_t AssignStreams(int64_t stream) override;
79 
80  private:
89  bool IsLineOfSightBlocked(const Vector& l1, const Vector& l2) const;
90 };
91 
92 } // namespace ns3
93 
94 #endif /* BUILDINGS_CHANNEL_CONDITION_MODEL_H */
Determines the channel condition based on the buildings deployed in the scenario.
int64_t AssignStreams(int64_t stream) override
If this model uses objects of type RandomVariableStream, set the stream numbers to the integers start...
Ptr< ChannelCondition > GetChannelCondition(Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const override
Computes the condition of the channel between a and b.
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.
BuildingsChannelConditionModel()
Constructor for the BuildingsChannelConditionModel class.
~BuildingsChannelConditionModel() override
Destructor for the BuildingsChannelConditionModel class.
Models the channel condition.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.