Tomographer
v1.0a
Tomographer C++ Framework Documentation
|
A task which may be repeated in parallel with different inputs.
Task
should represent an instance of the task to complete (e.g. a Metropolis-Hastings random walk). It should provide the following methods.
In the following, ConstantDataType is some type that was specified to the task dispatcher.
Task::getResult()
.k
is the task iteration number and pcdata
is a pointer to the shared const data.Task::get_input()
returned.logger
(see Tomographer::Logger::LoggerBase). Note that the logger need NOT be the logger that may have been specified, e.g., to the task dispatcher: it could be, for example, an internal thread-safe wrapper to your original logger. To be sure, you should make this a template method with parameters LoggerType and TaskManagerIface.run()
should poll tmgriface->status_report_requested()
and provide a status report if requested to do so via tmgriface->status_report(const TaskStatusReportType &)
. See documentation for TaskManagerIface Interface.