A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
uan-prop-model-ideal.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2009 University of Washington
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Leonard Tracy <lentracy@gmail.com>
7 */
8
10
11#include "uan-tx-mode.h"
12
13#include "ns3/mobility-model.h"
14
15namespace ns3
16{
17
18NS_OBJECT_ENSURE_REGISTERED(UanPropModelIdeal);
19
23
27
30{
31 static TypeId tid = TypeId("ns3::UanPropModelIdeal")
33 .SetGroupName("Uan")
34 .AddConstructor<UanPropModelIdeal>();
35 return tid;
36}
37
38double
43
49
50Time
52{
53 return Seconds(a->GetDistanceFrom(b) / 1500.0);
54}
55
56} // namespace ns3
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
Definition nstime.h:94
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
The power delay profile returned by propagation models.
static UanPdp CreateImpulsePdp()
Get a unit impulse PDP at time 0.
Base class for implemented underwater propagation models.
Ideal propagation model (no pathloss, impulse PDP).
Time GetDelay(Ptr< MobilityModel > a, Ptr< MobilityModel > b, UanTxMode mode) override
Finds propagation delay between nodes a and b.
UanPropModelIdeal()
Default constructor.
UanPdp GetPdp(Ptr< MobilityModel > a, Ptr< MobilityModel > b, UanTxMode mode) override
Get the PDP for the path between two nodes.
~UanPropModelIdeal() override
Destructor.
static TypeId GetTypeId()
Register this type.
double GetPathLossDb(Ptr< MobilityModel > a, Ptr< MobilityModel > b, UanTxMode mode) override
Computes pathloss between nodes a and b.
Abstraction of packet modulation information.
Definition uan-tx-mode.h:32
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Time Seconds(double value)
Construct a Time in the indicated unit.
Definition nstime.h:1308
Every class exported by the ns3 library is enclosed in the ns3 namespace.