SpikeStream Library  0.2
spikestream::NetworkDaoThread Class Reference

#include <NetworkDaoThread.h>

Inheritance diagram for spikestream::NetworkDaoThread:
spikestream::NetworkDao spikestream::AbstractDao

List of all members.

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 ()

Detailed Description

Thread-based wrapper for the SpikeStreamNetwork database that handles heavy tasks that may take several minutes.

Definition at line 19 of file NetworkDaoThread.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

Resets the error state

Definition at line 170 of file NetworkDaoThread.cpp.

Definition at line 29 of file NetworkDaoThread.h.

Definition at line 30 of file NetworkDaoThread.h.

Definition at line 27 of file NetworkDaoThread.h.

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.

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.

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.

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.

Stops the current task

Definition at line 297 of file NetworkDaoThread.cpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Defines