Accelerated Computation Engine
|
#include <ace_analytic_single.h>
Public Member Functions | |
virtual bool | isFinished () const override final |
Single (quint16 type) | |
![]() | |
quint16 | analyticType () const |
int | size () const |
EAbstractAnalytic::Input::Type | type (int index) const |
QVariant | data (int index, EAbstractAnalytic::Input::Role role) const |
QList< QString > | commandLineArguments () const |
void | set (int index, const QVariant &value) |
![]() | |
virtual void | saveResult (std::unique_ptr< EAbstractAnalytic::Block > &&result) |
AbstractInput ()=default | |
~AbstractInput () | |
Protected Slots | |
virtual void | start () override final |
void | process () |
![]() | |
virtual void | start () |
Protected Member Functions | |
virtual int | index () const override final |
virtual void | writeResult (std::unique_ptr< EAbstractAnalytic::Block > &&result) override final |
![]() | |
virtual QFile * | addOutputFile (const QString &path) |
virtual Ace::DataObject * | addOutputData (const QString &path, quint16 type, const EMetadata &system) |
AbstractManager (quint16 type) | |
std::unique_ptr< EAbstractAnalytic::Block > | makeWork (int index) |
void | writeResult (std::unique_ptr< EAbstractAnalytic::Block > &&result, int expectedIndex) |
EAbstractAnalytic * | analytic () |
const EAbstractAnalytic * | analytic () const |
Additional Inherited Members | |
![]() | |
void | initialize () |
void | terminationRequested () |
void | finish () |
![]() | |
void | progressed (int percentComplete) |
void | done () |
void | finished () |
![]() | |
static std::unique_ptr< Ace::Analytic::AbstractManager > | makeManager (quint16 type, int index, int size) |
This is the single process manager. This is the last resort manager used if this program is being run normally with no MPI support or using multiple chunk processes that cannot communicate. This manager will simply run through all work blocks provided by the abstract analytic from beginning to end. This manager uses OpenCL run, or serial run if OpenCL is not available, or as a last resort simple run. This is the only manager type that can use the simple run type.
|
explicit |
Constructs a new single run manager with the given analytic type.
type | Analytic type to use for this analytic run. |
|
finaloverrideprotectedvirtual |
Implements the interface that returns the next expected result block index to maintain order of result blocks.
Reimplemented from Ace::Analytic::AbstractInput.
|
finaloverridevirtual |
Implements the interface that tests if this abstract input is finished and received all result blocks for its analytic.
Implements Ace::Analytic::AbstractInput.
|
protectedslot |
Called to add all work, blocks or none if in simple mode, to this manager's abstract run object.
|
finaloverrideprotectedvirtualslot |
Implements the interface that is called once to begin the analytic run for this manager after all argument input has been set. This implementation starts this object's process slot.
|
finaloverrideprotectedvirtual |
Implements the interface that is called to save the given result block to the underlying analytic and it can be assumed that the index order is maintained from least to greatest.
result | The result block that is saved to the underlying analytic. |
Reimplemented from Ace::Analytic::AbstractInput.