A Discrete-Event Network Simulator
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
14
15#include "ns3/energy-source.h"
16#include "ns3/node.h"
17
18namespace ns3
19{
20
21/**
22 * \ingroup energy
23 * \brief Creates a BasicEnergyHarvester object.
24 */
26{
27 public:
30
31 void Set(std::string name, const AttributeValue& v) override;
32
33 private:
35
36 private:
37 ObjectFactory m_basicEnergyHarvester; //!< Energy source factory
38};
39
40} // namespace ns3
41
42#endif /* defined(BASIC_ENERGY_HARVESTER_HELPER_H) */
Hold a value for an Attribute.
Definition attribute.h:59
Creates a BasicEnergyHarvester object.
ObjectFactory m_basicEnergyHarvester
Energy source factory.
void Set(std::string name, const AttributeValue &v) override
Ptr< energy::EnergyHarvester > DoInstall(Ptr< energy::EnergySource > source) const override
Creates EnergyHarvester objects.
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.