author | Stefano Avallone <stefano.avallone@unina.it> |
Fri, 05 Sep 2014 16:33:57 -0700 | |
changeset 10883 | d919e7194e23 |
parent 9280 | ec79158ee1a3 |
permissions | -rw-r--r-- |
9280
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
6715
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
2 |
/* |
9280
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
3 |
* Copyright (c) 2010 Andrea Sacco |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
4 |
* |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
7 |
* published by the Free Software Foundation; |
6715
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
8 |
* |
9280
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
12 |
* GNU General Public License for more details. |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
13 |
* |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
17 |
* |
ec79158ee1a3
Add proper license header to simple-device-energy-model.{h,cc}
Vedran Miletić <rivanvx@gmail.com>
parents:
7353
diff
changeset
|
18 |
* Author: Andrea Sacco <andrea.sacco85@gmail.com> |
6715
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
19 |
*/ |
7353
09fccf6195ea
bug 1203: Inconsistently named ifndef/define macros in ns-3 headers
Vedran Miletic <rivanvx@gmail.com>
parents:
7238
diff
changeset
|
20 |
|
09fccf6195ea
bug 1203: Inconsistently named ifndef/define macros in ns-3 headers
Vedran Miletic <rivanvx@gmail.com>
parents:
7238
diff
changeset
|
21 |
#ifndef SIMPLE_DEVICE_ENERGY_MODEL_H |
09fccf6195ea
bug 1203: Inconsistently named ifndef/define macros in ns-3 headers
Vedran Miletic <rivanvx@gmail.com>
parents:
7238
diff
changeset
|
22 |
#define SIMPLE_DEVICE_ENERGY_MODEL_H |
6715
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
23 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
24 |
#include "ns3/device-energy-model.h" |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
25 |
#include "ns3/nstime.h" |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
26 |
#include "ns3/traced-value.h" |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
27 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
28 |
namespace ns3 { |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
29 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
30 |
/** |
7238
85a7e87bb4cc
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
6938
diff
changeset
|
31 |
* \ingroup energy |
6715
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
32 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
33 |
* A simple device energy model where current drain can be set by the user. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
34 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
35 |
* It is supposed to be used as a testing model for energy sources. |
7238
85a7e87bb4cc
Make some more modules show up on doxygen modules page
Mitch Watrous <watrous@u.washington.edu>
parents:
6938
diff
changeset
|
36 |
* |
6715
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
37 |
*/ |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
38 |
class SimpleDeviceEnergyModel : public DeviceEnergyModel |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
39 |
{ |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
40 |
public: |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
41 |
static TypeId GetTypeId (void); |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
42 |
SimpleDeviceEnergyModel (); |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
43 |
virtual ~SimpleDeviceEnergyModel (); |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
44 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
45 |
/** |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
46 |
* \brief Sets pointer to node. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
47 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
48 |
* \param node Pointer to node. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
49 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
50 |
* Implements DeviceEnergyModel::SetNode. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
51 |
*/ |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
52 |
virtual void SetNode (Ptr<Node> node); |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
53 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
54 |
/** |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
55 |
* \brief Gets pointer to node. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
56 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
57 |
* \returns Pointer to node. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
58 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
59 |
* Implements DeviceEnergyModel::GetNode. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
60 |
*/ |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
61 |
virtual Ptr<Node> GetNode (void) const; |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
62 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
63 |
/** |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
64 |
* \brief Sets pointer to EnergySouce installed on node. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
65 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
66 |
* \param source Pointer to EnergySource installed on node. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
67 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
68 |
* Implements DeviceEnergyModel::SetEnergySource. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
69 |
*/ |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
70 |
virtual void SetEnergySource (Ptr<EnergySource> source); |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
71 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
72 |
/** |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
73 |
* \returns Total energy consumption of the vehicle. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
74 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
75 |
* Implements DeviceEnergyModel::GetTotalEnergyConsumption. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
76 |
*/ |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
77 |
virtual double GetTotalEnergyConsumption (void) const; |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
78 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
79 |
/** |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
80 |
* \param newState New state the device is in. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
81 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
82 |
* Not implemented |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
83 |
*/ |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
84 |
virtual void ChangeState (int newState) |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
85 |
{ |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
86 |
} |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
87 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
88 |
/** |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
89 |
* \brief Handles energy depletion. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
90 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
91 |
* Not implemented |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
92 |
*/ |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
93 |
virtual void HandleEnergyDepletion (void) |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
94 |
{ |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
95 |
} |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
96 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
97 |
/** |
10883
d919e7194e23
add support for a Wifi sleep mode
Stefano Avallone <stefano.avallone@unina.it>
parents:
9280
diff
changeset
|
98 |
* \brief Handles energy recharged. |
d919e7194e23
add support for a Wifi sleep mode
Stefano Avallone <stefano.avallone@unina.it>
parents:
9280
diff
changeset
|
99 |
* |
d919e7194e23
add support for a Wifi sleep mode
Stefano Avallone <stefano.avallone@unina.it>
parents:
9280
diff
changeset
|
100 |
* Not implemented |
d919e7194e23
add support for a Wifi sleep mode
Stefano Avallone <stefano.avallone@unina.it>
parents:
9280
diff
changeset
|
101 |
*/ |
d919e7194e23
add support for a Wifi sleep mode
Stefano Avallone <stefano.avallone@unina.it>
parents:
9280
diff
changeset
|
102 |
virtual void HandleEnergyRecharged (void) |
d919e7194e23
add support for a Wifi sleep mode
Stefano Avallone <stefano.avallone@unina.it>
parents:
9280
diff
changeset
|
103 |
{ |
d919e7194e23
add support for a Wifi sleep mode
Stefano Avallone <stefano.avallone@unina.it>
parents:
9280
diff
changeset
|
104 |
} |
d919e7194e23
add support for a Wifi sleep mode
Stefano Avallone <stefano.avallone@unina.it>
parents:
9280
diff
changeset
|
105 |
|
d919e7194e23
add support for a Wifi sleep mode
Stefano Avallone <stefano.avallone@unina.it>
parents:
9280
diff
changeset
|
106 |
/** |
6715
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
107 |
* \param current the current draw of device. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
108 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
109 |
* Set the actual current draw of the device. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
110 |
*/ |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
111 |
void SetCurrentA (double current); |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
112 |
private: |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
113 |
void DoDispose (void); |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
114 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
115 |
/** |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
116 |
* \returns Current draw of device, at current state. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
117 |
* |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
118 |
* Implements DeviceEnergyModel::GetCurrentA. |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
119 |
*/ |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
120 |
virtual double DoGetCurrentA (void) const; |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
121 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
122 |
Time m_lastUpdateTime; |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
123 |
double m_actualCurrentA; |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
124 |
Ptr<EnergySource> m_source; |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
125 |
Ptr<Node> m_node; |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
126 |
TracedValue<double> m_totalEnergyConsumption; |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
127 |
}; |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
128 |
|
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
129 |
} // namespace ns3 |
ba60c821ad35
Energy support for UAN module and Li-Ion energy model
Andrea Sacco <andrea.sacco85@gmail.com>
parents:
diff
changeset
|
130 |
|
7353
09fccf6195ea
bug 1203: Inconsistently named ifndef/define macros in ns-3 headers
Vedran Miletic <rivanvx@gmail.com>
parents:
7238
diff
changeset
|
131 |
#endif /* SIMPLE_DEVICE_ENERGY_MODEL_H */ |