SpikeStream Library
0.2
|
00001 #ifndef CONNECTIONGROUPINFO_H 00002 #define CONNECTIONGROUPINFO_H 00003 00004 //SpikeStream includes 00005 #include "SynapseType.h" 00006 00007 //Qt includes 00008 #include <QString> 00009 #include <QHash> 00010 00011 namespace spikestream { 00012 00015 class ConnectionGroupInfo { 00016 public: 00017 ConnectionGroupInfo(); 00018 ConnectionGroupInfo(unsigned int id, const QString& desc, unsigned int fromID, unsigned int toID, QHash<QString, double> paramMap, const SynapseType& synapseType); 00019 ConnectionGroupInfo(const ConnectionGroupInfo& conGrpInfo); 00020 ~ConnectionGroupInfo(); 00021 ConnectionGroupInfo& operator=(const ConnectionGroupInfo& rhs); 00022 00023 unsigned int getID() const { return id; } 00024 QString getDescription() const { return description; } 00025 unsigned int getFromNeuronGroupID() const { return fromNeuronGroupID; } 00026 unsigned int getToNeuronGroupID() const { return toNeuronGroupID; } 00027 SynapseType getSynapseType() { return synapseType; } 00028 unsigned int getSynapseTypeID() const { return synapseType.getID(); } 00029 double getParameter(const QString& parameterName); 00030 QHash<QString, double> getParameterMap() { return parameterMap; } 00031 QString getParameterXML(); 00032 bool hasParameter(const QString& parameterName); 00033 void setDescription(const QString& description){ this->description = description; } 00034 void setFromNeuronGroupID(unsigned id) { this->fromNeuronGroupID = id; } 00035 void setToNeuronGroupID(unsigned id) { this->toNeuronGroupID = id; } 00036 void setID(unsigned int id) { this->id = id; } 00037 00038 private: 00041 unsigned int id; 00042 00044 QString description; 00045 00047 unsigned int fromNeuronGroupID; 00048 00050 unsigned int toNeuronGroupID; 00051 00053 SynapseType synapseType; 00054 00056 QHash<QString, double> parameterMap; 00057 00058 }; 00059 00060 } 00061 00062 #endif//CONNECTIONGROUPINFO_H 00063 00064