A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
rv-battery-model-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 RV_BATTERY_MODEL_HELPER_H
10#define RV_BATTERY_MODEL_HELPER_H
11
12#include "energy-model-helper.h"
13
14#include "ns3/node.h"
15
16namespace ns3
17{
18
19/**
20 * \ingroup energy
21 * \brief Creates a RvBatteryModel object.
22 *
23 */
25{
26 public:
28 ~RvBatteryModelHelper() override;
29
30 void Set(std::string name, const AttributeValue& v) override;
31
32 private:
34
35 private:
36 ObjectFactory m_rvBatteryModel; //!< RV Battery factory
37};
38
39} // namespace ns3
40
41#endif /* RV_BATTERY_MODEL_HELPER_H */
Hold a value for an Attribute.
Definition attribute.h:59
Creates EnergySource objects.
Instantiate subclasses of ns3::Object.
Smart pointer class similar to boost::intrusive_ptr.
Creates a RvBatteryModel object.
Ptr< energy::EnergySource > DoInstall(Ptr< Node > node) const override
ObjectFactory m_rvBatteryModel
RV Battery factory.
void Set(std::string name, const AttributeValue &v) override
Every class exported by the ns3 library is enclosed in the ns3 namespace.