SpikeStream Library
0.2
|
#include <NetworkDaoThread.h>
Public Member Functions | |
NetworkDaoThread (const DBInfo &dbInfo, const QString &name="Unnamed") | |
~NetworkDaoThread () | |
void | clearError () |
int | getNumberOfCompletedSteps () |
int | getTotalNumberOfSteps () |
bool | isError () |
QString | getErrorMessage () |
QString | getProgressMessage () |
void | prepareAddConnectionGroup (unsigned int networkID, ConnectionGroup *connGrp) |
void | prepareAddConnectionGroups (unsigned int networkID, QList< ConnectionGroup * > &connGrpList) |
void | prepareAddNeuronGroup (unsigned int networkID, NeuronGroup *neurGrp) |
void | prepareAddNeuronGroups (unsigned int networkID, QList< NeuronGroup * > &neurGrpList) |
void | prepareDeleteConnectionGroups (unsigned int networkID, QList< unsigned int > &conGrpList) |
void | prepareDeleteNeuronGroups (unsigned int networkID, QList< unsigned int > &neurGrpList) |
void | prepareLoadConnections (const QList< ConnectionGroup * > &connGrpList) |
void | prepareLoadConnections (ConnectionGroup *connGrp) |
void | prepareLoadNeurons (const QList< NeuronGroup * > &neurGrpList) |
void | prepareLoadNeurons (NeuronGroup *neurGrp) |
void | run () |
void | startDeleteNetwork (unsigned networkID) |
void | startSaveNetwork (unsigned networkID, QList< NeuronGroup * > newNeuronGroups, QList< ConnectionGroup * > newConnectionGroups, QList< unsigned > deleteNeuronGroupIDs, QList< unsigned > deleteConnectionGroupIDs, QList< ConnectionGroup * > volatileConnectionGroups) |
void | startSaveTempWeights (QList< ConnectionGroup * > &connectionGroupList) |
void | stop () |
Thread-based wrapper for the SpikeStreamNetwork database that handles heavy tasks that may take several minutes.
Definition at line 19 of file NetworkDaoThread.h.
NetworkDaoThread::NetworkDaoThread | ( | const DBInfo & | dbInfo, |
const QString & | name = "Unnamed" |
||
) |
Switches on output of more debugging information
Constructor
Definition at line 24 of file NetworkDaoThread.cpp.
Destructor
Definition at line 39 of file NetworkDaoThread.cpp.
void NetworkDaoThread::clearError | ( | ) |
Resets the error state
Definition at line 170 of file NetworkDaoThread.cpp.
QString spikestream::NetworkDaoThread::getErrorMessage | ( | ) | [inline] |
Definition at line 29 of file NetworkDaoThread.h.
int spikestream::NetworkDaoThread::getNumberOfCompletedSteps | ( | ) | [inline] |
Definition at line 26 of file NetworkDaoThread.h.
QString spikestream::NetworkDaoThread::getProgressMessage | ( | ) | [inline] |
Definition at line 30 of file NetworkDaoThread.h.
int spikestream::NetworkDaoThread::getTotalNumberOfSteps | ( | ) | [inline] |
Definition at line 27 of file NetworkDaoThread.h.
bool spikestream::NetworkDaoThread::isError | ( | ) | [inline] |
Definition at line 28 of file NetworkDaoThread.h.
void NetworkDaoThread::prepareAddConnectionGroup | ( | unsigned int | networkID, |
ConnectionGroup * | connGrp | ||
) |
Prepares to add a connection group to the database. This task is executed when the thread runs.
Definition at line 48 of file NetworkDaoThread.cpp.
void NetworkDaoThread::prepareAddConnectionGroups | ( | unsigned int | networkID, |
QList< ConnectionGroup * > & | connGrpList | ||
) |
Prepares to add a list of connection groups to the database. This task is executed when the thread runs.
Definition at line 57 of file NetworkDaoThread.cpp.
void NetworkDaoThread::prepareAddNeuronGroup | ( | unsigned int | networkID, |
NeuronGroup * | neurGrp | ||
) |
Prepares to add a neuron group to the database. This task is executed when the thread runs.
Definition at line 71 of file NetworkDaoThread.cpp.
void NetworkDaoThread::prepareAddNeuronGroups | ( | unsigned int | networkID, |
QList< NeuronGroup * > & | neurGrpList | ||
) |
Prepares to add a list of neuron groups
Definition at line 80 of file NetworkDaoThread.cpp.
void NetworkDaoThread::prepareDeleteConnectionGroups | ( | unsigned int | networkID, |
QList< unsigned int > & | conGrpList | ||
) |
Prepares to delete connection groups with the specified ids
Definition at line 94 of file NetworkDaoThread.cpp.
void NetworkDaoThread::prepareDeleteNeuronGroups | ( | unsigned int | networkID, |
QList< unsigned int > & | neurGrpList | ||
) |
Prepares to delete neuron groups with the specified ids
Definition at line 109 of file NetworkDaoThread.cpp.
void NetworkDaoThread::prepareLoadConnections | ( | const QList< ConnectionGroup * > & | connGrpList | ) |
Prepares to load connections for a list of connection groups. This task is executed when the thread runs.
Definition at line 124 of file NetworkDaoThread.cpp.
void NetworkDaoThread::prepareLoadConnections | ( | ConnectionGroup * | connGrp | ) |
Prepares to load connections for a single connection group. This task is executed when the thread runs.
Definition at line 135 of file NetworkDaoThread.cpp.
void NetworkDaoThread::prepareLoadNeurons | ( | const QList< NeuronGroup * > & | neurGrpList | ) |
Prepares to load a list of neuron groups. This task is executed when the thread runs.
Definition at line 147 of file NetworkDaoThread.cpp.
void NetworkDaoThread::prepareLoadNeurons | ( | NeuronGroup * | neurGrp | ) |
Prepares to load neurons for a single neuron group. This task is executed when the thread runs.
Definition at line 158 of file NetworkDaoThread.cpp.
void NetworkDaoThread::run | ( | ) |
Run method inherited from QThread. Carries out the task that has been prepared.
Definition at line 178 of file NetworkDaoThread.cpp.
void NetworkDaoThread::startDeleteNetwork | ( | unsigned | networkID | ) |
Starts a thread to delete the specified network
Definition at line 242 of file NetworkDaoThread.cpp.
void NetworkDaoThread::startSaveNetwork | ( | unsigned | networkID, |
QList< NeuronGroup * > | newNeuronGroups, | ||
QList< ConnectionGroup * > | newConnectionGroups, | ||
QList< unsigned > | deleteNeuronGroupIDs, | ||
QList< unsigned > | deleteConnectionGroupIDs, | ||
QList< ConnectionGroup * > | volatileConnectionGroups | ||
) |
Saves network using supplied lists of neuron and connection groups to add and delete
Definition at line 266 of file NetworkDaoThread.cpp.
void NetworkDaoThread::startSaveTempWeights | ( | QList< ConnectionGroup * > & | connectionGroupList | ) |
Saves temp weights to weights field in database
Definition at line 283 of file NetworkDaoThread.cpp.
void NetworkDaoThread::stop | ( | ) |
Stops the current task
Definition at line 297 of file NetworkDaoThread.cpp.