Example for plotting satellite link results data. More...
Public Member Functions | |
| SatLinkResultsPlot () | |
| Creates an empty instance. | |
| void | Run () |
| Load link results data files and generate plots from them. | |
Private Member Functions | |
| Gnuplot | GetGnuplot (std::string outputName, std::string title) |
| Gnuplot2dDataset | GetGnuplotDataset (Ptr< SatLookUpTable > table, std::string title) |
| void | RunDvbRcs2Psk8 () |
| void | RunDvbRcs2Qam16 () |
| void | RunDvbRcs2Qpsk () |
| void | RunDvbS2Apsk16 () |
| void | RunDvbS2Apsk32 () |
| void | RunDvbS2Psk8 () |
| void | RunDvbS2Qpsk () |
Private Attributes | |
| std::string | m_inputPath |
| double | m_maxSinrDb |
| double | m_minSinrDb |
| double | m_resolutionDb |
Example for plotting satellite link results data.
This example can be run as it is, without any argument, i.e.:
$ ./waf --run="link-results-plot"
Several Gnuplot files (.plt) will be generated as output. Each of these files can be converted to a PNG file, for example by this command:
$ gnuplot s2-32apsk.plt
which will produce s2-32apsk.png file in the same directory. To convert all the Gnuplot files in the directory, the command below can be used:
$ gnuplot *.plt
Definition at line 62 of file sat-link-results-plot.cc.
| ns3::SatLinkResultsPlot::SatLinkResultsPlot | ( | ) |
Creates an empty instance.
Definition at line 89 of file sat-link-results-plot.cc.
References ns3::SatEnvVariables::GetInstance(), m_inputPath, m_maxSinrDb, m_minSinrDb, and m_resolutionDb.
|
private |
Definition at line 415 of file sat-link-results-plot.cc.
Referenced by RunDvbRcs2Psk8(), RunDvbRcs2Qam16(), RunDvbRcs2Qpsk(), RunDvbS2Apsk16(), RunDvbS2Apsk32(), RunDvbS2Psk8(), and RunDvbS2Qpsk().
|
private |
Definition at line 371 of file sat-link-results-plot.cc.
References m_maxSinrDb, m_minSinrDb, and m_resolutionDb.
Referenced by RunDvbRcs2Psk8(), RunDvbRcs2Qam16(), RunDvbRcs2Qpsk(), RunDvbS2Apsk16(), RunDvbS2Apsk32(), RunDvbS2Psk8(), and RunDvbS2Qpsk().
| void ns3::SatLinkResultsPlot::Run | ( | ) |
Load link results data files and generate plots from them.
Definition at line 98 of file sat-link-results-plot.cc.
References RunDvbRcs2Psk8(), RunDvbRcs2Qam16(), RunDvbRcs2Qpsk(), RunDvbS2Apsk16(), RunDvbS2Apsk32(), RunDvbS2Psk8(), and RunDvbS2Qpsk().
|
private |
Definition at line 164 of file sat-link-results-plot.cc.
References GetGnuplot(), GetGnuplotDataset(), and m_inputPath.
Referenced by Run().
|
private |
Definition at line 202 of file sat-link-results-plot.cc.
References GetGnuplot(), GetGnuplotDataset(), and m_inputPath.
Referenced by Run().
|
private |
Definition at line 110 of file sat-link-results-plot.cc.
References GetGnuplot(), GetGnuplotDataset(), and m_inputPath.
Referenced by Run().
|
private |
Definition at line 308 of file sat-link-results-plot.cc.
References GetGnuplot(), GetGnuplotDataset(), and m_inputPath.
Referenced by Run().
|
private |
Definition at line 343 of file sat-link-results-plot.cc.
References GetGnuplot(), GetGnuplotDataset(), and m_inputPath.
Referenced by Run().
|
private |
Definition at line 274 of file sat-link-results-plot.cc.
References GetGnuplot(), GetGnuplotDataset(), and m_inputPath.
Referenced by Run().
|
private |
Definition at line 234 of file sat-link-results-plot.cc.
References GetGnuplot(), GetGnuplotDataset(), and m_inputPath.
Referenced by Run().
|
private |
Definition at line 85 of file sat-link-results-plot.cc.
Referenced by SatLinkResultsPlot(), RunDvbRcs2Psk8(), RunDvbRcs2Qam16(), RunDvbRcs2Qpsk(), RunDvbS2Apsk16(), RunDvbS2Apsk32(), RunDvbS2Psk8(), and RunDvbS2Qpsk().
|
private |
Definition at line 84 of file sat-link-results-plot.cc.
Referenced by SatLinkResultsPlot(), and GetGnuplotDataset().
|
private |
Definition at line 83 of file sat-link-results-plot.cc.
Referenced by SatLinkResultsPlot(), and GetGnuplotDataset().
|
private |
Definition at line 82 of file sat-link-results-plot.cc.
Referenced by SatLinkResultsPlot(), and GetGnuplotDataset().