SpikeStream Application Library
0.2
|
#include <AbstractAnalysisTimeStepThread.h>
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 |
Abstract class with functions common to all analysis threads designed to analyze a particular time step.
Definition at line 17 of file AbstractAnalysisTimeStepThread.h.
AbstractAnalysisTimeStepThread::AbstractAnalysisTimeStepThread | ( | const DBInfo & | netDBInfo, |
const DBInfo & | archDBInfo, | ||
const DBInfo & | anaDBInfo | ||
) |
Constructor
Definition at line 16 of file AbstractAnalysisTimeStepThread.cpp.
Destructor
Definition at line 28 of file AbstractAnalysisTimeStepThread.cpp.
Clears the error state of the class
Definition at line 37 of file AbstractAnalysisTimeStepThread.cpp.
QString spikestream::AbstractAnalysisTimeStepThread::getErrorMessage | ( | ) | [inline] |
Definition at line 24 of file AbstractAnalysisTimeStepThread.h.
int spikestream::AbstractAnalysisTimeStepThread::getTimeStep | ( | ) | [inline] |
Definition at line 25 of file AbstractAnalysisTimeStepThread.h.
bool spikestream::AbstractAnalysisTimeStepThread::isError | ( | ) | [inline] |
Definition at line 26 of file AbstractAnalysisTimeStepThread.h.
void spikestream::AbstractAnalysisTimeStepThread::newResultsFound | ( | ) | [signal] |
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.
void AbstractAnalysisTimeStepThread::updateResults | ( | ) | [protected, slot] |
Emits a signal indicating that the list of complexes should be updated
Definition at line 61 of file AbstractAnalysisTimeStepThread.cpp.
DBInfo spikestream::AbstractAnalysisTimeStepThread::analysisDBInfo [protected] |
Information about the analysis database
Definition at line 48 of file AbstractAnalysisTimeStepThread.h.
AnalysisInfo spikestream::AbstractAnalysisTimeStepThread::analysisInfo [protected] |
Information about the analysis being run
Definition at line 54 of file AbstractAnalysisTimeStepThread.h.
DBInfo spikestream::AbstractAnalysisTimeStepThread::archiveDBInfo [protected] |
Information about the archive database
Definition at line 45 of file AbstractAnalysisTimeStepThread.h.
bool spikestream::AbstractAnalysisTimeStepThread::error [protected] |
Records if an error has occurred
Definition at line 60 of file AbstractAnalysisTimeStepThread.h.
QString spikestream::AbstractAnalysisTimeStepThread::errorMessage [protected] |
Error message associated with an error
Definition at line 63 of file AbstractAnalysisTimeStepThread.h.
DBInfo spikestream::AbstractAnalysisTimeStepThread::networkDBInfo [protected] |
Information about the network database
Definition at line 42 of file AbstractAnalysisTimeStepThread.h.
bool spikestream::AbstractAnalysisTimeStepThread::stop [protected] |
Records and controls thread running
Definition at line 51 of file AbstractAnalysisTimeStepThread.h.
int spikestream::AbstractAnalysisTimeStepThread::timeStep [protected] |
The time step that is being analyzed by this thread
Definition at line 57 of file AbstractAnalysisTimeStepThread.h.