OLD | NEW |
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) 2010 Network Security Lab, University of Washington, Seattle. | 3 * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle. |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "ns3/wifi-radio-energy-model-helper.h" | 24 #include "ns3/wifi-radio-energy-model-helper.h" |
25 #include "ns3/energy-source-container.h" | 25 #include "ns3/energy-source-container.h" |
26 #include "ns3/device-energy-model-container.h" | 26 #include "ns3/device-energy-model-container.h" |
27 #include "ns3/log.h" | 27 #include "ns3/log.h" |
28 #include "ns3/node.h" | 28 #include "ns3/node.h" |
29 #include "ns3/simulator.h" | 29 #include "ns3/simulator.h" |
30 #include "ns3/double.h" | 30 #include "ns3/double.h" |
31 #include "ns3/config.h" | 31 #include "ns3/config.h" |
32 #include "ns3/string.h" | 32 #include "ns3/string.h" |
33 #include "ns3/yans-wifi-helper.h" | 33 #include "ns3/yans-wifi-helper.h" |
| 34 #include "ns3/wifi-phy-state.h" |
34 #include <cmath> | 35 #include <cmath> |
35 | 36 |
36 using namespace ns3; | 37 using namespace ns3; |
37 | 38 |
38 NS_LOG_COMPONENT_DEFINE ("BasicEnergyModelTestSuite"); | 39 NS_LOG_COMPONENT_DEFINE ("BasicEnergyModelTestSuite"); |
39 | 40 |
40 /** | 41 /** |
41 * Test case of update remaining energy for BasicEnergySource and | 42 * Test case of update remaining energy for BasicEnergySource and |
42 * WifiRadioEnergyModel. | 43 * WifiRadioEnergyModel. |
43 */ | 44 */ |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 } | 435 } |
435 | 436 |
436 BasicEnergyDepletionTest testEnergyDepletion; | 437 BasicEnergyDepletionTest testEnergyDepletion; |
437 if (testEnergyDepletion.DoRun ()) | 438 if (testEnergyDepletion.DoRun ()) |
438 { | 439 { |
439 return 1; | 440 return 1; |
440 } | 441 } |
441 | 442 |
442 return 0; | 443 return 0; |
443 } | 444 } |
OLD | NEW |