SpikeStream Application Library  0.2
NetworksBuilder.h
Go to the documentation of this file.
00001 #ifndef NETWORKSBUILDER_H
00002 #define NETWORKSBUILDER_H
00003 
00004 //SpikeStream includes
00005 #include "ArchiveDao.h"
00006 #include "NetworkDao.h"
00007 #include "NetworkDaoThread.h"
00008 using namespace spikestream;
00009 
00010 
00011 namespace spikestream {
00012 
00014         class NetworksBuilder {
00015                 public:
00016                         NetworksBuilder();
00017                         virtual ~NetworksBuilder();
00018                         bool isError() { return error; }
00019                         QString getErrorMessage() { return errorMessage; }
00020 
00021                 protected:
00022                         //====================  VARIABLES  ==========================
00024                         NetworkDao* networkDao;
00025 
00027                         ArchiveDao* archiveDao;
00028 
00029 
00030                         //=====================  METHODS  ===========================
00031                         virtual void addTraining(unsigned int neuronID, QString trainingStr, bool output);
00032                         virtual void addConnectionGroup(unsigned int networkID, ConnectionGroup& connGrp);
00033                         virtual void runThread(NetworkDaoThread& thread);
00034                         void clearError();
00035                         void setError(const QString& errMsg);
00036 
00037 
00038                 private:
00039                         //=====================  VARIABLES  =========================
00041                         bool error;
00042 
00044                         QString errorMessage;
00045                 };
00046 
00047 }
00048 
00049 #endif//NETWORKSBUILDER_H
00050 
 All Classes Files Functions Variables Typedefs Friends Defines