ns3::L2Setup class

Interface for constructing everything for the L2 devices (NR, wifi, whatever..)

Derived classes

class NrSingleBwpSetup
Setup NR as L2 technology with one bandwith part.
class WifiSetup
Setup Wi-Fi as L2 technology.
class WigigSetup
Setup Wigig as L2 technology.

Public types

using SinrCb = Callback<void, uint32_t, double>
SinrCb typedef First parameter is node ID, second is the SINR value.

Constructors, destructors, conversion operators

L2Setup(const NodeContainer& gnbNodes, const NodeContainer& ueNodes)
L2Setup constructor.
~L2Setup() virtual
~L2Setup

Public functions

auto GetGnbDev() const -> const NetDeviceContainer& virtual
Get a container of gnb devices.
auto GetUeDev() const -> const NetDeviceContainer& virtual
Get a container of user devices.
void SetSinrCallback(const SinrCb& cb)
Set Sinr Callback.

Protected functions

auto GetGnbNodes() const -> const NodeContainer&
Retrieve GNB node list from the scenario.
auto GetUeNodes() const -> const NodeContainer&
Retrieve UE node list from the scenario.

Protected variables

NetDeviceContainer m_gnbDev
gnb net devices
SinrCb m_sinrCb
SINR change callback.
NetDeviceContainer m_ueDev
user net devices

Function documentation

ns3::L2Setup::L2Setup(const NodeContainer& gnbNodes, const NodeContainer& ueNodes)

L2Setup constructor.

Parameters
gnbNodes
ueNodes

const NetDeviceContainer& ns3::L2Setup::GetGnbDev() const virtual

Get a container of gnb devices.

Returns A gnb device container

const NetDeviceContainer& ns3::L2Setup::GetUeDev() const virtual

Get a container of user devices.

Returns A user device container

void ns3::L2Setup::SetSinrCallback(const SinrCb& cb)

Set Sinr Callback.

Parameters
cb the callback

const NodeContainer& ns3::L2Setup::GetGnbNodes() const protected

Retrieve GNB node list from the scenario.

Returns the GNB node container

const NodeContainer& ns3::L2Setup::GetUeNodes() const protected

Retrieve UE node list from the scenario.

Returns the UE node container