Accelerated Computation Engine
Public Member Functions | Protected Slots | Protected Member Functions | List of all members
Ace::Analytic::Single Class Reference

#include <ace_analytic_single.h>

Inheritance diagram for Ace::Analytic::Single:
Ace::Analytic::AbstractManager Ace::Analytic::AbstractInput

Public Member Functions

virtual bool isFinished () const override final
 
 Single (quint16 type)
 
- Public Member Functions inherited from Ace::Analytic::AbstractManager
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)
 
- Public Member Functions inherited from Ace::Analytic::AbstractInput
virtual void saveResult (std::unique_ptr< EAbstractAnalytic::Block > &&result)
 
 AbstractInput ()=default
 
 ~AbstractInput ()
 

Protected Slots

virtual void start () override final
 
void process ()
 
- Protected Slots inherited from Ace::Analytic::AbstractManager
virtual void start ()
 

Protected Member Functions

virtual int index () const override final
 
virtual void writeResult (std::unique_ptr< EAbstractAnalytic::Block > &&result) override final
 
- Protected Member Functions inherited from Ace::Analytic::AbstractManager
virtual QFile * addOutputFile (const QString &path)
 
virtual Ace::DataObjectaddOutputData (const QString &path, quint16 type, const EMetadata &system)
 
 AbstractManager (quint16 type)
 
std::unique_ptr< EAbstractAnalytic::BlockmakeWork (int index)
 
void writeResult (std::unique_ptr< EAbstractAnalytic::Block > &&result, int expectedIndex)
 
EAbstractAnalyticanalytic ()
 
const EAbstractAnalyticanalytic () const
 

Additional Inherited Members

- Public Slots inherited from Ace::Analytic::AbstractManager
void initialize ()
 
void terminationRequested ()
 
void finish ()
 
- Signals inherited from Ace::Analytic::AbstractManager
void progressed (int percentComplete)
 
void done ()
 
void finished ()
 
- Static Public Member Functions inherited from Ace::Analytic::AbstractManager
static std::unique_ptr< Ace::Analytic::AbstractManagermakeManager (quint16 type, int index, int size)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Single()

Single::Single ( quint16  type)
explicit

Constructs a new single run manager with the given analytic type.

Parameters
typeAnalytic type to use for this analytic run.

Member Function Documentation

◆ index()

int Single::index ( ) const
finaloverrideprotectedvirtual

Implements the interface that returns the next expected result block index to maintain order of result blocks.

Returns
The next expected result block index to maintain order.

Reimplemented from Ace::Analytic::AbstractInput.

◆ isFinished()

bool Single::isFinished ( ) const
finaloverridevirtual

Implements the interface that tests if this abstract input is finished and received all result blocks for its analytic.

Returns
True if this abstract input is finished or false otherwise.

Implements Ace::Analytic::AbstractInput.

◆ process

void Single::process ( )
protectedslot

Called to add all work, blocks or none if in simple mode, to this manager's abstract run object.

◆ start

void Single::start ( )
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.

◆ writeResult()

void Single::writeResult ( std::unique_ptr< EAbstractAnalytic::Block > &&  result)
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.

Parameters
resultThe result block that is saved to the underlying analytic.

Reimplemented from Ace::Analytic::AbstractInput.


The documentation for this class was generated from the following files: