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-source-helper.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
7
*/
8
9
#ifndef BASIC_ENERGY_SOURCE_HELPER_H
10
#define BASIC_ENERGY_SOURCE_HELPER_H
11
12
#include "
energy-model-helper.h
"
13
14
#include "ns3/node.h"
15
16
namespace
ns3
17
{
18
19
/**
20
* \ingroup energy
21
* \brief Creates a BasicEnergySource object.
22
*
23
*/
24
class
BasicEnergySourceHelper
:
public
EnergySourceHelper
25
{
26
public
:
27
BasicEnergySourceHelper
();
28
~BasicEnergySourceHelper
()
override
;
29
30
void
Set
(std::string name,
const
AttributeValue
& v)
override
;
31
32
private
:
33
Ptr<energy::EnergySource>
DoInstall
(
Ptr<Node>
node)
const override
;
34
35
private
:
36
ObjectFactory
m_basicEnergySource
;
//!< Energy source factory
37
};
38
39
}
// namespace ns3
40
41
#endif
/* BASIC_ENERGY_SOURCE_HELPER_H */
ns3::AttributeValue
Hold a value for an Attribute.
Definition
attribute.h:59
ns3::BasicEnergySourceHelper
Creates a BasicEnergySource object.
Definition
basic-energy-source-helper.h:25
ns3::BasicEnergySourceHelper::DoInstall
Ptr< energy::EnergySource > DoInstall(Ptr< Node > node) const override
Definition
basic-energy-source-helper.cc:32
ns3::BasicEnergySourceHelper::BasicEnergySourceHelper
BasicEnergySourceHelper()
Definition
basic-energy-source-helper.cc:16
ns3::BasicEnergySourceHelper::m_basicEnergySource
ObjectFactory m_basicEnergySource
Energy source factory.
Definition
basic-energy-source-helper.h:36
ns3::BasicEnergySourceHelper::Set
void Set(std::string name, const AttributeValue &v) override
Definition
basic-energy-source-helper.cc:26
ns3::BasicEnergySourceHelper::~BasicEnergySourceHelper
~BasicEnergySourceHelper() override
Definition
basic-energy-source-helper.cc:21
ns3::EnergySourceHelper
Creates EnergySource objects.
Definition
energy-model-helper.h:36
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
basic-energy-source-helper.h
Generated on Fri Nov 8 2024 13:59:00 for ns-3 by
1.11.0