Installs LoraRadioEnergyModel on devices. More...
#include "lora-radio-energy-model-helper.h"
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< 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 38 of file lora-radio-energy-model-helper.h.
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().
|
override |
Destructor.
Definition at line 36 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 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.
|
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 41 of file lora-radio-energy-model-helper.cc.
References m_radioEnergy, and ns3::ObjectFactory::Set().
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 47 of file lora-radio-energy-model-helper.cc.
References m_txCurrentModel, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
|
private |
radio energy
Definition at line 103 of file lora-radio-energy-model-helper.h.
Referenced by LoraRadioEnergyModelHelper(), DoInstall(), and Set().
|
private |
transmit current model
Definition at line 104 of file lora-radio-energy-model-helper.h.
Referenced by DoInstall(), and SetTxCurrentModel().