A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::lorawan::LoraRadioEnergyModelHelper Class Reference

Installs LoraRadioEnergyModel on devices. More...

#include "lora-radio-energy-model-helper.h"

+ Inheritance diagram for ns3::lorawan::LoraRadioEnergyModelHelper:
+ Collaboration diagram for ns3::lorawan::LoraRadioEnergyModelHelper:

Public Member Functions

 LoraRadioEnergyModelHelper ()
 Default constructor.
 
 ~LoraRadioEnergyModelHelper () override
 Destructor.
 
void Set (std::string name, const AttributeValue &v) override
 
void SetTxCurrentModel (std::string name, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue())
 
- Public Member Functions inherited from ns3::DeviceEnergyModelHelper
virtual ~DeviceEnergyModelHelper ()
 
energy::DeviceEnergyModelContainer Install (NetDeviceContainer deviceContainer, energy::EnergySourceContainer sourceContainer) const
 
energy::DeviceEnergyModelContainer Install (Ptr< NetDevice > device, Ptr< energy::EnergySource > source) const
 
virtual void Set (std::string name, const AttributeValue &v)=0
 

Private Member Functions

Ptr< DeviceEnergyModelDoInstall (Ptr< NetDevice > device, Ptr< EnergySource > source) const override
 

Private Attributes

ObjectFactory m_radioEnergy
 radio energy
 
ObjectFactory m_txCurrentModel
 transmit current model
 

Detailed Description

Installs LoraRadioEnergyModel on devices.

This installer installs LoraRadioEnergyModel for only LoraNetDevice objects.

Definition at line 38 of file lora-radio-energy-model-helper.h.

Constructor & Destructor Documentation

◆ LoraRadioEnergyModelHelper()

ns3::lorawan::LoraRadioEnergyModelHelper::LoraRadioEnergyModelHelper ( )

Default constructor.

Definition at line 31 of file lora-radio-energy-model-helper.cc.

References m_radioEnergy, and ns3::ObjectFactory::SetTypeId().

+ Here is the call graph for this function:

◆ ~LoraRadioEnergyModelHelper()

ns3::lorawan::LoraRadioEnergyModelHelper::~LoraRadioEnergyModelHelper ( )
override

Destructor.

Definition at line 36 of file lora-radio-energy-model-helper.cc.

Member Function Documentation

◆ DoInstall()

Ptr< DeviceEnergyModel > ns3::lorawan::LoraRadioEnergyModelHelper::DoInstall ( Ptr< NetDevice device,
Ptr< EnergySource source 
) const
overrideprivatevirtual
Parameters
devicePointer to the NetDevice to install DeviceEnergyModel.
sourcePointer to EnergySource to install.
Returns
Ptr<DeviceEnergyModel>.

Implements DeviceEnergyModel::Install.

Implements ns3::DeviceEnergyModelHelper.

Definition at line 83 of file lora-radio-energy-model-helper.cc.

References ns3::ObjectFactory::Create(), ns3::Object::GetObject(), ns3::ObjectFactory::GetTypeId(), ns3::TypeId::GetUid(), m_radioEnergy, m_txCurrentModel, NS_ASSERT, and NS_FATAL_ERROR.

+ Here is the call graph for this function:

◆ Set()

void ns3::lorawan::LoraRadioEnergyModelHelper::Set ( std::string  name,
const AttributeValue v 
)
overridevirtual
Parameters
nameThe name of the attribute to set.
vThe value of the attribute.

Sets an attribute of the underlying PHY object.

Implements ns3::DeviceEnergyModelHelper.

Definition at line 41 of file lora-radio-energy-model-helper.cc.

References m_radioEnergy, and ns3::ObjectFactory::Set().

+ Here is the call graph for this function:

◆ SetTxCurrentModel()

void ns3::lorawan::LoraRadioEnergyModelHelper::SetTxCurrentModel ( std::string  name,
std::string  n0 = "",
const AttributeValue v0 = EmptyAttributeValue(),
std::string  n1 = "",
const AttributeValue v1 = EmptyAttributeValue(),
std::string  n2 = "",
const AttributeValue v2 = EmptyAttributeValue(),
std::string  n3 = "",
const AttributeValue v3 = EmptyAttributeValue(),
std::string  n4 = "",
const AttributeValue v4 = EmptyAttributeValue(),
std::string  n5 = "",
const AttributeValue v5 = EmptyAttributeValue(),
std::string  n6 = "",
const AttributeValue v6 = EmptyAttributeValue(),
std::string  n7 = "",
const AttributeValue v7 = EmptyAttributeValue() 
)
Parameters
nameThe name of the model to set.
n0The name of the attribute to set.
v0The value of the attribute to set.
n1The name of the attribute to set.
v1The value of the attribute to set.
n2The name of the attribute to set.
v2The value of the attribute to set.
n3The name of the attribute to set.
v3The value of the attribute to set.
n4The name of the attribute to set.
v4The value of the attribute to set.
n5The name of the attribute to set.
v5The value of the attribute to set.
n6The name of the attribute to set.
v6The value of the attribute to set.
n7The name of the attribute to set.
v7The value of the attribute to set.

Configure a Transmission Current model for this EnergySource.

Definition at line 47 of file lora-radio-energy-model-helper.cc.

References m_txCurrentModel, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_radioEnergy

ObjectFactory ns3::lorawan::LoraRadioEnergyModelHelper::m_radioEnergy
private

radio energy

Definition at line 103 of file lora-radio-energy-model-helper.h.

Referenced by LoraRadioEnergyModelHelper(), DoInstall(), and Set().

◆ m_txCurrentModel

ObjectFactory ns3::lorawan::LoraRadioEnergyModelHelper::m_txCurrentModel
private

transmit current model

Definition at line 104 of file lora-radio-energy-model-helper.h.

Referenced by DoInstall(), and SetTxCurrentModel().


The documentation for this class was generated from the following files: