Installs LoraRadioEnergyModel on devices. More...
#include "lora-radio-energy-model-helper.h"
Private Member Functions | |
Ptr< DeviceEnergyModel > | DoInstall (Ptr< NetDevice > device, Ptr< EnergySource > source) const override |
Private Attributes | |
ObjectFactory | m_radioEnergy |
radio energy | |
ObjectFactory | m_txCurrentModel |
transmit current model | |
Installs LoraRadioEnergyModel on devices.
This installer installs LoraRadioEnergyModel for only LoraNetDevice objects.
Definition at line 27 of file lora-radio-energy-model-helper.h.
ns3::lorawan::LoraRadioEnergyModelHelper::LoraRadioEnergyModelHelper | ( | ) |
Default constructor.
Definition at line 20 of file lora-radio-energy-model-helper.cc.
References m_radioEnergy.
|
override |
Destructor.
Definition at line 25 of file lora-radio-energy-model-helper.cc.
|
overrideprivatevirtual |
device | Pointer to the NetDevice to install DeviceEnergyModel. |
source | Pointer to EnergySource to install. |
Implements DeviceEnergyModel::Install.
Implements ns3::DeviceEnergyModelHelper.
Definition at line 72 of file lora-radio-energy-model-helper.cc.
References ns3::DynamicCast(), m_radioEnergy, m_txCurrentModel, NS_ASSERT, and NS_FATAL_ERROR.
|
overridevirtual |
name | The name of the attribute to set. |
v | The value of the attribute. |
Sets an attribute of the underlying PHY object.
Implements ns3::DeviceEnergyModelHelper.
Definition at line 30 of file lora-radio-energy-model-helper.cc.
References m_radioEnergy.
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() ) |
name | The name of the model to set. |
n0 | The name of the attribute to set. |
v0 | The value of the attribute to set. |
n1 | The name of the attribute to set. |
v1 | The value of the attribute to set. |
n2 | The name of the attribute to set. |
v2 | The value of the attribute to set. |
n3 | The name of the attribute to set. |
v3 | The value of the attribute to set. |
n4 | The name of the attribute to set. |
v4 | The value of the attribute to set. |
n5 | The name of the attribute to set. |
v5 | The value of the attribute to set. |
n6 | The name of the attribute to set. |
v6 | The value of the attribute to set. |
n7 | The name of the attribute to set. |
v7 | The value of the attribute to set. |
Configure a Transmission Current model for this EnergySource.
Definition at line 36 of file lora-radio-energy-model-helper.cc.
References m_txCurrentModel, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
|
private |
radio energy
Definition at line 92 of file lora-radio-energy-model-helper.h.
Referenced by LoraRadioEnergyModelHelper(), DoInstall(), and Set().
|
private |
transmit current model
Definition at line 93 of file lora-radio-energy-model-helper.h.
Referenced by DoInstall(), and SetTxCurrentModel().