Creates a RvBatteryModel object. More...
#include "rv-battery-model-helper.h"
Public Member Functions | |
RvBatteryModelHelper () | |
~RvBatteryModelHelper () override | |
void | Set (std::string name, const AttributeValue &v) override |
Public Member Functions inherited from ns3::EnergySourceHelper | |
virtual | ~EnergySourceHelper () |
EnergySourceContainer | Install (NodeContainer c) const |
EnergySourceContainer | Install (Ptr< Node > node) const |
EnergySourceContainer | Install (std::string nodeName) const |
EnergySourceContainer | InstallAll () const |
This function installs an EnergySource on all nodes in simulation. More... | |
Private Member Functions | |
Ptr< EnergySource > | DoInstall (Ptr< Node > node) const override |
Private Attributes | |
ObjectFactory | m_rvBatteryModel |
RV Battery factory. More... | |
Creates a RvBatteryModel object.
Definition at line 35 of file rv-battery-model-helper.h.
ns3::RvBatteryModelHelper::RvBatteryModelHelper | ( | ) |
Definition at line 27 of file rv-battery-model-helper.cc.
References m_rvBatteryModel, and ns3::ObjectFactory::SetTypeId().
|
override |
Definition at line 32 of file rv-battery-model-helper.cc.
|
overrideprivatevirtual |
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 43 of file rv-battery-model-helper.cc.
References ns3::ObjectFactory::Create(), m_rvBatteryModel, and NS_ASSERT.
|
overridevirtual |
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 37 of file rv-battery-model-helper.cc.
References m_rvBatteryModel, and ns3::ObjectFactory::Set().
Referenced by BatteryLifetimeTest::ConstantLoadTest(), and BatteryLifetimeTest::VariableLoadTest().
|
private |
RV Battery factory.
Definition at line 47 of file rv-battery-model-helper.h.
Referenced by RvBatteryModelHelper(), DoInstall(), and Set().