A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::RvBatteryModelHelper Class Reference

Creates a RvBatteryModel object. More...

#include <rv-battery-model-helper.h>

+ Inheritance diagram for ns3::RvBatteryModelHelper:
+ Collaboration diagram for ns3::RvBatteryModelHelper:

Public Member Functions

 RvBatteryModelHelper ()
 ~RvBatteryModelHelper ()
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.

Private Member Functions

virtual Ptr< EnergySourceDoInstall (Ptr< Node > node) const

Private Attributes

ObjectFactory m_rvBatteryModel

Detailed Description

Creates a RvBatteryModel object.

Definition at line 34 of file rv-battery-model-helper.h.

Constructor & Destructor Documentation

ns3::RvBatteryModelHelper::RvBatteryModelHelper ( )

Definition at line 26 of file rv-battery-model-helper.cc.

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

+ Here is the call graph for this function:

ns3::RvBatteryModelHelper::~RvBatteryModelHelper ( )

Definition at line 31 of file rv-battery-model-helper.cc.

Member Function Documentation

Ptr< EnergySource > ns3::RvBatteryModelHelper::DoInstall ( Ptr< Node node) const
privatevirtual

Definition at line 42 of file rv-battery-model-helper.cc.

References ns3::ObjectFactory::Create(), ns3::Object::GetObject(), m_rvBatteryModel, NS_ASSERT, NS_FATAL_ERROR, and ns3::EnergySource::SetNode().

+ Here is the call graph for this function:

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

Sets one of the attributes of underlying EnergySource.

Implements ns3::EnergySourceHelper.

Definition at line 36 of file rv-battery-model-helper.cc.

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

Referenced by BatteryLifetimeTest::ConstantLoadTest(), and BatteryLifetimeTest::VariableLoadTest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

ObjectFactory ns3::RvBatteryModelHelper::m_rvBatteryModel
private

Definition at line 46 of file rv-battery-model-helper.h.

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


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