|
SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
|
Abstract sink for progress information produced by a running analysis. More...
#include <progressreporter.h>


Public Member Functions | |
| virtual | ~ProgressReporter ()=default |
| virtual void | Start () |
| Makes the reporter visible or otherwise begins reporting. | |
| virtual void | Finish () |
| Ends reporting. | |
| virtual void | AppendPoint (const double &x, const double &y, int chart=0)=0 |
| Adds a point to one of the progress charts. | |
| virtual void | SetProgress (const double &prog)=0 |
| Sets the primary progress fraction. | |
| virtual void | SetProgress2 (const double &prog)=0 |
| Sets the secondary progress fraction, where one is displayed. | |
| virtual void | SetLabel (const QString &label)=0 |
| Sets the free-text status label. | |
| virtual void | SetYRange (const double &y0, const double &y1, int chart=0)=0 |
| Sets the vertical range of a chart. | |
| virtual void | SetXRange (const double &x0, const double &x1, int chart=0)=0 |
| Sets the horizontal range of a chart. | |
| virtual void | SetTitle (const QString &title, int chart=0)=0 |
| Sets the title of a chart. | |
| virtual void | SetXAxisTitle (const QString &title, int chart=0)=0 |
| Sets the horizontal axis title of a chart. | |
| virtual void | SetYAxisTitle (const QString &title, int chart=0)=0 |
| Sets the vertical axis title of a chart. | |
| virtual void | ClearGraph (int chart=0)=0 |
| Discards the points accumulated in a chart. | |
| virtual void | SetChartTitle (int i, const QString &title)=0 |
Sets the title of chart i. | |
Abstract sink for progress information produced by a running analysis.
The long-running algorithms (genetic algorithm, MCMC, distribution fitting, the batch analyses) report their progress as they go. In the graphical application that progress is drawn in a ProgressWindow; in the command line application it is written to the console or discarded. Neither the algorithms nor the Conductor should care which, so both report through this interface.
The method set mirrors the ProgressWindow API that the algorithms were already written against, so that ProgressWindow implements this interface without changing the body of any of its methods.
Only QString is used here, which belongs to QtCore. This header deliberately pulls in nothing from QtWidgets, so that code including it stays usable in a program that never creates a window.
Definition at line 29 of file progressreporter.h.
|
virtualdefault |
|
pure virtual |
Adds a point to one of the progress charts.
| x | Horizontal coordinate, typically an iteration or generation number |
| y | Vertical coordinate, typically a fitness or likelihood value |
| chart | Index of the chart to append to |
Implemented in NullProgressReporter, and ProgressWindow.
Referenced by SourceSinkData::SolveLevenberg_Marquardt().
|
pure virtual |
Discards the points accumulated in a chart.
Implemented in ProgressWindow, and NullProgressReporter.
Referenced by SourceSinkData::MCMC_Batch().
|
inlinevirtual |
Ends reporting.
Named Finish() for the same reason Start() is not called show(). Disposing of the reporter is the responsibility of the AnalysisHost that created it, not of this call.
Reimplemented in ProgressWindow.
Definition at line 50 of file progressreporter.h.
|
pure virtual |
Sets the title of chart i.
Implemented in ProgressWindow, and NullProgressReporter.
|
pure virtual |
Sets the free-text status label.
Implemented in NullProgressReporter, and ProgressWindow.
Referenced by SourceSinkData::LM_Batch(), and SourceSinkData::MCMC_Batch().
|
pure virtual |
Sets the primary progress fraction.
| prog | Progress in the range [0,1] |
Implemented in NullProgressReporter, and ProgressWindow.
Referenced by SourceSinkData::BootStrap(), SourceSinkData::BootStrap(), Conductor::ExecuteDFA(), Conductor::ExecuteDFAM(), Conductor::ExecuteDFAOnevsRest(), Conductor::ExecuteSourceVerify(), SourceSinkData::LM_Batch(), SourceSinkData::MCMC(), CMCMC< SourceSinkData >::prior_distribution(), SourceSinkData::SolveLevenberg_Marquardt(), SourceSinkData::StepwiseDiscriminantFunctionAnalysis(), SourceSinkData::StepwiseDiscriminantFunctionAnalysis(), SourceSinkData::StepwiseDiscriminantFunctionAnalysis(), and SourceSinkData::VerifySource().
|
pure virtual |
Sets the secondary progress fraction, where one is displayed.
| prog | Progress in the range [0,1] |
Implemented in NullProgressReporter, and ProgressWindow.
Referenced by SourceSinkData::MCMC_Batch().
|
pure virtual |
Sets the title of a chart.
Implemented in NullProgressReporter, and ProgressWindow.
Referenced by Conductor::ExecuteGA_FixedProfile(), Conductor::ExecuteTestCMBBayesian(), and SourceSinkData::MCMC().
|
pure virtual |
Sets the horizontal axis title of a chart.
Implemented in NullProgressReporter, and ProgressWindow.
|
pure virtual |
Sets the horizontal range of a chart.
Implemented in NullProgressReporter, and ProgressWindow.
Referenced by SourceSinkData::SolveLevenberg_Marquardt().
|
pure virtual |
Sets the vertical axis title of a chart.
Implemented in NullProgressReporter, and ProgressWindow.
Referenced by Conductor::ExecuteGA_FixedProfile(), Conductor::ExecuteTestCMBBayesian(), and SourceSinkData::MCMC().
|
pure virtual |
Sets the vertical range of a chart.
Implemented in NullProgressReporter, and ProgressWindow.
|
inlinevirtual |
Makes the reporter visible or otherwise begins reporting.
Named Start() rather than show() because QWidget::show() is not virtual, so a widget-derived implementation cannot override a show() declared here.
Reimplemented in ProgressWindow.
Definition at line 41 of file progressreporter.h.
Referenced by Conductor::ExecuteDFA(), Conductor::ExecuteDFAM(), Conductor::ExecuteDFAOnevsRest(), Conductor::ExecuteErrorAnalysis(), Conductor::ExecuteGA(), Conductor::ExecuteGA_FixedProfile(), Conductor::ExecuteGA_NoTargets(), Conductor::ExecuteLevenbergMarquardt(), Conductor::ExecuteLevenbergMarquardtBatch(), Conductor::ExecuteSDFA(), Conductor::ExecuteSDFAM(), Conductor::ExecuteSDFAOnevsRest(), Conductor::ExecuteSourceVerify(), Conductor::ExecuteTestCMBBayesian(), and SourceSinkData::MCMC().