A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
li-ion-energy-source-helper.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2014 Wireless Communications and Networking Group (WCNG),
3
* University of Rochester, Rochester, NY, USA.
4
*
5
* SPDX-License-Identifier: GPL-2.0-only
6
*
7
* Authors: Hoda Ayatollahi <hayatoll@ur.rochester.edu>
8
* Cristiano Tapparello <cristiano.tapparello@rochester.edu>
9
*/
10
11
#ifndef LI_ION_ENERGY_SOURCE_HELPER_H_
12
#define LI_ION_ENERGY_SOURCE_HELPER_H_
13
14
#include "
energy-model-helper.h
"
15
16
#include "ns3/node.h"
17
18
namespace
ns3
19
{
20
21
/**
22
* \ingroup energy
23
* \brief Creates a LiIonEnergySource object.
24
*
25
*/
26
class
LiIonEnergySourceHelper
:
public
EnergySourceHelper
27
{
28
public
:
29
LiIonEnergySourceHelper
();
30
~LiIonEnergySourceHelper
()
override
;
31
32
void
Set
(std::string name,
const
AttributeValue
& v)
override
;
33
34
private
:
35
Ptr<energy::EnergySource>
DoInstall
(
Ptr<Node>
node)
const override
;
36
37
private
:
38
ObjectFactory
m_liIonEnergySource
;
//!< LiIon Battery factory
39
};
40
41
}
// namespace ns3
42
43
#endif
/* LI_ION_ENERGY_SOURCE_HELPER_H_ */
ns3::AttributeValue
Hold a value for an Attribute.
Definition
attribute.h:59
ns3::EnergySourceHelper
Creates EnergySource objects.
Definition
energy-model-helper.h:36
ns3::LiIonEnergySourceHelper
Creates a LiIonEnergySource object.
Definition
li-ion-energy-source-helper.h:27
ns3::LiIonEnergySourceHelper::m_liIonEnergySource
ObjectFactory m_liIonEnergySource
LiIon Battery factory.
Definition
li-ion-energy-source-helper.h:38
ns3::LiIonEnergySourceHelper::~LiIonEnergySourceHelper
~LiIonEnergySourceHelper() override
Definition
li-ion-energy-source-helper.cc:23
ns3::LiIonEnergySourceHelper::DoInstall
Ptr< energy::EnergySource > DoInstall(Ptr< Node > node) const override
Definition
li-ion-energy-source-helper.cc:34
ns3::LiIonEnergySourceHelper::Set
void Set(std::string name, const AttributeValue &v) override
Definition
li-ion-energy-source-helper.cc:28
ns3::LiIonEnergySourceHelper::LiIonEnergySourceHelper
LiIonEnergySourceHelper()
Definition
li-ion-energy-source-helper.cc:18
ns3::ObjectFactory
Instantiate subclasses of ns3::Object.
Definition
object-factory.h:37
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
energy-model-helper.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
energy
helper
li-ion-energy-source-helper.h
Generated on Fri Nov 8 2024 13:59:00 for ns-3 by
1.11.0