SpikeStream Library
0.2
|
00001 //SpikeStream includes 00002 #include "SynapseType.h" 00003 using namespace spikestream; 00004 00005 //Qt includes 00006 #include <QDebug> 00007 00008 00010 SynapseType::SynapseType(){ 00011 id = 0; 00012 description = "Undescribed"; 00013 parameterTableName = "Invalid parameter table name."; 00014 classLibraryName = "Invalid class library name."; 00015 } 00016 00017 00019 SynapseType::SynapseType(unsigned int synapseTypeID, const QString& description, const QString& paramTableName, const QString& classLibraryName){ 00020 this->id = synapseTypeID; 00021 this->description = description; 00022 this->parameterTableName = paramTableName; 00023 this->classLibraryName = classLibraryName; 00024 } 00025 00026 00028 SynapseType::SynapseType(const SynapseType& synType){ 00029 this->id = synType.id; 00030 this->description = synType.description; 00031 this->parameterTableName = synType.parameterTableName; 00032 this->classLibraryName = synType.classLibraryName; 00033 this->parameterInfoList = synType.parameterInfoList; 00034 } 00035 00036 00038 SynapseType::~SynapseType(){ 00039 } 00040 00041 00042 /*----------------------------------------------------------*/ 00043 /*----- PUBLIC METHODS -----*/ 00044 /*----------------------------------------------------------*/ 00045 00047 unsigned int SynapseType::getID() const { 00048 return id; 00049 } 00050 00051 00053 QString SynapseType::getDescription() const { 00054 return description; 00055 } 00056 00057 00059 QString SynapseType::getParameterTableName() const { 00060 return parameterTableName; 00061 } 00062 00063 00065 QString SynapseType::getClassLibaryName() const { 00066 return classLibraryName; 00067 } 00068 00069 00071 SynapseType& SynapseType::operator=(const SynapseType& rhs){ 00072 //Check for self assignment 00073 if(this == &rhs) 00074 return *this; 00075 00076 this->id = rhs.id; 00077 this->description = rhs.description; 00078 this->parameterTableName = rhs.parameterTableName; 00079 this->classLibraryName = rhs.classLibraryName; 00080 this->parameterInfoList = rhs.parameterInfoList; 00081 00082 return *this; 00083 } 00084 00085 00087 QList<ParameterInfo> SynapseType::getParameterInfoList() const{ 00088 return parameterInfoList; 00089 } 00090 00091 00093 void SynapseType::setParameterInfoList(QList<ParameterInfo>& parameterInfoList){ 00094 this->parameterInfoList = parameterInfoList; 00095 } 00096 00097