Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2014 Wireless Communications and Networking Group (WCNG), | 3 * Copyright (c) 2014 Wireless Communications and Networking Group (WCNG), |
4 * University of Rochester, Rochester, NY, USA. | 4 * University of Rochester, Rochester, NY, USA. |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License version 2 as | 7 * it under the terms of the GNU General Public License version 2 as |
8 * published by the Free Software Foundation; | 8 * published by the Free Software Foundation; |
9 * | 9 * |
10 * This program is distributed in the hope that it will be useful, | 10 * This program is distributed in the hope that it will be useful, |
(...skipping 13 matching lines...) Expand all Loading... | |
24 | 24 |
25 #include "energy-harvester-helper.h" | 25 #include "energy-harvester-helper.h" |
26 #include "ns3/energy-source.h" | 26 #include "ns3/energy-source.h" |
27 #include "ns3/node.h" | 27 #include "ns3/node.h" |
28 | 28 |
29 namespace ns3 { | 29 namespace ns3 { |
30 ·· | 30 ·· |
31 /** | 31 /** |
32 * \ingroup energy | 32 * \ingroup energy |
33 * \brief Creates a BasicEnergyHarvester object. | 33 * \brief Creates a BasicEnergyHarvester object. |
34 * | |
35 */ | 34 */ |
36 class BasicEnergyHarvesterHelper : public EnergyHarvesterHelper | 35 class BasicEnergyHarvesterHelper : public EnergyHarvesterHelper |
37 { | 36 { |
38 public: | 37 public: |
39 » BasicEnergyHarvesterHelper (); | 38 BasicEnergyHarvesterHelper (); |
Stefano Avallone
2014/09/04 08:41:10
Please fix indentation
cristiano.tapparello
2014/09/04 17:17:05
Done.
| |
40 » ~BasicEnergyHarvesterHelper (); | 39 ~BasicEnergyHarvesterHelper (); |
41 | 40 |
42 » void Set (std::string name, const AttributeValue &v); | 41 void Set (std::string name, const AttributeValue &v); |
43 | 42 |
44 private: | 43 private: |
45 » virtual Ptr<EnergyHarvester> DoInstall (Ptr<EnergySource> source) const; | 44 virtual Ptr<EnergyHarvester> DoInstall (Ptr<EnergySource> source) const; |
46 | 45 |
47 private: | 46 private: |
48 » ObjectFactory m_basicEnergyHarvester; | 47 ObjectFactory m_basicEnergyHarvester; |
49 | 48 |
50 }; | 49 }; |
51 ·· | 50 ·· |
52 } // namespace ns3 | 51 } // namespace ns3 |
53 | 52 |
54 #endif /* defined(BASIC_ENERGY_HARVESTER_HELPER_H) */ | 53 #endif /* defined(BASIC_ENERGY_HARVESTER_HELPER_H) */ |
LEFT | RIGHT |