UltraScan III
List of all members | Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes
WorkerThreadPc Class Reference

Worker thread to do the actual computational work of PCSA analysis. More...

#include "us_worker_pc.h"

Inheritance diagram for WorkerThreadPc:
Inheritance graph
[legend]
Collaboration diagram for WorkerThreadPc:
Collaboration graph
[legend]

Public Slots

void define_work (WorkPacketPc &)
 Define the work packet for a worker thread. More...
 
void get_result (WorkPacketPc &)
 Get the results work packet of a completed worker thread. More...
 
void run ()
 Run the worker thread. More...
 
void flag_abort ()
 Set a flag so a worker thread will abort as soon as possible. More...
 
void forward_progress (int)
 Public slot to forward a progress signal. More...
 

Signals

void work_progress (int)
 
void work_complete (WorkerThreadPc *)
 

Public Member Functions

 WorkerThreadPc (QObject *parent=0)
 
 ~WorkerThreadPc ()
 

Private Member Functions

void calc_residuals (void)
 
void calc_resids_ratio (void)
 
long int max_rss (void)
 
void apply_alpha (const double, QVector< double > *, QVector< double > *, const int, const int, const int, double &, double &)
 

Private Attributes

QMutex mutex
 
long int maxrss
 
double str_y
 
double end_y
 
double par1
 
double par2
 
double par3
 
int thrn
 
int taskx
 
int depth
 
int iter
 
int menmcx
 
int typeref
 
int nscans
 
int npoints
 
int nsolutes
 
int noisflag
 
int dbg_level
 
bool abort
 
US_DataIO::EditedDataedata
 
US_DataIO::RawData sdata
 
US_DataIO::RawData rdata
 
US_Model model
 
US_Noise ri_noise
 
US_Noise ti_noise
 
US_Noise ra_noise
 
US_SimulationParameters simparms
 
QList< US_SolveSim::DataSet * > dsets
 
US_SolveSim::Simulation sim_vals
 
US_SolveSimsolvesim
 
US_SolveSim::DataSet dset_wk
 
QVector< US_ZSolutesolutes_i
 
QVector< US_ZSolutesolutes_c
 
QVector< double > * psv_nnls_a
 
QVector< double > * psv_nnls_b
 

Detailed Description

Worker thread to do the actual computational work of PCSA analysis.

This class is for each of the individual worker threads that do the actual computational work of PCSA analysis.

Definition at line 51 of file us_worker_pc.h.

Constructor & Destructor Documentation

WorkerThreadPc::WorkerThreadPc ( QObject *  parent = 0)

Definition at line 15 of file us_worker_pc.cpp.

WorkerThreadPc::~WorkerThreadPc ( )

Definition at line 27 of file us_worker_pc.cpp.

Member Function Documentation

void WorkerThreadPc::apply_alpha ( const double  alpha,
QVector< double > *  psv_nnls_a,
QVector< double > *  psv_nnls_b,
const int  nscans,
const int  npoints,
const int  nisols,
double &  variance,
double &  xnormsq 
)
private

Definition at line 204 of file us_worker_pc.cpp.

void WorkerThreadPc::calc_resids_ratio ( void  )
private
void WorkerThreadPc::calc_residuals ( void  )
private

Definition at line 144 of file us_worker_pc.cpp.

void WorkerThreadPc::define_work ( WorkPacketPc workin)
slot

Define the work packet for a worker thread.

Parameters
workinInput work definition packet

Definition at line 44 of file us_worker_pc.cpp.

void WorkerThreadPc::flag_abort ( void  )
slot

Set a flag so a worker thread will abort as soon as possible.

Definition at line 138 of file us_worker_pc.cpp.

void WorkerThreadPc::forward_progress ( int  steps)
slot

Public slot to forward a progress signal.

Definition at line 199 of file us_worker_pc.cpp.

void WorkerThreadPc::get_result ( WorkPacketPc workout)
slot

Get the results work packet of a completed worker thread.

Parameters
workoutOutput work definition packet

Definition at line 86 of file us_worker_pc.cpp.

long int WorkerThreadPc::max_rss ( void  )
private
void WorkerThreadPc::run ( void  )
slot

Run the worker thread.

Definition at line 124 of file us_worker_pc.cpp.

void WorkerThreadPc::work_complete ( WorkerThreadPc )
signal
void WorkerThreadPc::work_progress ( int  )
signal

Member Data Documentation

bool WorkerThreadPc::abort
private

Definition at line 108 of file us_worker_pc.h.

int WorkerThreadPc::dbg_level
private

Definition at line 106 of file us_worker_pc.h.

int WorkerThreadPc::depth
private

Definition at line 98 of file us_worker_pc.h.

US_SolveSim::DataSet WorkerThreadPc::dset_wk
private

Definition at line 122 of file us_worker_pc.h.

QList< US_SolveSim::DataSet* > WorkerThreadPc::dsets
private

Definition at line 119 of file us_worker_pc.h.

US_DataIO::EditedData* WorkerThreadPc::edata
private

Definition at line 110 of file us_worker_pc.h.

double WorkerThreadPc::end_y
private

Definition at line 91 of file us_worker_pc.h.

int WorkerThreadPc::iter
private

Definition at line 99 of file us_worker_pc.h.

long int WorkerThreadPc::maxrss
private

Definition at line 88 of file us_worker_pc.h.

int WorkerThreadPc::menmcx
private

Definition at line 100 of file us_worker_pc.h.

US_Model WorkerThreadPc::model
private

Definition at line 113 of file us_worker_pc.h.

QMutex WorkerThreadPc::mutex
private

Definition at line 86 of file us_worker_pc.h.

int WorkerThreadPc::noisflag
private

Definition at line 105 of file us_worker_pc.h.

int WorkerThreadPc::npoints
private

Definition at line 103 of file us_worker_pc.h.

int WorkerThreadPc::nscans
private

Definition at line 102 of file us_worker_pc.h.

int WorkerThreadPc::nsolutes
private

Definition at line 104 of file us_worker_pc.h.

double WorkerThreadPc::par1
private

Definition at line 92 of file us_worker_pc.h.

double WorkerThreadPc::par2
private

Definition at line 93 of file us_worker_pc.h.

double WorkerThreadPc::par3
private

Definition at line 94 of file us_worker_pc.h.

QVector< double >* WorkerThreadPc::psv_nnls_a
private

Definition at line 127 of file us_worker_pc.h.

QVector< double >* WorkerThreadPc::psv_nnls_b
private

Definition at line 128 of file us_worker_pc.h.

US_Noise WorkerThreadPc::ra_noise
private

Definition at line 116 of file us_worker_pc.h.

US_DataIO::RawData WorkerThreadPc::rdata
private

Definition at line 112 of file us_worker_pc.h.

US_Noise WorkerThreadPc::ri_noise
private

Definition at line 114 of file us_worker_pc.h.

US_DataIO::RawData WorkerThreadPc::sdata
private

Definition at line 111 of file us_worker_pc.h.

US_SolveSim::Simulation WorkerThreadPc::sim_vals
private

Definition at line 120 of file us_worker_pc.h.

US_SimulationParameters WorkerThreadPc::simparms
private

Definition at line 117 of file us_worker_pc.h.

QVector< US_ZSolute > WorkerThreadPc::solutes_c
private

Definition at line 125 of file us_worker_pc.h.

QVector< US_ZSolute > WorkerThreadPc::solutes_i
private

Definition at line 124 of file us_worker_pc.h.

US_SolveSim* WorkerThreadPc::solvesim
private

Definition at line 121 of file us_worker_pc.h.

double WorkerThreadPc::str_y
private

Definition at line 90 of file us_worker_pc.h.

int WorkerThreadPc::taskx
private

Definition at line 97 of file us_worker_pc.h.

int WorkerThreadPc::thrn
private

Definition at line 96 of file us_worker_pc.h.

US_Noise WorkerThreadPc::ti_noise
private

Definition at line 115 of file us_worker_pc.h.

int WorkerThreadPc::typeref
private

Definition at line 101 of file us_worker_pc.h.


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