#include <NetworkMonitor.h>
Public Member Functions | |
| NetworkMonitor (NeuronGroup, QWidget *parent) | |
| NetworkMonitor (NeuronGroup, DBInterface *dbInter, QWidget *parent) | |
| void | reset () |
| ~NetworkMonitor () | |
Protected Member Functions | |
| void | initializeGL () |
| void | paintGL () |
| void | resizeGL (int width, int height) |
Private Member Functions | |
| void | checkOpenGLErrors () |
| NetworkMonitor (const NetworkMonitor &) | |
| NetworkMonitor | operator= (const NetworkMonitor &) |
| void | printPositionMaps () |
| void | processFiringNeuronList () |
| void | processSpikeList () |
| void | setPointSize () |
| void | setTimeStep (unsigned int) |
| void | swapMaps () |
Private Attributes | |
| QFont * | arialFont |
| map< unsigned int, bool > * | bufferMapPointer |
| map< unsigned int, bool > * | drawingMapPointer |
| map< unsigned int, bool > | firingNeuronMap1 |
| map< unsigned int, bool > | firingNeuronMap2 |
| unsigned int | frameHeight |
| unsigned int | frameWidth |
| bool | liveMonitoring |
| bool | map1Active |
| unsigned int | messageTimeStep |
| DBInterface * | networkDBInterface |
| unsigned int | neuronGrpID |
| unsigned int | neuronGrpLength |
| int | neuronGrpTaskID |
| unsigned int | neuronGrpWidth |
| map< unsigned int, GLfloat > | neuronXPosMap |
| map< unsigned int, GLfloat > | neuronYPosMap |
| unsigned int | numberOfNeurons |
| unsigned int | numberOfSpikes |
| GLfloat | pointSize |
| GLfloat | scaleFactorLength |
| GLfloat | scaleFactorWidth |
| SpikeStreamApplication * | spikeStrApp |
| unsigned int | startNeuronID |
| unsigned int * | unpackArray |
| unsigned int | unpkFromNeurID |
Static Private Attributes | |
| static GLfloat | marginL = 5.0f |
| static GLfloat | marginW = 5.0f |
Friends | |
| class | ArchiveManager |
| class | MonitorWindow |
| class | NetworkDataXmlHandler |
| class | SimulationManager |
Definition at line 51 of file NetworkMonitor.h.
|
||||||||||||||||
|
Constructor for live simulation monitoring. Definition at line 46 of file NetworkMonitor.cpp. References arialFont, bufferMapPointer, drawingMapPointer, firingNeuronMap1, firingNeuronMap2, frameHeight, frameWidth, NeuronGroup::length, liveMonitoring, map1Active, marginL, marginW, messageTimeStep, networkDBInterface, NeuronGroup::neuronGrpID, neuronGrpID, neuronGrpLength, neuronGrpWidth, neuronXPosMap, neuronYPosMap, numberOfNeurons, numberOfSpikes, scaleFactorLength, scaleFactorWidth, setPointSize(), spikeStrApp, SpikeStreamMainWindow::spikeStreamApplication, startNeuronID, unpackArray, and NeuronGroup::width. |
|
||||||||||||
|
Constructor for archive monitoring. Definition at line 204 of file NetworkMonitor.cpp. References arialFont, bufferMapPointer, drawingMapPointer, firingNeuronMap1, firingNeuronMap2, frameHeight, frameWidth, NeuronGroup::length, liveMonitoring, map1Active, marginL, marginW, messageTimeStep, NeuronGroup::neuronGrpID, neuronGrpID, neuronGrpLength, neuronGrpWidth, neuronXPosMap, neuronYPosMap, scaleFactorLength, scaleFactorWidth, setPointSize(), spikeStrApp, SpikeStreamMainWindow::spikeStreamApplication, NeuronGroup::startNeuronID, and NeuronGroup::width. |
|
|
Destructor. Definition at line 259 of file NetworkMonitor.cpp. References arialFont, liveMonitoring, and unpackArray. |
|
|
Declare copy constructor private so it cannot be used inadvertently. |
|
|
Checks for errors in OpenGL. Definition at line 411 of file NetworkMonitor.cpp. Referenced by paintGL(), and resizeGL(). |
|
|
Called to initialise OpenGL. Definition at line 292 of file NetworkMonitor.cpp. References liveMonitoring, and spikeStrApp. |
|
|
Declare assignment private so it cannot be used inadvertently. |
|
|
Called to paint OpenGL. Definition at line 315 of file NetworkMonitor.cpp. References arialFont, checkOpenGLErrors(), drawingMapPointer, marginL, marginW, messageTimeStep, neuronXPosMap, neuronYPosMap, pointSize, scaleFactorLength, scaleFactorWidth, and spikeStrApp. |
|
|
Debug method that prints out the mapping between neuron id and position. Definition at line 422 of file NetworkMonitor.cpp. References neuronXPosMap, and neuronYPosMap. |
|
|
Processes a list of firing neurons from the task simulating a neuron group. Definition at line 435 of file NetworkMonitor.cpp. References messageTimeStep, neuronGrpID, numberOfSpikes, swapMaps(), and unpackArray. |
|
|
Processes a list of spikes from the task simulating the neuron group that is being monitored. Definition at line 479 of file NetworkMonitor.cpp. References messageTimeStep, neuronGrpID, numberOfSpikes, startNeuronID, swapMaps(), unpackArray, and unpkFromNeurID. |
|
|
Resets the network monitor, possibly at the end of a simulation or archive display. Definition at line 278 of file NetworkMonitor.cpp. References firingNeuronMap1, firingNeuronMap2, messageTimeStep, and numberOfSpikes. |
|
||||||||||||
|
Called when frame is resized. Definition at line 357 of file NetworkMonitor.cpp. References checkOpenGLErrors(), frameHeight, frameWidth, marginL, marginW, neuronGrpLength, neuronGrpWidth, scaleFactorLength, scaleFactorWidth, setPointSize(), and spikeStrApp. |
|
|
Use scaleFactorWidth to set point size appropriately. Since neuron groups could be rectangular, but vertexes are always square it is probably too much effort trying to make this perfect. Definition at line 530 of file NetworkMonitor.cpp. References pointSize, and scaleFactorWidth. Referenced by NetworkMonitor(), and resizeGL(). |
|
|
Sets the current timestep. Definition at line 540 of file NetworkMonitor.cpp. References messageTimeStep. |
|
|
Locks the application to prevent processing of events that triggers the draw method then swaps the reference so that it points to a different active map. Definition at line 547 of file NetworkMonitor.cpp. References bufferMapPointer, drawingMapPointer, firingNeuronMap1, firingNeuronMap2, map1Active, and spikeStrApp. Referenced by processFiringNeuronList(), and processSpikeList(). |
|
|
Definition at line 64 of file NetworkMonitor.h. |
|
|
Definition at line 62 of file NetworkMonitor.h. |
|
|
Definition at line 63 of file NetworkMonitor.h. |
|
|
Definition at line 61 of file NetworkMonitor.h. |
|
|
Font for displaying the timestep. Definition at line 151 of file NetworkMonitor.h. Referenced by NetworkMonitor(), paintGL(), and ~NetworkMonitor(). |
|
|
Pointer to the map used to load data. Definition at line 109 of file NetworkMonitor.h. Referenced by NetworkMonitor(), and swapMaps(). |
|
|
Pointer to the map used to draw the current display. Definition at line 106 of file NetworkMonitor.h. Referenced by NetworkMonitor(), paintGL(), and swapMaps(). |
|
|
First map to hold the firing neurons. Use two maps so that one can be loaded by another process whilst another is being used to produce the graphical display. The active map is swapped when loading is complete. Use a map to easily get rid of duplicates. Definition at line 97 of file NetworkMonitor.h. Referenced by NetworkMonitor(), reset(), and swapMaps(). |
|
|
Second map to hold the firing neurons. Use two maps so that one can be loaded by another process whilst another is being used to produce the graphical display. The active map is swapped when loading is complete. Use a map to easily get rid of duplicates. Definition at line 103 of file NetworkMonitor.h. Referenced by NetworkMonitor(), reset(), and swapMaps(). |
|
|
Definition at line 130 of file NetworkMonitor.h. Referenced by NetworkMonitor(), and resizeGL(). |
|
|
Definition at line 129 of file NetworkMonitor.h. Referenced by NetworkMonitor(), and resizeGL(). |
|
|
Controls whether it is displaying live data from a simulation or playback from an archive. Definition at line 85 of file NetworkMonitor.h. Referenced by initializeGL(), NetworkMonitor(), and ~NetworkMonitor(). |
|
|
Records which of the maps is currently active. Definition at line 112 of file NetworkMonitor.h. Referenced by NetworkMonitor(), and swapMaps(). |
|
|
Vertical margin around drawing area Definition at line 154 of file NetworkMonitor.h. Referenced by NetworkMonitor(), paintGL(), and resizeGL(). |
|
|
Horizontal margin around drawing area Definition at line 157 of file NetworkMonitor.h. Referenced by NetworkMonitor(), paintGL(), and resizeGL(). |
|
|
The current time step of the message. Definition at line 148 of file NetworkMonitor.h. Referenced by NetworkMonitor(), paintGL(), processFiringNeuronList(), processSpikeList(), reset(), and setTimeStep(). |
|
|
Reference to database handlling class. Definition at line 77 of file NetworkMonitor.h. Referenced by NetworkMonitor(). |
|
|
Definition at line 119 of file NetworkMonitor.h. Referenced by NetworkMonitor(), processFiringNeuronList(), and processSpikeList(). |
|
|
Definition at line 126 of file NetworkMonitor.h. Referenced by NetworkMonitor(), and resizeGL(). |
|
|
Definition at line 120 of file NetworkMonitor.h. |
|
|
Definition at line 125 of file NetworkMonitor.h. Referenced by NetworkMonitor(), and resizeGL(). |
|
|
Mapping between a neuron id and an x position in the widget. Definition at line 142 of file NetworkMonitor.h. Referenced by NetworkMonitor(), paintGL(), and printPositionMaps(). |
|
|
Mapping between a neuron id and a y position in the widget. Definition at line 145 of file NetworkMonitor.h. Referenced by NetworkMonitor(), paintGL(), and printPositionMaps(). |
|
|
Definition at line 122 of file NetworkMonitor.h. Referenced by NetworkMonitor(). |
|
|
Number of spikes or firing neurons in the message. Definition at line 115 of file NetworkMonitor.h. Referenced by NetworkMonitor(), processFiringNeuronList(), processSpikeList(), and reset(). |
|
|
Size of the vertex representing a neuron firing or a spike. Definition at line 139 of file NetworkMonitor.h. Referenced by paintGL(), and setPointSize(). |
|
|
Factor used to scale the y positions depending on the frame size. Definition at line 136 of file NetworkMonitor.h. Referenced by NetworkMonitor(), paintGL(), and resizeGL(). |
|
|
Factor used to scale the x positions depending on the frame size. Definition at line 133 of file NetworkMonitor.h. Referenced by NetworkMonitor(), paintGL(), resizeGL(), and setPointSize(). |
|
|
Short version of reference to the main application to halt the processing of events. Definition at line 81 of file NetworkMonitor.h. Referenced by initializeGL(), NetworkMonitor(), paintGL(), resizeGL(), and swapMaps(). |
|
|
Definition at line 121 of file NetworkMonitor.h. Referenced by NetworkMonitor(), and processSpikeList(). |
|
|
Array to unpack the spikes into. Definition at line 88 of file NetworkMonitor.h. Referenced by NetworkMonitor(), processFiringNeuronList(), processSpikeList(), and ~NetworkMonitor(). |
|
|
Define integer here to extract from neuron id. Definition at line 91 of file NetworkMonitor.h. Referenced by processSpikeList(). |
1.4.4