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

Creates a LiIonEnergySource object. More...

#include "li-ion-energy-source-helper.h"

+ Inheritance diagram for ns3::LiIonEnergySourceHelper:
+ Collaboration diagram for ns3::LiIonEnergySourceHelper:

Public Member Functions

 LiIonEnergySourceHelper ()
 
 ~LiIonEnergySourceHelper () override
 
void Set (std::string name, const AttributeValue &v) override
 
- Public Member Functions inherited from ns3::EnergySourceHelper
virtual ~EnergySourceHelper ()
 
energy::EnergySourceContainer Install (NodeContainer c) const
 
energy::EnergySourceContainer Install (Ptr< Node > node) const
 
energy::EnergySourceContainer Install (std::string nodeName) const
 
energy::EnergySourceContainer InstallAll () const
 This function installs an EnergySource on all nodes in simulation.
 

Private Member Functions

Ptr< energy::EnergySourceDoInstall (Ptr< Node > node) const override
 

Private Attributes

ObjectFactory m_liIonEnergySource
 LiIon Battery factory.
 

Detailed Description

Creates a LiIonEnergySource object.

Definition at line 26 of file li-ion-energy-source-helper.h.

Constructor & Destructor Documentation

◆ LiIonEnergySourceHelper()

ns3::LiIonEnergySourceHelper::LiIonEnergySourceHelper ( )

Definition at line 18 of file li-ion-energy-source-helper.cc.

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

+ Here is the call graph for this function:

◆ ~LiIonEnergySourceHelper()

ns3::LiIonEnergySourceHelper::~LiIonEnergySourceHelper ( )
override

Definition at line 23 of file li-ion-energy-source-helper.cc.

Member Function Documentation

◆ DoInstall()

Ptr< energy::EnergySource > ns3::LiIonEnergySourceHelper::DoInstall ( Ptr< Node > node) const
overrideprivatevirtual
Parameters
nodePointer to node where the energy source is to be installed.
Returns
Pointer to the created EnergySource.

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 34 of file li-ion-energy-source-helper.cc.

References ns3::ObjectFactory::Create(), m_liIonEnergySource, and NS_ASSERT.

+ Here is the call graph for this function:

◆ Set()

void ns3::LiIonEnergySourceHelper::Set ( std::string name,
const AttributeValue & v )
overridevirtual
Parameters
nameName of attribute to set.
vValue of the attribute.

Sets one of the attributes of underlying EnergySource.

Implements ns3::EnergySourceHelper.

Definition at line 28 of file li-ion-energy-source-helper.cc.

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

+ Here is the call graph for this function:

Member Data Documentation

◆ m_liIonEnergySource

ObjectFactory ns3::LiIonEnergySourceHelper::m_liIonEnergySource
private

LiIon Battery factory.

Definition at line 38 of file li-ion-energy-source-helper.h.

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


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