Creates a BasicEnergyHarvester object. More...
#include "basic-energy-harvester-helper.h"
Public Member Functions | |
BasicEnergyHarvesterHelper () | |
~BasicEnergyHarvesterHelper () override | |
void | Set (std::string name, const AttributeValue &v) override |
Public Member Functions inherited from ns3::EnergyHarvesterHelper | |
virtual | ~EnergyHarvesterHelper () |
energy::EnergyHarvesterContainer | Install (energy::EnergySourceContainer sourceContainer) const |
energy::EnergyHarvesterContainer | Install (Ptr< energy::EnergySource > source) const |
energy::EnergyHarvesterContainer | Install (std::string sourceName) const |
Private Member Functions | |
Ptr< energy::EnergyHarvester > | DoInstall (Ptr< energy::EnergySource > source) const override |
Private Attributes | |
ObjectFactory | m_basicEnergyHarvester |
Energy source factory. | |
Creates a BasicEnergyHarvester object.
Definition at line 25 of file basic-energy-harvester-helper.h.
ns3::BasicEnergyHarvesterHelper::BasicEnergyHarvesterHelper | ( | ) |
Definition at line 17 of file basic-energy-harvester-helper.cc.
References m_basicEnergyHarvester, and ns3::ObjectFactory::SetTypeId().
|
override |
Definition at line 22 of file basic-energy-harvester-helper.cc.
|
overrideprivatevirtual |
source | Pointer to node where the energy harvester is to be installed. |
Child classes of EnergyHarvesterHelper only have to implement this function, to create and aggregate an EnergyHarvester object onto a single node. Rest of the installation process (eg. installing EnergyHarvester on set of nodes) is implemented in the EnergyHarvesterHelper base class.
Implements ns3::EnergyHarvesterHelper.
Definition at line 33 of file basic-energy-harvester-helper.cc.
References ns3::ObjectFactory::Create(), m_basicEnergyHarvester, and NS_ASSERT.
|
overridevirtual |
name | Name of attribute to set. |
v | Value of the attribute. |
Sets one of the attributes of underlying EnergyHarvester.
Implements ns3::EnergyHarvesterHelper.
Definition at line 27 of file basic-energy-harvester-helper.cc.
References m_basicEnergyHarvester, and ns3::ObjectFactory::Set().
|
private |
Energy source factory.
Definition at line 37 of file basic-energy-harvester-helper.h.
Referenced by BasicEnergyHarvesterHelper(), DoInstall(), and Set().