Creates a LiIonEnergySource object. More...
#include "li-ion-energy-source-helper.h"
Public Member Functions | |
LiIonEnergySourceHelper () | |
~LiIonEnergySourceHelper () | |
void | Set (std::string name, const AttributeValue &v) |
Public Member Functions inherited from ns3::EnergySourceHelper | |
virtual | ~EnergySourceHelper () |
EnergySourceContainer | Install (Ptr< Node > node) const |
EnergySourceContainer | Install (NodeContainer c) const |
EnergySourceContainer | Install (std::string nodeName) const |
EnergySourceContainer | InstallAll (void) const |
This function installs an EnergySource on all nodes in simulation. More... | |
Private Member Functions | |
virtual Ptr< EnergySource > | DoInstall (Ptr< Node > node) const |
Private Attributes | |
ObjectFactory | m_liIonEnergySource |
Creates a LiIonEnergySource object.
Definition at line 36 of file li-ion-energy-source-helper.h.
ns3::LiIonEnergySourceHelper::LiIonEnergySourceHelper | ( | ) |
Definition at line 28 of file li-ion-energy-source-helper.cc.
References m_liIonEnergySource, and ns3::ObjectFactory::SetTypeId().
ns3::LiIonEnergySourceHelper::~LiIonEnergySourceHelper | ( | ) |
Definition at line 33 of file li-ion-energy-source-helper.cc.
|
privatevirtual |
node | Pointer to node where the energy source is to be installed. |
Child classes of EnergySourceHelper only have to implement this function, to create and aggregate an EnergySource object onto a single node. Rest of the installation process (eg. installing EnergySource on set of nodes) is implemented in the EnergySourceHelper base class.
Implements ns3::EnergySourceHelper.
Definition at line 44 of file li-ion-energy-source-helper.cc.
References ns3::ObjectFactory::Create(), m_liIonEnergySource, and NS_ASSERT.
|
virtual |
name | Name of attribute to set. |
v | Value of the attribute. |
Sets one of the attributes of underlying EnergySource.
Implements ns3::EnergySourceHelper.
Definition at line 38 of file li-ion-energy-source-helper.cc.
References m_liIonEnergySource, and ns3::ObjectFactory::Set().
|
private |
Definition at line 48 of file li-ion-energy-source-helper.h.
Referenced by DoInstall(), LiIonEnergySourceHelper(), and Set().