Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

ArchiveStatisticsDialog Class Reference

#include <ArchiveStatisticsDialog.h>

List of all members.

Public Member Functions

 ArchiveStatisticsDialog (QWidget *parent, vector< NeuronGroup * > neurGrpVect, ArchiveStatisticsHolder *archStatHold)
 ArchiveStatisticsDialog (QWidget *parent, vector< NeuronGroup * > neurGrpVect)
ArchiveStatisticsHoldergetArchiveStatistics ()
 ~ArchiveStatisticsDialog ()

Private Slots

void cancelButtonPressed ()
void neurGrpRadioButtonClicked ()
void neurIDRadioButtonClicked ()
void okButtonPressed ()

Private Member Functions

 ArchiveStatisticsDialog (const ArchiveStatisticsDialog &)
unsigned int checkNeuronID (QString idSTr)
void initialiseDialog ()
ArchiveStatisticsDialog operator= (const ArchiveStatisticsDialog &)

Private Attributes

ArchiveStatisticsHolderarchStatsHolder
QLineEdit * archStatsNameText
QRadioButton * neurGrpRadioButt
QRadioButton * neurIDRadioButt
QTextEdit * neurIDText
QComboBox * neuronGrpCombo
vector< NeuronGroup * > neuronGrpVector
bool neuronIDError


Detailed Description

Selects an aspect of the current archive to monitor for statistics, for example, the number of times a neuron with a particular ID has fired. In this widget, neuron IDs should be added in as a comma separated list. Or, And and range operations are supported, for example: 12121 & 12121, 1323-56565, 123213|098098

Definition at line 52 of file ArchiveStatisticsDialog.h.


Constructor & Destructor Documentation

ArchiveStatisticsDialog::ArchiveStatisticsDialog QWidget *  parent,
vector< NeuronGroup * >  neurGrpVect
 

Main Constructor.

Definition at line 42 of file ArchiveStatisticsDialog.cpp.

References initialiseDialog(), and neuronGrpVector.

ArchiveStatisticsDialog::ArchiveStatisticsDialog QWidget *  parent,
vector< NeuronGroup * >  neurGrpVect,
ArchiveStatisticsHolder archStatsHold
 

Constructor used when editing the archive statistics parameters.

Definition at line 52 of file ArchiveStatisticsDialog.cpp.

References archStatsNameText, ArchiveStatisticsHolder::archStatVector, ArchiveStatisticsHolder::description, initialiseDialog(), neurIDRadioButt, neurIDText, ArchiveStatistic::NEURON_GROUP, neuronGrpCombo, and neuronGrpVector.

ArchiveStatisticsDialog::~ArchiveStatisticsDialog  ) 
 

Destructor.

Definition at line 183 of file ArchiveStatisticsDialog.cpp.

ArchiveStatisticsDialog::ArchiveStatisticsDialog const ArchiveStatisticsDialog  )  [private]
 

Declare copy constructor private so it cannot be used inadvertently.


Member Function Documentation

void ArchiveStatisticsDialog::cancelButtonPressed  )  [private, slot]
 

Called when the cancel button is pressed and rejects the dialog.

Definition at line 205 of file ArchiveStatisticsDialog.cpp.

Referenced by initialiseDialog().

unsigned int ArchiveStatisticsDialog::checkNeuronID QString  idStr  )  [private]
 

Checks to see that neuron id string is valid and lies within the range of one of the available neuron groups.

Definition at line 315 of file ArchiveStatisticsDialog.cpp.

References neuronGrpVector, and neuronIDError.

Referenced by okButtonPressed().

ArchiveStatisticsHolder * ArchiveStatisticsDialog::getArchiveStatistics  ) 
 

Returns the archive statistics that have been created by the dialog.

Definition at line 195 of file ArchiveStatisticsDialog.cpp.

References archStatsHolder.

Referenced by ArchiveWidget::addStatsButtonClicked(), and ArchiveWidget::statsTableClicked().

void ArchiveStatisticsDialog::initialiseDialog  )  [private]
 

Sets up the dialog. This is placed in a separate method because there are two different constructors.

Definition at line 110 of file ArchiveStatisticsDialog.cpp.

References archStatsNameText, cancelButtonPressed(), neurGrpRadioButt, neurGrpRadioButtonClicked(), neurIDRadioButt, neurIDRadioButtonClicked(), neurIDText, neuronGrpCombo, neuronGrpVector, and okButtonPressed().

Referenced by ArchiveStatisticsDialog().

void ArchiveStatisticsDialog::neurGrpRadioButtonClicked  )  [private, slot]
 

Called when the neuron group option is selected.

Definition at line 211 of file ArchiveStatisticsDialog.cpp.

References neurIDText, and neuronGrpCombo.

Referenced by initialiseDialog().

void ArchiveStatisticsDialog::neurIDRadioButtonClicked  )  [private, slot]
 

Called when the neuron ID option is selected.

Definition at line 218 of file ArchiveStatisticsDialog.cpp.

References neurIDText, and neuronGrpCombo.

Referenced by initialiseDialog().

void ArchiveStatisticsDialog::okButtonPressed  )  [private, slot]
 

Called when the ok button is pressed. Either creates a single archive statistic to monitor the neuron group or a number of archive statistics to monitor each of the comma separated entries in the text area.

Definition at line 228 of file ArchiveStatisticsDialog.cpp.

References archStatsHolder, archStatsNameText, ArchiveStatisticsHolder::archStatVector, checkNeuronID(), ArchiveStatisticsHolder::description, ArchiveStatisticsHolder::firingNeuronCount, ArchiveStatisticsHolder::firingNeuronTotal, neurGrpRadioButt, neurIDText, neuronGrpCombo, and neuronIDError.

Referenced by initialiseDialog().

ArchiveStatisticsDialog ArchiveStatisticsDialog::operator= const ArchiveStatisticsDialog  )  [private]
 

Declare assignment private so it cannot be used inadvertently.


Member Data Documentation

ArchiveStatisticsHolder* ArchiveStatisticsDialog::archStatsHolder [private]
 

Holds the selected statistical information.

Definition at line 74 of file ArchiveStatisticsDialog.h.

Referenced by getArchiveStatistics(), and okButtonPressed().

QLineEdit* ArchiveStatisticsDialog::archStatsNameText [private]
 

Definition at line 84 of file ArchiveStatisticsDialog.h.

Referenced by ArchiveStatisticsDialog(), initialiseDialog(), and okButtonPressed().

QRadioButton* ArchiveStatisticsDialog::neurGrpRadioButt [private]
 

Definition at line 81 of file ArchiveStatisticsDialog.h.

Referenced by initialiseDialog(), and okButtonPressed().

QRadioButton* ArchiveStatisticsDialog::neurIDRadioButt [private]
 

Definition at line 82 of file ArchiveStatisticsDialog.h.

Referenced by ArchiveStatisticsDialog(), and initialiseDialog().

QTextEdit* ArchiveStatisticsDialog::neurIDText [private]
 

Definition at line 83 of file ArchiveStatisticsDialog.h.

Referenced by ArchiveStatisticsDialog(), initialiseDialog(), neurGrpRadioButtonClicked(), neurIDRadioButtonClicked(), and okButtonPressed().

QComboBox* ArchiveStatisticsDialog::neuronGrpCombo [private]
 

Definition at line 80 of file ArchiveStatisticsDialog.h.

Referenced by ArchiveStatisticsDialog(), initialiseDialog(), neurGrpRadioButtonClicked(), neurIDRadioButtonClicked(), and okButtonPressed().

vector<NeuronGroup*> ArchiveStatisticsDialog::neuronGrpVector [private]
 

Vector holding details of the neuron groups.

Definition at line 71 of file ArchiveStatisticsDialog.h.

Referenced by ArchiveStatisticsDialog(), checkNeuronID(), and initialiseDialog().

bool ArchiveStatisticsDialog::neuronIDError [private]
 

Holds errors that arose from checking the string.

Definition at line 77 of file ArchiveStatisticsDialog.h.

Referenced by checkNeuronID(), and okButtonPressed().


The documentation for this class was generated from the following files:
Generated on Mon Sep 3 22:29:05 2007 for SpikeStream Application by  doxygen 1.4.4