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) 2013 University of Washington | 3 * Copyright (c) 2013 University of Washington |
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 |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software | 15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 * Author: Mitch Watrous (watrous@u.washington.edu) | 18 * Author: Mitch Watrous (watrous@u.washington.edu) |
19 */ | 19 */ |
20 | 20 |
21 #include "ns3/core-module.h" | 21 #include "ns3/core-module.h" |
22 #include "ns3/stats-module.h" | 22 #include "ns3/stats-module.h" |
23 | 23 |
24 using namespace ns3; | 24 using namespace ns3; |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 //=========================================================================== | 28 /** |
29 // Function: Create2dPlot | 29 *=========================================================================== |
30 // | 30 * Function: Create2dPlot |
31 // | 31 * |
32 // This function creates a 2-Dimensional plot. | 32 * This function creates a 2-Dimensional plot. |
33 //=========================================================================== | 33 *=========================================================================== |
34 | 34 */ |
35 void Create2dPlot () | 35 void Create2dPlot () |
36 { | 36 { |
37 using namespace std; | 37 using namespace std; |
38 | 38 |
39 string fileNameWithoutExtension = "gnuplot-aggregator"; | 39 string fileNameWithoutExtension = "gnuplot-aggregator"; |
40 string plotTitle = "Gnuplot Aggregator Plot"; | 40 string plotTitle = "Gnuplot Aggregator Plot"; |
41 string plotXAxisHeading = "Time (seconds)"; | 41 string plotXAxisHeading = "Time (seconds)"; |
42 string plotYAxisHeading = "Double Values"; | 42 string plotYAxisHeading = "Double Values"; |
43 string plotDatasetLabel = "Data Values"; | 43 string plotDatasetLabel = "Data Values"; |
44 string datasetContext = "Dataset/Context/String"; | 44 string datasetContext = "Dataset/Context/String"; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 } // anonymous namespace | 83 } // anonymous namespace |
84 | 84 |
85 | 85 |
86 int main (int argc, char *argv[]) | 86 int main (int argc, char *argv[]) |
87 { | 87 { |
88 Create2dPlot (); | 88 Create2dPlot (); |
89 | 89 |
90 return 0; | 90 return 0; |
91 } | 91 } |
OLD | NEW |