A Discrete-Event Network Simulator
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
18namespace ns3
19{
20
21/**
22 * \ingroup energy
23 * \brief Creates a LiIonEnergySource object.
24 *
25 */
27{
28 public:
30 ~LiIonEnergySourceHelper() override;
31
32 void Set(std::string name, const AttributeValue& v) override;
33
34 private:
36
37 private:
38 ObjectFactory m_liIonEnergySource; //!< LiIon Battery factory
39};
40
41} // namespace ns3
42
43#endif /* LI_ION_ENERGY_SOURCE_HELPER_H_ */
Hold a value for an Attribute.
Definition attribute.h:59
Creates EnergySource objects.
Creates a LiIonEnergySource object.
ObjectFactory m_liIonEnergySource
LiIon Battery factory.
Ptr< energy::EnergySource > DoInstall(Ptr< Node > node) const override
void Set(std::string name, const AttributeValue &v) override
Instantiate subclasses of ns3::Object.
Smart pointer class similar to boost::intrusive_ptr.
Every class exported by the ns3 library is enclosed in the ns3 namespace.