SpikeStream Application Library  0.2
spikestream::AbstractAnalysisTimeStepThread Class Reference

#include <AbstractAnalysisTimeStepThread.h>

List of all members.

Signals

void newResultsFound ()
void progress (const QString &msg, unsigned int timeStep, unsigned int stepsCompleted, unsigned int totalSteps)

Public Member Functions

 AbstractAnalysisTimeStepThread (const DBInfo &netDBInfo, const DBInfo &archDBInfo, const DBInfo &anaDBInfo)
virtual ~AbstractAnalysisTimeStepThread ()
void clearError ()
QString getErrorMessage ()
int getTimeStep ()
bool isError ()
virtual void prepareTimeStepAnalysis (const AnalysisInfo &anaInfo, int timeStep)
virtual void run ()=0
void stopThread ()

Protected Slots

void updateResults ()
void updateProgress (const QString &msg, unsigned int timeStep, unsigned int stepsCompleted, unsigned int totalSteps)

Protected Member Functions

void setError (const QString &message)

Protected Attributes

DBInfo networkDBInfo
DBInfo archiveDBInfo
DBInfo analysisDBInfo
bool stop
AnalysisInfo analysisInfo
int timeStep
bool error
QString errorMessage

Detailed Description

Abstract class with functions common to all analysis threads designed to analyze a particular time step.

Definition at line 17 of file AbstractAnalysisTimeStepThread.h.


Constructor & Destructor Documentation

AbstractAnalysisTimeStepThread::AbstractAnalysisTimeStepThread ( const DBInfo &  netDBInfo,
const DBInfo &  archDBInfo,
const DBInfo &  anaDBInfo 
)

Constructor

Definition at line 16 of file AbstractAnalysisTimeStepThread.cpp.


Member Function Documentation

Clears the error state of the class

Definition at line 37 of file AbstractAnalysisTimeStepThread.cpp.

void AbstractAnalysisTimeStepThread::prepareTimeStepAnalysis ( const AnalysisInfo &  anaInfo,
int  timeStep 
) [virtual]

Prepares for the analysis by storing the analysis information and time step to be analyzed.

Definition at line 44 of file AbstractAnalysisTimeStepThread.cpp.

void spikestream::AbstractAnalysisTimeStepThread::progress ( const QString &  msg,
unsigned int  timeStep,
unsigned int  stepsCompleted,
unsigned int  totalSteps 
) [signal]
virtual void spikestream::AbstractAnalysisTimeStepThread::run ( ) [pure virtual]
void AbstractAnalysisTimeStepThread::setError ( const QString &  message) [protected]

Sets the thread into the error state

Definition at line 77 of file AbstractAnalysisTimeStepThread.cpp.

Stops the analysis

Definition at line 51 of file AbstractAnalysisTimeStepThread.cpp.

void AbstractAnalysisTimeStepThread::updateProgress ( const QString &  msg,
unsigned int  timeStep,
unsigned int  stepsCompleted,
unsigned int  totalSteps 
) [protected, slot]

Emits a signal indicating that progress has been made

Definition at line 67 of file AbstractAnalysisTimeStepThread.cpp.

Emits a signal indicating that the list of complexes should be updated

Definition at line 61 of file AbstractAnalysisTimeStepThread.cpp.


Member Data Documentation

Information about the analysis database

Definition at line 48 of file AbstractAnalysisTimeStepThread.h.

Information about the analysis being run

Definition at line 54 of file AbstractAnalysisTimeStepThread.h.

Information about the archive database

Definition at line 45 of file AbstractAnalysisTimeStepThread.h.

Records if an error has occurred

Definition at line 60 of file AbstractAnalysisTimeStepThread.h.

Error message associated with an error

Definition at line 63 of file AbstractAnalysisTimeStepThread.h.

Information about the network database

Definition at line 42 of file AbstractAnalysisTimeStepThread.h.

Records and controls thread running

Definition at line 51 of file AbstractAnalysisTimeStepThread.h.

The time step that is being analyzed by this thread

Definition at line 57 of file AbstractAnalysisTimeStepThread.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Friends Defines