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

SimulationWidget Class Reference

#include <SimulationWidget.h>

List of all members.

Public Member Functions

SimulationManagergetSimulationManager ()
void hideOpenWindows ()
void reloadConnectionGroups ()
void reloadDevices ()
void reloadNeuronGroups ()
void reloadPatterns ()
void setFromNeuronID (unsigned int neurGrpID, unsigned int fromNeurID)
void setMonitorArea (MonitorArea *)
void setToNeuronID (unsigned int toNeurID)
void showOpenWindows ()
 SimulationWidget (QWidget *parent, DBInterface *, DBInterface *, DBInterface *, DBInterface *)
 ~SimulationWidget ()

Static Public Member Functions

static unsigned int getSimulationStartTime ()

Private Slots

void checkSimManagerForErrors ()
void checkViewWeightsSaved ()
void checkWeightsLoadState ()
void checkWeightsSaveState ()
void dockAllButtonClicked ()
void fireNeuronButtonPressed ()
void fireNeuronComboActivated (const QString &string)
void frameRateComboChanged (int)
void globalParamButtonPressed ()
void hideGraphsButtonClicked ()
void initialiseButtonToggled (bool)
void injectNoiseButtonPressed ()
void monitorButtonPressed ()
void monitorNeuronButtonPressed ()
void monitorNeuronComboActivated (const QString &string)
void monitorSynapseButtonPressed ()
void neuronParamButtonPressed ()
void noiseParamButtonPressed ()
void recordButtonToggled (bool)
void reloadWeightsButtonPressed ()
void saveWeightsButtonPressed ()
void setSimulationStartTime (unsigned int simStartTime)
void showGraphsButtonClicked ()
void simModeComboChanged (int)
void simStartButtonToggled (bool)
void simStepButtonPressed ()
void simStopButtonPressed ()
void synapseParamButtonPressed ()
void undockAllButtonClicked ()
void viewWeightsButtonPressed ()

Private Member Functions

void getNeuronGrpNames (QStringList &, unsigned int w, unsigned int l)
void loadDeviceTable ()
void loadNeuronGrpNames (QComboBox *comboBox)
void loadPatternTable ()
bool neuronGroupsIsolated ()
SimulationWidget operator= (const SimulationWidget &)
 SimulationWidget (const SimulationWidget &)

Private Attributes

DBInterface * archiveDBInterface
QComboBox * archMonitorTypeCombo
QLineEdit * archNameText
BusyDialogbusyDialog
DBInterface * deviceDBInterface
int deviceFiringModeCol
int deviceIDCol
int deviceNeurGrpCol
QTable * deviceTable
QPushButton * dockAllButton
QPushButton * fireNeuronButton
QComboBox * fireNeuronCombo
QLineEdit * fireNeuronText
QIntValidator * fireNeuronValidator
QComboBox * frameRateCombo
GlobalParametersDialogglobalParametersDialog
QPushButton * hideGraphsButton
bool ignoreInitialiseButton
bool ignoreRecordButton
QPushButton * initialiseButton
QComboBox * injectNoiseAmntCombo
QPushButton * injectNoiseButton
QComboBox * injectNoiseNeurGrpCombo
QTabWidget * inputTabWidget
QComboBox * liveMonitorTypeCombo
unsigned int maxFireNeuronID
unsigned int maxMonitorNeuronID
unsigned int minFireNeuronID
unsigned int minMonitorNeuronID
MonitorAreamonitorArea
QPushButton * monitorButton
QPushButton * monitorNeuronButton
QComboBox * monitorNeuronCombo
QLineEdit * monitorNeuronText
QIntValidator * monitorNeuronValidator
QPushButton * monitorSynapseButton
QLabel * monitorSynapseFromLabel
QLabel * monitorSynapseFromNumLabel
QLabel * monitorSynapseToLabel
QLabel * monitorSynapseToNumLabel
DBInterface * networkDBInterface
QComboBox * neuronGrpMonitorCombo
map< unsigned int, MonitorDataPlotter * > neuronMonitorMap
NeuronParametersDialogneuronParametersDialog
NoiseParametersDialognoiseParametersDialog
DBInterface * patternDBInterface
int patternIDCol
int patternNeurGrpCol
QTable * patternTable
QPushButton * recordButton
QPushButton * reloadWeightsButton
QPushButton * saveWeightsButton
QGroupBox * settingsGrpBox
QPushButton * showGraphsButton
QTimer * simErrorCheckTimer
QComboBox * simModeCombo
QPushButton * simStartButton
QPushButton * simStepButton
QPushButton * simStopButton
map< QString *, bool, qstringComparesimulationErrorMap
SimulationManagersimulationManager
SpikeStreamApplicationspikeStrApp
map< unsigned int *, MonitorDataPlotter *,
synapseKeyCompare > 
synapseMonitorMap
SynapseParametersDialogsynapseParametersDialog
QLineEdit * timeStepsPatternText
QPushButton * undockAllButton
QPushButton * viewWeightsButton

Static Private Attributes

static unsigned int simulationStartTime = 0


Detailed Description

Used to control simulation, adjust simulation parameters and visualise what is going on in the neural networks.

Definition at line 72 of file SimulationWidget.h.


Constructor & Destructor Documentation

SimulationWidget::SimulationWidget QWidget *  parent,
DBInterface *  netDBInter,
DBInterface *  archDBInter,
DBInterface *  pattDBInter,
DBInterface *  devDBInter
 

Constructor.

Definition at line 55 of file SimulationWidget.cpp.

References archiveDBInterface, archMonitorTypeCombo, archNameText, checkSimManagerForErrors(), deviceDBInterface, deviceFiringModeCol, deviceIDCol, deviceNeurGrpCol, deviceTable, dockAllButton, dockAllButtonClicked(), fireNeuronButton, fireNeuronButtonPressed(), fireNeuronCombo, fireNeuronComboActivated(), fireNeuronText, fireNeuronValidator, frameRateCombo, frameRateComboChanged(), globalParamButtonPressed(), globalParametersDialog, hideGraphsButton, hideGraphsButtonClicked(), ignoreInitialiseButton, ignoreRecordButton, initialiseButton, initialiseButtonToggled(), injectNoiseAmntCombo, injectNoiseButton, injectNoiseButtonPressed(), injectNoiseNeurGrpCombo, inputTabWidget, liveMonitorTypeCombo, loadDeviceTable(), loadPatternTable(), monitorButton, monitorButtonPressed(), monitorNeuronButton, monitorNeuronButtonPressed(), monitorNeuronCombo, monitorNeuronComboActivated(), monitorNeuronText, monitorNeuronValidator, monitorSynapseButton, monitorSynapseButtonPressed(), monitorSynapseFromLabel, monitorSynapseFromNumLabel, monitorSynapseToLabel, monitorSynapseToNumLabel, networkDBInterface, neuronGrpMonitorCombo, neuronMonitorMap, neuronParamButtonPressed(), neuronParametersDialog, noiseParamButtonPressed(), noiseParametersDialog, patternDBInterface, patternIDCol, patternNeurGrpCol, patternTable, recordButton, recordButtonToggled(), reloadWeightsButton, reloadWeightsButtonPressed(), saveWeightsButton, saveWeightsButtonPressed(), SimulationManager::setNeuronMonitors(), setSimulationStartTime(), SimulationManager::setSynapseMonitors(), settingsGrpBox, showGraphsButton, showGraphsButtonClicked(), simErrorCheckTimer, simModeCombo, simModeComboChanged(), simStartButton, simStartButtonToggled(), simStepButton, simStepButtonPressed(), simStopButton, simStopButtonPressed(), simulationManager, spikeStrApp, SpikeStreamMainWindow::spikeStreamApplication, synapseMonitorMap, synapseParamButtonPressed(), synapseParametersDialog, timeStepsPatternText, undockAllButton, undockAllButtonClicked(), viewWeightsButton, viewWeightsButtonPressed(), and SpikeStreamMainWindow::workingDirectory.

SimulationWidget::~SimulationWidget  ) 
 

Destructor.

Definition at line 558 of file SimulationWidget.cpp.

References simulationManager.

SimulationWidget::SimulationWidget const SimulationWidget  )  [private]
 

Declare copy constructor private so it cannot be used inadvertently.


Member Function Documentation

void SimulationWidget::checkSimManagerForErrors  )  [private, slot]
 

Checks the simulation manager to see if there have been any errors in the simulation.

Definition at line 677 of file SimulationWidget.cpp.

References SimulationManager::clearSimulationError(), SimulationManager::getSimulationErrorMsg(), simStopButtonPressed(), SimulationManager::simulationError(), simulationErrorMap, and simulationManager.

Referenced by SimulationWidget().

void SimulationWidget::checkViewWeightsSaved  )  [private, slot]
 

Checks with the simulation manager to see if the weights have been saved for viewing or if there has been an error.

Definition at line 700 of file SimulationWidget.cpp.

References busyDialog, SimulationManager::getViewWeightsSaved(), SpikeStreamMainWindow::reloadConnectionDetails(), SimulationManager::simulationError(), simulationManager, and SpikeStreamMainWindow::spikeStrMainWin.

Referenced by viewWeightsButtonPressed().

void SimulationWidget::checkWeightsLoadState  )  [private, slot]
 

Called by timer to check whether weights have been loaded or not. The timer is restarted if they have not finished loading.

Definition at line 719 of file SimulationWidget.cpp.

References busyDialog, SimulationManager::getWeightsLoaded(), SimulationManager::simulationError(), and simulationManager.

Referenced by reloadWeightsButtonPressed().

void SimulationWidget::checkWeightsSaveState  )  [private, slot]
 

Checks with the simulation manager to see if the weights have been saved or if there has been an error.

Definition at line 737 of file SimulationWidget.cpp.

References busyDialog, SimulationManager::getWeightsSaved(), SpikeStreamMainWindow::reloadConnectionDetails(), SimulationManager::simulationError(), simulationManager, and SpikeStreamMainWindow::spikeStrMainWin.

Referenced by saveWeightsButtonPressed().

void SimulationWidget::dockAllButtonClicked  )  [private, slot]
 

Instructs monitor area to dock all monitor windows.

Definition at line 755 of file SimulationWidget.cpp.

References MonitorArea::dockMonitorWindows(), and monitorArea.

Referenced by SimulationWidget().

void SimulationWidget::fireNeuronButtonPressed  )  [private, slot]
 

Fires a single neuron.

Definition at line 761 of file SimulationWidget.cpp.

References SimulationManager::fireNeuron(), fireNeuronCombo, fireNeuronText, maxFireNeuronID, and simulationManager.

Referenced by SimulationWidget().

void SimulationWidget::fireNeuronComboActivated const QString &  string  )  [private, slot]
 

Gets the first neuron id in the neuron group when the selection is changed in the fire neuron combo.

Definition at line 789 of file SimulationWidget.cpp.

References fireNeuronText, fireNeuronValidator, maxFireNeuronID, minFireNeuronID, and networkDBInterface.

Referenced by initialiseButtonToggled(), setFromNeuronID(), and SimulationWidget().

void SimulationWidget::frameRateComboChanged int   )  [private, slot]
 

Called when the frame rate is changed for live simulation.

Definition at line 872 of file SimulationWidget.cpp.

References frameRateCombo, SimulationManager::setFrameRate(), and simulationManager.

Referenced by initialiseButtonToggled(), and SimulationWidget().

void SimulationWidget::getNeuronGrpNames QStringList &  stringList,
unsigned int  patternWidth,
unsigned int  patternLength
[private]
 

Loads a list of layer names and IDs into a qstringlist Adapted from method in connection properties dialog.

Definition at line 1686 of file SimulationWidget.cpp.

References networkDBInterface.

Referenced by loadDeviceTable(), and loadPatternTable().

SimulationManager * SimulationWidget::getSimulationManager  ) 
 

Returns a reference to the simulation manager. Used so that the neuron application can delete classes in the right order.

Definition at line 573 of file SimulationWidget.cpp.

References simulationManager.

Referenced by SpikeStreamMainWindow::SpikeStreamMainWindow().

unsigned int SimulationWidget::getSimulationStartTime  )  [static]
 

Returns the simulation start time to prevent the deletion of live archives.

Definition at line 580 of file SimulationWidget.cpp.

References simulationStartTime.

Referenced by LoadArchiveDialog::deleteButtonPressed(), and LoadArchiveDialog::renameButtonPressed().

void SimulationWidget::globalParamButtonPressed  )  [private, slot]
 

Shows the global parameters dialog.

Definition at line 893 of file SimulationWidget.cpp.

References globalParametersDialog, and GlobalParametersDialog::loadParameters().

Referenced by SimulationWidget().

void SimulationWidget::hideGraphsButtonClicked  )  [private, slot]
 

Hides the graphs plotting data from neurons or synapses.

Definition at line 900 of file SimulationWidget.cpp.

References neuronMonitorMap, and synapseMonitorMap.

Referenced by hideOpenWindows(), and SimulationWidget().

void SimulationWidget::hideOpenWindows  ) 
 

Hides the windows that are currently visible. FIXME NEED TO KEEP A RECORD SO THAT THE SAME WINDOWS CAN BE SHOWN AGAIN.

Definition at line 587 of file SimulationWidget.cpp.

References MonitorArea::dockMonitorWindows(), globalParametersDialog, hideGraphsButtonClicked(), monitorArea, neuronParametersDialog, noiseParametersDialog, and synapseParametersDialog.

Referenced by SpikeStreamMainWindow::acceleratorKeyPressed().

void SimulationWidget::initialiseButtonToggled bool  on  )  [private, slot]
 

Launches or destroys the simulation and enables or disables the relevant components.

Definition at line 919 of file SimulationWidget.cpp.

References archMonitorTypeCombo, archNameText, StartSimRes::canceled, MonitorArea::connectToManager(), SimulationManager::destroySimulation(), deviceFiringModeCol, deviceIDCol, deviceNeurGrpCol, deviceTable, dockAllButton, fireNeuronButton, fireNeuronCombo, fireNeuronComboActivated(), fireNeuronText, frameRateCombo, frameRateComboChanged(), SimulationManager::getCleanUpError(), SimulationManager::getCleanUpErrorMsg(), SimulationManager::getInitErrorMsg(), hideGraphsButton, ignoreInitialiseButton, ignoreRecordButton, initialiseButton, SimulationManager::initialiseSimulation(), injectNoiseAmntCombo, injectNoiseButton, injectNoiseNeurGrpCombo, SimulationManager::isInitialised(), liveMonitorTypeCombo, loadNeuronGrpNames(), MonitorArea::loadSimulation(), monitorArea, monitorButton, monitorNeuronButton, monitorNeuronCombo, monitorNeuronComboActivated(), monitorNeuronText, monitorSynapseButton, monitorSynapseFromLabel, monitorSynapseFromNumLabel, monitorSynapseToLabel, monitorSynapseToNumLabel, neuronGroupsIsolated(), neuronGrpMonitorCombo, neuronMonitorMap, patternIDCol, patternNeurGrpCol, patternTable, recordButton, reloadWeightsButton, MonitorArea::resetMonitorWindows(), saveWeightsButton, SimulationManager::setGraphicsLoading(), settingsGrpBox, showGraphsButton, simErrorCheckTimer, simModeCombo, simModeComboChanged(), simStartButton, simStepButton, simStopButton, SpikeStreamMainWindow::simulationDestroyed(), simulationErrorMap, SpikeStreamMainWindow::simulationInitialised(), simulationManager, simulationStartTime, spikeStrApp, SpikeStreamMainWindow::spikeStrMainWin, StartSimRes::started, SimulationManager::stopRecording(), synapseMonitorMap, timeStepsPatternText, undockAllButton, viewWeightsButton, and SpikeStreamMainWindow::workingDirectory.

Referenced by SimulationWidget().

void SimulationWidget::injectNoiseButtonPressed  )  [private, slot]
 

Injects the specified amount of noise into a neuron group.

Definition at line 1256 of file SimulationWidget.cpp.

References SimulationManager::injectNoise(), injectNoiseAmntCombo, injectNoiseNeurGrpCombo, and simulationManager.

Referenced by SimulationWidget().

void SimulationWidget::loadDeviceTable  )  [private]
 

Loads a table with all the available patterns. Enables a pattern to be assigned to a suitable neuron group before the simulation starts.

Definition at line 1732 of file SimulationWidget.cpp.

References deviceDBInterface, deviceFiringModeCol, deviceTable, and getNeuronGrpNames().

Referenced by reloadDevices(), reloadNeuronGroups(), and SimulationWidget().

void SimulationWidget::loadNeuronGrpNames QComboBox *  comboBox  )  [private]
 

Loads a list of layer names and IDs into a combo box Adapted from method in connection properties dialog.

Definition at line 1828 of file SimulationWidget.cpp.

References networkDBInterface.

Referenced by initialiseButtonToggled().

void SimulationWidget::loadPatternTable  )  [private]
 

Loads a table with all the available patterns. Enables a pattern to be assigned to a suitable neuron group before the simulation starts.

Definition at line 1860 of file SimulationWidget.cpp.

References getNeuronGrpNames(), patternDBInterface, and patternTable.

Referenced by reloadNeuronGroups(), reloadPatterns(), and SimulationWidget().

void SimulationWidget::monitorButtonPressed  )  [private, slot]
 

Make the associated network monitor visible in the dock area.

Definition at line 1277 of file SimulationWidget.cpp.

References liveMonitorTypeCombo, monitorArea, neuronGrpMonitorCombo, MonitorArea::showAllMonitorWindows(), MonitorArea::showMonitorWindow(), and MonitorArea::undockMonitorWindows().

Referenced by SimulationWidget().

void SimulationWidget::monitorNeuronButtonPressed  )  [private, slot]
 

Monitors a single neuron.

Definition at line 1307 of file SimulationWidget.cpp.

References maxMonitorNeuronID, monitorNeuronCombo, monitorNeuronText, neuronMonitorMap, simulationManager, and SimulationManager::startNeuronMonitoring().

Referenced by SimulationWidget().

void SimulationWidget::monitorNeuronComboActivated const QString &  string  )  [private, slot]
 

Gets the first neuron id in the neuron group when the selection is changed in the monitor neuron combo.

Definition at line 831 of file SimulationWidget.cpp.

References maxMonitorNeuronID, minMonitorNeuronID, monitorNeuronText, monitorNeuronValidator, and networkDBInterface.

Referenced by initialiseButtonToggled(), setFromNeuronID(), and SimulationWidget().

void SimulationWidget::monitorSynapseButtonPressed  )  [private, slot]
 

Called when the button has been pressed to start synapse monitoring.

Definition at line 1384 of file SimulationWidget.cpp.

References monitorSynapseFromNumLabel, monitorSynapseToNumLabel, networkDBInterface, simulationManager, SimulationManager::startSynapseMonitoring(), and synapseMonitorMap.

Referenced by SimulationWidget().

bool SimulationWidget::neuronGroupsIsolated  )  [private]
 

Checks to see if any of the neuron groups are lacking connections with another neuron group. These will never receive spike messages and so will not be updated. Returns true if there are isolated neuron groups or if there has been an error.

Definition at line 1931 of file SimulationWidget.cpp.

References networkDBInterface.

Referenced by initialiseButtonToggled().

void SimulationWidget::neuronParamButtonPressed  )  [private, slot]
 

Shows the neuron parameter dialog.

Definition at line 1485 of file SimulationWidget.cpp.

References NeuronParametersDialog::loadNeuronParameters(), and neuronParametersDialog.

Referenced by SimulationWidget().

void SimulationWidget::noiseParamButtonPressed  )  [private, slot]
 

Shows the noise parameter dialog.

Definition at line 1492 of file SimulationWidget.cpp.

References NoiseParametersDialog::loadParameters(), and noiseParametersDialog.

Referenced by SimulationWidget().

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

Declare assignment private so it cannot be used inadvertently.

void SimulationWidget::recordButtonToggled bool  on  )  [private, slot]
 

Starts or stops the recording of neuron data to the archive.

Definition at line 1499 of file SimulationWidget.cpp.

References ignoreRecordButton, recordButton, simulationManager, SimulationManager::startRecording(), and SimulationManager::stopRecording().

Referenced by SimulationWidget().

void SimulationWidget::reloadConnectionGroups  ) 
 

Reloads the connection groups.

Definition at line 598 of file SimulationWidget.cpp.

References SynapseParametersDialog::loadSynapseParameters(), and synapseParametersDialog.

Referenced by SpikeStreamMainWindow::reloadConnections(), and SpikeStreamMainWindow::reloadEverything().

void SimulationWidget::reloadDevices  ) 
 

Reloads the devices.

Definition at line 604 of file SimulationWidget.cpp.

References loadDeviceTable().

Referenced by SpikeStreamMainWindow::reloadDevices().

void SimulationWidget::reloadNeuronGroups  ) 
 

vCalled whenver the list of neuron groups changes.

Definition at line 610 of file SimulationWidget.cpp.

References loadDeviceTable(), NeuronParametersDialog::loadNeuronParameters(), loadPatternTable(), and neuronParametersDialog.

Referenced by SpikeStreamMainWindow::reloadEverything(), and SpikeStreamMainWindow::reloadNeuronGroups().

void SimulationWidget::reloadPatterns  ) 
 

Called when changes are made to the patterns in the database.

Definition at line 618 of file SimulationWidget.cpp.

References loadPatternTable().

Referenced by SpikeStreamMainWindow::reloadPatterns().

void SimulationWidget::reloadWeightsButtonPressed  )  [private, slot]
 

Reloads weights from the database into the neuron groups. This resets the weights in the simulation without restarting it.

Definition at line 1523 of file SimulationWidget.cpp.

References busyDialog, checkWeightsLoadState(), SimulationManager::loadWeights(), BusyDialog::showDialog(), and simulationManager.

Referenced by SimulationWidget().

void SimulationWidget::saveWeightsButtonPressed  )  [private, slot]
 

Instructs the tasks to save their weights to the database.

Definition at line 1545 of file SimulationWidget.cpp.

References busyDialog, checkWeightsSaveState(), SimulationManager::saveWeights(), BusyDialog::showDialog(), and simulationManager.

Referenced by SimulationWidget().

void SimulationWidget::setFromNeuronID unsigned int  neurGrpID,
unsigned int  fromNeurID
 

Sets the currently active neuron so that the user can choose to fire it for debugging etc.

Definition at line 625 of file SimulationWidget.cpp.

References fireNeuronCombo, fireNeuronComboActivated(), fireNeuronText, monitorNeuronCombo, monitorNeuronComboActivated(), monitorNeuronText, and monitorSynapseFromNumLabel.

Referenced by SpikeStreamMainWindow::setFromNeuronID().

void SimulationWidget::setMonitorArea MonitorArea monAr  ) 
 

Sets the reference to the monitor area that will be used to create monitor windows.

Definition at line 653 of file SimulationWidget.cpp.

References monitorArea.

Referenced by SpikeStreamMainWindow::SpikeStreamMainWindow().

void SimulationWidget::setSimulationStartTime unsigned int  simStartTime  )  [private, slot]
 

Sets the simulation start time - used to prevent the deletion of active archives.

Definition at line 1568 of file SimulationWidget.cpp.

References simulationStartTime.

Referenced by SimulationWidget().

void SimulationWidget::setToNeuronID unsigned int  toNeurID  ) 
 

Sets the active to neuron.

Definition at line 659 of file SimulationWidget.cpp.

References monitorSynapseToNumLabel.

Referenced by SpikeStreamMainWindow::setToNeuronID().

void SimulationWidget::showGraphsButtonClicked  )  [private, slot]
 

Shows all of the graphs monitoring data.

Definition at line 1574 of file SimulationWidget.cpp.

References neuronMonitorMap, and synapseMonitorMap.

Referenced by SimulationWidget().

void SimulationWidget::showOpenWindows  ) 
 

Shows the windows that are currently visible. FIXME NEED TO TRACK WHICH ARE CURRENTLY OPEN.

Definition at line 666 of file SimulationWidget.cpp.

Referenced by SpikeStreamMainWindow::acceleratorKeyPressed().

void SimulationWidget::simModeComboChanged int  currentIndex  )  [private, slot]
 

Called when the combo setting the simulation mode is changed. Instructs the simulation manager to set the simulation mode appropriately.

Definition at line 1595 of file SimulationWidget.cpp.

References SimulationManager::setUpdateMode(), and simulationManager.

Referenced by initialiseButtonToggled(), and SimulationWidget().

void SimulationWidget::simStartButtonToggled bool  on  )  [private, slot]
 

Starts or stops the simulation playing.

Definition at line 1607 of file SimulationWidget.cpp.

References initialiseButton, reloadWeightsButton, saveWeightsButton, simStopButtonPressed(), simulationManager, SimulationManager::startSimulation(), and viewWeightsButton.

Referenced by SimulationWidget().

void SimulationWidget::simStepButtonPressed  )  [private, slot]
 

Steps through the simulation one time step at a time. NOTE this method is pretty slow, probably because of messaging lags in PVM.

Definition at line 1626 of file SimulationWidget.cpp.

References simStartButton, simulationManager, and SimulationManager::stepSimulation().

Referenced by SimulationWidget().

void SimulationWidget::simStopButtonPressed  )  [private, slot]
 

Stops the simulation without destroying it.

Definition at line 1634 of file SimulationWidget.cpp.

References initialiseButton, SimulationManager::isRunning(), reloadWeightsButton, saveWeightsButton, simStartButton, simulationManager, SimulationManager::stopSimulation(), and viewWeightsButton.

Referenced by checkSimManagerForErrors(), simStartButtonToggled(), and SimulationWidget().

void SimulationWidget::synapseParamButtonPressed  )  [private, slot]
 

Shows the synapse parameters dialog.

Definition at line 1649 of file SimulationWidget.cpp.

References SynapseParametersDialog::loadSynapseParameters(), and synapseParametersDialog.

Referenced by SimulationWidget().

void SimulationWidget::undockAllButtonClicked  )  [private, slot]
 

Undocks all monitor windows.

Definition at line 1656 of file SimulationWidget.cpp.

References monitorArea, and MonitorArea::undockMonitorWindows().

Referenced by SimulationWidget().

void SimulationWidget::viewWeightsButtonPressed  )  [private, slot]
 

Instructs the tasks to save their weights to the database.

Definition at line 1662 of file SimulationWidget.cpp.

References busyDialog, checkViewWeightsSaved(), SimulationManager::saveViewWeights(), BusyDialog::showDialog(), and simulationManager.

Referenced by SimulationWidget().


Member Data Documentation

DBInterface* SimulationWidget::archiveDBInterface [private]
 

Definition at line 128 of file SimulationWidget.h.

Referenced by SimulationWidget().

QComboBox* SimulationWidget::archMonitorTypeCombo [private]
 

Definition at line 164 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QLineEdit* SimulationWidget::archNameText [private]
 

Definition at line 163 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

BusyDialog* SimulationWidget::busyDialog [private]
 

Dialog to show when something is happening whose progress cannot be measured.

Definition at line 226 of file SimulationWidget.h.

Referenced by checkViewWeightsSaved(), checkWeightsLoadState(), checkWeightsSaveState(), reloadWeightsButtonPressed(), saveWeightsButtonPressed(), and viewWeightsButtonPressed().

DBInterface* SimulationWidget::deviceDBInterface [private]
 

Definition at line 130 of file SimulationWidget.h.

Referenced by loadDeviceTable(), and SimulationWidget().

int SimulationWidget::deviceFiringModeCol [private]
 

Definition at line 134 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), loadDeviceTable(), and SimulationWidget().

int SimulationWidget::deviceIDCol [private]
 

Definition at line 136 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

int SimulationWidget::deviceNeurGrpCol [private]
 

Definition at line 133 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QTable* SimulationWidget::deviceTable [private]
 

Definition at line 167 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), loadDeviceTable(), and SimulationWidget().

QPushButton* SimulationWidget::dockAllButton [private]
 

Definition at line 222 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QPushButton* SimulationWidget::fireNeuronButton [private]
 

Definition at line 197 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QComboBox* SimulationWidget::fireNeuronCombo [private]
 

Definition at line 195 of file SimulationWidget.h.

Referenced by fireNeuronButtonPressed(), initialiseButtonToggled(), setFromNeuronID(), and SimulationWidget().

QLineEdit* SimulationWidget::fireNeuronText [private]
 

Definition at line 196 of file SimulationWidget.h.

Referenced by fireNeuronButtonPressed(), fireNeuronComboActivated(), initialiseButtonToggled(), setFromNeuronID(), and SimulationWidget().

QIntValidator* SimulationWidget::fireNeuronValidator [private]
 

Definition at line 198 of file SimulationWidget.h.

Referenced by fireNeuronComboActivated(), and SimulationWidget().

QComboBox* SimulationWidget::frameRateCombo [private]
 

Definition at line 191 of file SimulationWidget.h.

Referenced by frameRateComboChanged(), initialiseButtonToggled(), and SimulationWidget().

GlobalParametersDialog* SimulationWidget::globalParametersDialog [private]
 

Definition at line 173 of file SimulationWidget.h.

Referenced by globalParamButtonPressed(), hideOpenWindows(), and SimulationWidget().

QPushButton* SimulationWidget::hideGraphsButton [private]
 

Definition at line 218 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

bool SimulationWidget::ignoreInitialiseButton [private]
 

Sometimes will need to change initialise button's state without doing anything.

Definition at line 150 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

bool SimulationWidget::ignoreRecordButton [private]
 

Sometimes will need to change record button's state without doing anything.

Definition at line 154 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), recordButtonToggled(), and SimulationWidget().

QPushButton* SimulationWidget::initialiseButton [private]
 

Definition at line 177 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), simStartButtonToggled(), simStopButtonPressed(), and SimulationWidget().

QComboBox* SimulationWidget::injectNoiseAmntCombo [private]
 

Definition at line 189 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), injectNoiseButtonPressed(), and SimulationWidget().

QPushButton* SimulationWidget::injectNoiseButton [private]
 

Definition at line 187 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QComboBox* SimulationWidget::injectNoiseNeurGrpCombo [private]
 

Definition at line 188 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), injectNoiseButtonPressed(), and SimulationWidget().

QTabWidget* SimulationWidget::inputTabWidget [private]
 

Definition at line 165 of file SimulationWidget.h.

Referenced by SimulationWidget().

QComboBox* SimulationWidget::liveMonitorTypeCombo [private]
 

Definition at line 185 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), monitorButtonPressed(), and SimulationWidget().

unsigned int SimulationWidget::maxFireNeuronID [private]
 

Definition at line 199 of file SimulationWidget.h.

Referenced by fireNeuronButtonPressed(), and fireNeuronComboActivated().

unsigned int SimulationWidget::maxMonitorNeuronID [private]
 

Definition at line 207 of file SimulationWidget.h.

Referenced by monitorNeuronButtonPressed(), and monitorNeuronComboActivated().

unsigned int SimulationWidget::minFireNeuronID [private]
 

Definition at line 200 of file SimulationWidget.h.

Referenced by fireNeuronComboActivated().

unsigned int SimulationWidget::minMonitorNeuronID [private]
 

Definition at line 208 of file SimulationWidget.h.

Referenced by monitorNeuronComboActivated().

MonitorArea* SimulationWidget::monitorArea [private]
 

Reference to monitor area for docking and undocking of monitor windows.

Definition at line 140 of file SimulationWidget.h.

Referenced by dockAllButtonClicked(), hideOpenWindows(), initialiseButtonToggled(), monitorButtonPressed(), setMonitorArea(), and undockAllButtonClicked().

QPushButton* SimulationWidget::monitorButton [private]
 

Definition at line 186 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QPushButton* SimulationWidget::monitorNeuronButton [private]
 

Definition at line 205 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QComboBox* SimulationWidget::monitorNeuronCombo [private]
 

Definition at line 203 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), monitorNeuronButtonPressed(), setFromNeuronID(), and SimulationWidget().

QLineEdit* SimulationWidget::monitorNeuronText [private]
 

Definition at line 204 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), monitorNeuronButtonPressed(), monitorNeuronComboActivated(), setFromNeuronID(), and SimulationWidget().

QIntValidator* SimulationWidget::monitorNeuronValidator [private]
 

Definition at line 206 of file SimulationWidget.h.

Referenced by monitorNeuronComboActivated(), and SimulationWidget().

QPushButton* SimulationWidget::monitorSynapseButton [private]
 

Definition at line 215 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QLabel* SimulationWidget::monitorSynapseFromLabel [private]
 

Definition at line 211 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QLabel* SimulationWidget::monitorSynapseFromNumLabel [private]
 

Definition at line 213 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), monitorSynapseButtonPressed(), setFromNeuronID(), and SimulationWidget().

QLabel* SimulationWidget::monitorSynapseToLabel [private]
 

Definition at line 212 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QLabel* SimulationWidget::monitorSynapseToNumLabel [private]
 

Definition at line 214 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), monitorSynapseButtonPressed(), setToNeuronID(), and SimulationWidget().

DBInterface* SimulationWidget::networkDBInterface [private]
 

Definition at line 127 of file SimulationWidget.h.

Referenced by fireNeuronComboActivated(), getNeuronGrpNames(), loadNeuronGrpNames(), monitorNeuronComboActivated(), monitorSynapseButtonPressed(), neuronGroupsIsolated(), and SimulationWidget().

QComboBox* SimulationWidget::neuronGrpMonitorCombo [private]
 

Definition at line 184 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), monitorButtonPressed(), and SimulationWidget().

map<unsigned int, MonitorDataPlotter*> SimulationWidget::neuronMonitorMap [private]
 

Map holding all of the monitors plotting neuron data.

Definition at line 236 of file SimulationWidget.h.

Referenced by hideGraphsButtonClicked(), initialiseButtonToggled(), monitorNeuronButtonPressed(), showGraphsButtonClicked(), and SimulationWidget().

NeuronParametersDialog* SimulationWidget::neuronParametersDialog [private]
 

Definition at line 171 of file SimulationWidget.h.

Referenced by hideOpenWindows(), neuronParamButtonPressed(), reloadNeuronGroups(), and SimulationWidget().

NoiseParametersDialog* SimulationWidget::noiseParametersDialog [private]
 

Definition at line 174 of file SimulationWidget.h.

Referenced by hideOpenWindows(), noiseParamButtonPressed(), and SimulationWidget().

DBInterface* SimulationWidget::patternDBInterface [private]
 

Definition at line 129 of file SimulationWidget.h.

Referenced by loadPatternTable(), and SimulationWidget().

int SimulationWidget::patternIDCol [private]
 

Definition at line 137 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

int SimulationWidget::patternNeurGrpCol [private]
 

Definition at line 135 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QTable* SimulationWidget::patternTable [private]
 

Definition at line 166 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), loadPatternTable(), and SimulationWidget().

QPushButton* SimulationWidget::recordButton [private]
 

Definition at line 183 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), recordButtonToggled(), and SimulationWidget().

QPushButton* SimulationWidget::reloadWeightsButton [private]
 

Definition at line 178 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), simStartButtonToggled(), simStopButtonPressed(), and SimulationWidget().

QPushButton* SimulationWidget::saveWeightsButton [private]
 

Definition at line 179 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), simStartButtonToggled(), simStopButtonPressed(), and SimulationWidget().

QGroupBox* SimulationWidget::settingsGrpBox [private]
 

Definition at line 162 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QPushButton* SimulationWidget::showGraphsButton [private]
 

Definition at line 219 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QTimer* SimulationWidget::simErrorCheckTimer [private]
 

Timer to check simulation manager for errors whilst simulation is running.

Definition at line 229 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QComboBox* SimulationWidget::simModeCombo [private]
 

Definition at line 192 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QPushButton* SimulationWidget::simStartButton [private]
 

Definition at line 180 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), simStepButtonPressed(), simStopButtonPressed(), and SimulationWidget().

QPushButton* SimulationWidget::simStepButton [private]
 

Definition at line 181 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QPushButton* SimulationWidget::simStopButton [private]
 

Definition at line 182 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

map<QString*, bool, qstringCompare> SimulationWidget::simulationErrorMap [private]
 

Map of the errors received from the simulation manager designed for error filtering.

Definition at line 233 of file SimulationWidget.h.

Referenced by checkSimManagerForErrors(), and initialiseButtonToggled().

SimulationManager* SimulationWidget::simulationManager [private]
 

Reference to simulation manager to control simulation.

Definition at line 143 of file SimulationWidget.h.

Referenced by checkSimManagerForErrors(), checkViewWeightsSaved(), checkWeightsLoadState(), checkWeightsSaveState(), fireNeuronButtonPressed(), frameRateComboChanged(), getSimulationManager(), initialiseButtonToggled(), injectNoiseButtonPressed(), monitorNeuronButtonPressed(), monitorSynapseButtonPressed(), recordButtonToggled(), reloadWeightsButtonPressed(), saveWeightsButtonPressed(), simModeComboChanged(), simStartButtonToggled(), simStepButtonPressed(), simStopButtonPressed(), SimulationWidget(), viewWeightsButtonPressed(), and ~SimulationWidget().

unsigned int SimulationWidget::simulationStartTime = 0 [static, private]
 

Start time of simulation. Used by the load archive dialog to prevent deletion of archives that are currently being accessed by simulation.

Definition at line 159 of file SimulationWidget.h.

Referenced by getSimulationStartTime(), initialiseButtonToggled(), and setSimulationStartTime().

SpikeStreamApplication* SimulationWidget::spikeStrApp [private]
 

Short version of reference to QApplication for processing events.

Definition at line 146 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

map<unsigned int*, MonitorDataPlotter*, synapseKeyCompare> SimulationWidget::synapseMonitorMap [private]
 

Map holding all of the monitors plotting synapse data.

Definition at line 239 of file SimulationWidget.h.

Referenced by hideGraphsButtonClicked(), initialiseButtonToggled(), monitorSynapseButtonPressed(), showGraphsButtonClicked(), and SimulationWidget().

SynapseParametersDialog* SimulationWidget::synapseParametersDialog [private]
 

Definition at line 172 of file SimulationWidget.h.

Referenced by hideOpenWindows(), reloadConnectionGroups(), SimulationWidget(), and synapseParamButtonPressed().

QLineEdit* SimulationWidget::timeStepsPatternText [private]
 

Definition at line 168 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QPushButton* SimulationWidget::undockAllButton [private]
 

Definition at line 223 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), and SimulationWidget().

QPushButton* SimulationWidget::viewWeightsButton [private]
 

Definition at line 190 of file SimulationWidget.h.

Referenced by initialiseButtonToggled(), simStartButtonToggled(), simStopButtonPressed(), and SimulationWidget().


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