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
basic-energy-harvester-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
* Author: Cristiano Tapparello <cristiano.tapparello@rochester.edu>
8
*/
9
10
#ifndef BASIC_ENERGY_HARVESTER_HELPER_H
11
#define BASIC_ENERGY_HARVESTER_HELPER_H
12
13
#include "
energy-harvester-helper.h
"
14
15
#include "ns3/energy-source.h"
16
#include "ns3/node.h"
17
18
namespace
ns3
19
{
20
21
/**
22
* \ingroup energy
23
* \brief Creates a BasicEnergyHarvester object.
24
*/
25
class
BasicEnergyHarvesterHelper
:
public
EnergyHarvesterHelper
26
{
27
public
:
28
BasicEnergyHarvesterHelper
();
29
~BasicEnergyHarvesterHelper
()
override
;
30
31
void
Set
(std::string name,
const
AttributeValue
& v)
override
;
32
33
private
:
34
Ptr<energy::EnergyHarvester>
DoInstall
(
Ptr<energy::EnergySource>
source)
const override
;
35
36
private
:
37
ObjectFactory
m_basicEnergyHarvester
;
//!< Energy source factory
38
};
39
40
}
// namespace ns3
41
42
#endif
/* defined(BASIC_ENERGY_HARVESTER_HELPER_H) */
ns3::AttributeValue
Hold a value for an Attribute.
Definition
attribute.h:59
ns3::BasicEnergyHarvesterHelper
Creates a BasicEnergyHarvester object.
Definition
basic-energy-harvester-helper.h:26
ns3::BasicEnergyHarvesterHelper::m_basicEnergyHarvester
ObjectFactory m_basicEnergyHarvester
Energy source factory.
Definition
basic-energy-harvester-helper.h:37
ns3::BasicEnergyHarvesterHelper::Set
void Set(std::string name, const AttributeValue &v) override
Definition
basic-energy-harvester-helper.cc:27
ns3::BasicEnergyHarvesterHelper::~BasicEnergyHarvesterHelper
~BasicEnergyHarvesterHelper() override
Definition
basic-energy-harvester-helper.cc:22
ns3::BasicEnergyHarvesterHelper::DoInstall
Ptr< energy::EnergyHarvester > DoInstall(Ptr< energy::EnergySource > source) const override
Definition
basic-energy-harvester-helper.cc:33
ns3::BasicEnergyHarvesterHelper::BasicEnergyHarvesterHelper
BasicEnergyHarvesterHelper()
Definition
basic-energy-harvester-helper.cc:17
ns3::EnergyHarvesterHelper
Creates EnergyHarvester objects.
Definition
energy-harvester-helper.h:34
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-harvester-helper.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
energy
helper
basic-energy-harvester-helper.h
Generated on Fri Nov 8 2024 13:59:00 for ns-3 by
1.11.0