casa
5.7.0-16
|
Defines a computational unit for parallel processing. More...
#include <Algorithm.h>
Public Member Functions | |
Algorithm () | |
Default constructor and destructor. More... | |
virtual | ~Algorithm () |
void | apply () |
Generic apply to execute the parallel task. More... | |
virtual void | get ()=0 |
Get the input data and parameters from the controller. More... | |
virtual void | put ()=0 |
Return the results to the controller. More... | |
virtual casacore::String & | name ()=0 |
Return the name of the algorithm. More... | |
Protected Member Functions | |
virtual void | task ()=0 |
Do the work assigned as a parallel task. More... | |
Defines a computational unit for parallel processing.
Internal or
Internal
Base class used to define a computational unit for parallel processing. The user supplies: i) the get() (fetch the data); ii) the task() (do the work); iii) the put() (send the results back); and iv) the name() (name of the task).
The algorithm class is used for embarassingly- or nearly-embarassingly types of parallel problems.
Base class. User always derives off this class
Definition at line 89 of file Algorithm.h.
|
inline |
Default constructor and destructor.
Definition at line 92 of file Algorithm.h.
|
inlinevirtual |
Definition at line 93 of file Algorithm.h.
|
inline |
Generic apply to execute the parallel task.
Definition at line 96 of file Algorithm.h.
References casa::applicator, casa::Applicator::done(), put(), and task().
|
pure virtual |
Get the input data and parameters from the controller.
Implemented in casa::ResidualAlgorithm, casa::MakeApproxPSFAlgorithm, casa::PredictAlgorithm, casa::ReadMSAlgorithm, and casa::ClarkCleanAlgorithm.
|
pure virtual |
Return the name of the algorithm.
Implemented in casa::ResidualAlgorithm, casa::MakeApproxPSFAlgorithm, casa::PredictAlgorithm, casa::ReadMSAlgorithm, and casa::ClarkCleanAlgorithm.
|
pure virtual |
Return the results to the controller.
Implemented in casa::ResidualAlgorithm, casa::MakeApproxPSFAlgorithm, casa::PredictAlgorithm, casa::ReadMSAlgorithm, and casa::ClarkCleanAlgorithm.
Referenced by apply().
|
protectedpure virtual |
Do the work assigned as a parallel task.
Implemented in casa::ResidualAlgorithm, casa::MakeApproxPSFAlgorithm, casa::PredictAlgorithm, casa::ClarkCleanAlgorithm, and casa::ReadMSAlgorithm.
Referenced by apply().