SpikeStream Application Library
0.2
|
#include <AbstractAnalysisWidget.h>
Public Member Functions | |
AbstractAnalysisWidget (QWidget *parent) | |
virtual | ~AbstractAnalysisWidget () |
virtual void | hideAnalysisResults ()=0 |
Protected Slots | |
virtual void | archiveChanged () |
void | checkToolBarEnabled () |
void | fixTimeStepSelection (int) |
virtual void | exportAnalysis ()=0 |
virtual QString | getAnalysisName ()=0 |
virtual void | loadAnalysis () |
void | loadArchiveTimeStepsIntoCombos () |
virtual void | networkChanged () |
virtual void | newAnalysis ()=0 |
virtual void | plotGraphs ()=0 |
virtual void | selectParameters () |
virtual void | startAnalysis ()=0 |
virtual void | stopAnalysis () |
virtual void | threadFinished () |
virtual void | updateResults ()=0 |
Protected Member Functions | |
QToolBar * | getDefaultToolBar () |
int | getFirstTimeStep () |
int | getLastTimeStep () |
QStringList | getTimeStepList (unsigned int min, unsigned int max) |
virtual void | initializeAnalysisInfo ()=0 |
Protected Attributes | |
QToolBar * | toolBar |
QComboBox * | fromTimeStepCombo |
QComboBox * | toTimeStepCombo |
AnalysisRunner * | analysisRunner |
AnalysisInfo | analysisInfo |
int | currentTask |
Static Protected Attributes | |
static const int | UNDEFINED_TASK = 0 |
static const int | ANALYSIS_TASK = 1 |
Abstract class that handles generic functions likely to be common to all analysis widgets.
Definition at line 17 of file AbstractAnalysisWidget.h.
AbstractAnalysisWidget::AbstractAnalysisWidget | ( | QWidget * | parent | ) |
Constructor
Definition at line 15 of file AbstractAnalysisWidget.cpp.
AbstractAnalysisWidget::~AbstractAnalysisWidget | ( | ) | [virtual] |
Destructor
Definition at line 37 of file AbstractAnalysisWidget.cpp.
void AbstractAnalysisWidget::archiveChanged | ( | ) | [protected, virtual, slot] |
Called when the archive changes and sets archive ID appropriately
Definition at line 47 of file AbstractAnalysisWidget.cpp.
void AbstractAnalysisWidget::checkToolBarEnabled | ( | ) | [protected, slot] |
Checks to see if network or archive have been loaded
Definition at line 169 of file AbstractAnalysisWidget.cpp.
virtual void spikestream::AbstractAnalysisWidget::exportAnalysis | ( | ) | [protected, pure virtual, slot] |
void AbstractAnalysisWidget::fixTimeStepSelection | ( | int | selectedIndex | ) | [protected, slot] |
Corrects the time step selection combos so that the from is never greater than the to
Definition at line 57 of file AbstractAnalysisWidget.cpp.
virtual QString spikestream::AbstractAnalysisWidget::getAnalysisName | ( | ) | [protected, pure virtual, slot] |
QToolBar * AbstractAnalysisWidget::getDefaultToolBar | ( | ) | [protected] |
Builds the toolbar that goes at the top of the page.
Definition at line 187 of file AbstractAnalysisWidget.cpp.
int AbstractAnalysisWidget::getFirstTimeStep | ( | ) | [protected] |
Returns the first time step to be analyzed
Definition at line 233 of file AbstractAnalysisWidget.cpp.
int AbstractAnalysisWidget::getLastTimeStep | ( | ) | [protected] |
Returns the last time step to be analyzed
Definition at line 239 of file AbstractAnalysisWidget.cpp.
QStringList AbstractAnalysisWidget::getTimeStepList | ( | unsigned int | min, |
unsigned int | max | ||
) | [protected] |
Builds a list of time steps covering the specified range.
Definition at line 178 of file AbstractAnalysisWidget.cpp.
virtual void spikestream::AbstractAnalysisWidget::hideAnalysisResults | ( | ) | [pure virtual] |
virtual void spikestream::AbstractAnalysisWidget::initializeAnalysisInfo | ( | ) | [protected, pure virtual] |
void AbstractAnalysisWidget::loadAnalysis | ( | ) | [protected, virtual, slot] |
Displays the load analysis dialog box so the user can select which analysis to load
Definition at line 74 of file AbstractAnalysisWidget.cpp.
void AbstractAnalysisWidget::loadArchiveTimeStepsIntoCombos | ( | ) | [protected, slot] |
Loads up the minimum and maximum time step for the archive
Definition at line 93 of file AbstractAnalysisWidget.cpp.
void AbstractAnalysisWidget::networkChanged | ( | ) | [protected, virtual, slot] |
Called when the network changes and sets network ID appropriately
Definition at line 110 of file AbstractAnalysisWidget.cpp.
virtual void spikestream::AbstractAnalysisWidget::newAnalysis | ( | ) | [protected, pure virtual, slot] |
virtual void spikestream::AbstractAnalysisWidget::plotGraphs | ( | ) | [protected, pure virtual, slot] |
void AbstractAnalysisWidget::selectParameters | ( | ) | [protected, virtual, slot] |
Selects the parameters to be used for the analysis, including the description. These cannot be edited once the analysis has been started - otherwise would have to associate a set of parameters with each time step
Definition at line 122 of file AbstractAnalysisWidget.cpp.
virtual void spikestream::AbstractAnalysisWidget::startAnalysis | ( | ) | [protected, pure virtual, slot] |
void AbstractAnalysisWidget::stopAnalysis | ( | ) | [protected, virtual, slot] |
Stops the analysis of the network.
Definition at line 139 of file AbstractAnalysisWidget.cpp.
void AbstractAnalysisWidget::threadFinished | ( | ) | [protected, virtual, slot] |
Called when the thread running the analysis finishes.
Definition at line 145 of file AbstractAnalysisWidget.cpp.
virtual void spikestream::AbstractAnalysisWidget::updateResults | ( | ) | [protected, pure virtual, slot] |
const int spikestream::AbstractAnalysisWidget::ANALYSIS_TASK = 1 [static, protected] |
Task of Liveliness analysis
Definition at line 67 of file AbstractAnalysisWidget.h.
AnalysisInfo spikestream::AbstractAnalysisWidget::analysisInfo [protected] |
Information about the analysis
Definition at line 58 of file AbstractAnalysisWidget.h.
Class responsible for running the analysis
Definition at line 55 of file AbstractAnalysisWidget.h.
int spikestream::AbstractAnalysisWidget::currentTask [protected] |
The task that is currently being undertaken
Definition at line 61 of file AbstractAnalysisWidget.h.
QComboBox* spikestream::AbstractAnalysisWidget::fromTimeStepCombo [protected] |
Allows user to select first time step to be analyzed
Definition at line 49 of file AbstractAnalysisWidget.h.
QToolBar* spikestream::AbstractAnalysisWidget::toolBar [protected] |
Toolbar with controls for the widget
Definition at line 46 of file AbstractAnalysisWidget.h.
QComboBox* spikestream::AbstractAnalysisWidget::toTimeStepCombo [protected] |
Allows user to select last time step to be analyzed
Definition at line 52 of file AbstractAnalysisWidget.h.
const int spikestream::AbstractAnalysisWidget::UNDEFINED_TASK = 0 [static, protected] |
Task not defined
Definition at line 64 of file AbstractAnalysisWidget.h.