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
wimax-channel.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007,2008 INRIA
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Jahanzeb Farooq <jahanzeb.farooq@sophia.inria.fr>
7
*/
8
9
#include "
wimax-channel.h
"
10
11
#include "
wimax-phy.h
"
12
13
#include "ns3/assert.h"
14
#include "ns3/net-device.h"
15
16
namespace
ns3
17
{
18
19
NS_LOG_COMPONENT_DEFINE
(
"WimaxChannel"
);
20
21
NS_OBJECT_ENSURE_REGISTERED
(WimaxChannel);
22
23
TypeId
24
WimaxChannel::GetTypeId
()
25
{
26
static
TypeId
tid =
TypeId
(
"ns3::WimaxChannel"
).
SetParent
<
Channel
>().SetGroupName(
"Wimax"
);
27
return
tid;
28
}
29
30
WimaxChannel::WimaxChannel
()
31
{
32
}
33
34
WimaxChannel::~WimaxChannel
()
35
{
36
}
37
38
void
39
WimaxChannel::Attach
(
Ptr<WimaxPhy>
phy)
40
{
41
DoAttach
(phy);
42
}
43
44
std::size_t
45
WimaxChannel::GetNDevices
()
const
46
{
47
return
DoGetNDevices
();
48
}
49
50
Ptr<NetDevice>
51
WimaxChannel::GetDevice
(std::size_t index)
const
52
{
53
return
DoGetDevice
(index);
54
}
55
56
}
// namespace ns3
ns3::Channel
Abstract Channel Base Class.
Definition
channel.h:34
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::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition
type-id.cc:1001
ns3::WimaxChannel::WimaxChannel
WimaxChannel()
Definition
wimax-channel.cc:30
ns3::WimaxChannel::GetNDevices
std::size_t GetNDevices() const override
Definition
wimax-channel.cc:45
ns3::WimaxChannel::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
wimax-channel.cc:24
ns3::WimaxChannel::DoGetNDevices
virtual std::size_t DoGetNDevices() const =0
Get number of devices on the channel.
ns3::WimaxChannel::Attach
void Attach(Ptr< WimaxPhy > phy)
attach the channel to a physical layer of a device
Definition
wimax-channel.cc:39
ns3::WimaxChannel::~WimaxChannel
~WimaxChannel() override
Definition
wimax-channel.cc:34
ns3::WimaxChannel::DoAttach
virtual void DoAttach(Ptr< WimaxPhy > phy)=0
Attach a phy to the channel.
ns3::WimaxChannel::DoGetDevice
virtual Ptr< NetDevice > DoGetDevice(std::size_t i) const =0
Get device corresponding to index.
ns3::WimaxChannel::GetDevice
Ptr< NetDevice > GetDevice(std::size_t i) const override
Definition
wimax-channel.cc:51
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition
log.h:191
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition
object-base.h:35
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
wimax-channel.h
wimax-phy.h
src
wimax
model
wimax-channel.cc
Generated on Mon Nov 4 2024 19:38:12 for ns-3 by
1.11.0