author | Cristiano Tapparello <cristiano.tapparello@rochester.edu> |
Fri, 05 Sep 2014 15:38:55 -0700 | |
changeset 10882 | 75e256e51d9d |
permissions | -rw-r--r-- |
10882
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
2 |
/* |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
3 |
* Copyright (c) 2014 Wireless Communications and Networking Group (WCNG), |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
4 |
* University of Rochester, Rochester, NY, USA. |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
5 |
* |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
6 |
* This program is free software; you can redistribute it and/or modify |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
7 |
* it under the terms of the GNU General Public License version 2 as |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
8 |
* published by the Free Software Foundation; |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
9 |
* |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
10 |
* This program is distributed in the hope that it will be useful, |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
13 |
* GNU General Public License for more details. |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
14 |
* |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
16 |
* along with this program; if not, write to the Free Software |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
18 |
* |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
19 |
* Author: Cristiano Tapparello <cristiano.tapparello@rochester.edu> |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
20 |
*/ |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
21 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
22 |
#include "ns3/log.h" |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
23 |
#include "ns3/test.h" |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
24 |
#include "ns3/node.h" |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
25 |
#include "ns3/simulator.h" |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
26 |
#include "ns3/double.h" |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
27 |
#include "ns3/config.h" |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
28 |
#include "ns3/string.h" |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
29 |
#include "ns3/basic-energy-harvester.h" |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
30 |
#include "ns3/basic-energy-source.h" |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
31 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
32 |
using namespace ns3; |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
33 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
34 |
NS_LOG_COMPONENT_DEFINE ("BasicEnergyHarvesterTestSuite"); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
35 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
36 |
class BasicEnergyHarvesterTestCase : public TestCase |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
37 |
{ |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
38 |
public: |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
39 |
BasicEnergyHarvesterTestCase (); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
40 |
~BasicEnergyHarvesterTestCase (); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
41 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
42 |
void DoRun (void); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
43 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
44 |
double m_timeS; // in seconds |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
45 |
double m_tolerance; // tolerance for energy estimation |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
46 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
47 |
ObjectFactory m_energySource; |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
48 |
ObjectFactory m_energyHarvester; |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
49 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
50 |
}; |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
51 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
52 |
BasicEnergyHarvesterTestCase::BasicEnergyHarvesterTestCase () |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
53 |
: TestCase ("Basic Energy Harvester test case") |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
54 |
{ |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
55 |
m_timeS = 15; // harvest energy for 15 seconds |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
56 |
m_tolerance = 1.0e-13; // |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
57 |
} |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
58 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
59 |
BasicEnergyHarvesterTestCase::~BasicEnergyHarvesterTestCase () |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
60 |
{ |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
61 |
} |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
62 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
63 |
void |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
64 |
BasicEnergyHarvesterTestCase::DoRun () |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
65 |
{ |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
66 |
// set types |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
67 |
m_energySource.SetTypeId ("ns3::BasicEnergySource"); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
68 |
m_energyHarvester.SetTypeId ("ns3::BasicEnergyHarvester"); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
69 |
// create node |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
70 |
Ptr<Node> node = CreateObject<Node> (); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
71 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
72 |
// create Energy Source |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
73 |
Ptr<BasicEnergySource> source = m_energySource.Create<BasicEnergySource> (); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
74 |
// aggregate Energy Source to the node |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
75 |
node->AggregateObject (source); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
76 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
77 |
//create energy harvester |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
78 |
Ptr<BasicEnergyHarvester> harvester = m_energyHarvester.Create<BasicEnergyHarvester> (); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
79 |
// Set the Energy Harvesting update interval to a value grater than the |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
80 |
// simulation duration, so that the power provided by the harvester is constant |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
81 |
harvester->SetHarvestedPowerUpdateInterval (Seconds (m_timeS + 1.0)); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
82 |
// Connect the Basic Energy Harvester to the Energy Source |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
83 |
source->ConnectEnergyHarvester (harvester); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
84 |
harvester->SetNode (node); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
85 |
harvester->SetEnergySource (source); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
86 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
87 |
Time now = Simulator::Now (); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
88 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
89 |
/* |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
90 |
* The energy harvester will recharge the energy source for m_timeS seconds. |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
91 |
*/ |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
92 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
93 |
// Calculate remaining energy at simulation stop time |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
94 |
Simulator::Schedule (Seconds (m_timeS), |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
95 |
&BasicEnergySource::UpdateEnergySource, source); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
96 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
97 |
double timeDelta = 0.000000001; // 1 nanosecond |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
98 |
// run simulation; stop just after last scheduled event |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
99 |
Simulator::Stop (Seconds (m_timeS + timeDelta)); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
100 |
Simulator::Run (); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
101 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
102 |
// calculate energy harvested |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
103 |
double estRemainingEnergy = source->GetInitialEnergy (); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
104 |
// energy = power * time |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
105 |
estRemainingEnergy += harvester->GetPower () * m_timeS; |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
106 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
107 |
// obtain remaining energy from source |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
108 |
double remainingEnergy = source->GetRemainingEnergy (); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
109 |
NS_LOG_DEBUG ("Remaining energy is " << remainingEnergy); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
110 |
NS_LOG_DEBUG ("Estimated remaining energy is " << estRemainingEnergy); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
111 |
NS_LOG_DEBUG ("Difference is " << estRemainingEnergy - remainingEnergy); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
112 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
113 |
Simulator::Destroy (); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
114 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
115 |
// check remaining energy |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
116 |
NS_TEST_ASSERT_MSG_EQ_TOL (remainingEnergy, estRemainingEnergy, m_tolerance, |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
117 |
"Incorrect Remaining energy!"); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
118 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
119 |
} |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
120 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
121 |
class BasicEnergyHarvesterTestSuite : public TestSuite |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
122 |
{ |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
123 |
public: |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
124 |
BasicEnergyHarvesterTestSuite (); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
125 |
}; |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
126 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
127 |
BasicEnergyHarvesterTestSuite::BasicEnergyHarvesterTestSuite () |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
128 |
: TestSuite ("basic-energy-harvester", UNIT) |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
129 |
{ |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
130 |
AddTestCase (new BasicEnergyHarvesterTestCase, TestCase::QUICK); |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
131 |
} |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
132 |
|
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
133 |
// create an instance of the test suite |
75e256e51d9d
Energy harvester model
Cristiano Tapparello <cristiano.tapparello@rochester.edu>
parents:
diff
changeset
|
134 |
static BasicEnergyHarvesterTestSuite g_basicEnergyHarvesterTestSuite; |