SpikeStream Library  0.2
NeuronType.cpp
Go to the documentation of this file.
00001 //SpikeStream includes
00002 #include "NeuronType.h"
00003 using namespace spikestream;
00004 
00005 //Qt includes
00006 #include <QDebug>
00007 
00009 NeuronType::NeuronType(){
00010         id = 0;
00011         description = "Undescribed";
00012         parameterTableName = "Invalid parameter table name.";
00013         classLibraryName = "Invalid class library name.";
00014 }
00015 
00016 
00018 NeuronType::NeuronType(unsigned int neuronTypeID, const QString& description, const QString& paramTableName, const QString& classLibraryName){
00019         this->id = neuronTypeID;
00020         this->description = description;
00021         this->parameterTableName = paramTableName;
00022         this->classLibraryName = classLibraryName;
00023 }
00024 
00025 
00027 NeuronType::NeuronType(const NeuronType& neurType){
00028         this->id = neurType.id;
00029         this->description = neurType.description;
00030         this->parameterTableName = neurType.parameterTableName;
00031         this->classLibraryName = neurType.classLibraryName;
00032         this->parameterInfoList = neurType.parameterInfoList;
00033 }
00034 
00035 
00037 NeuronType& NeuronType::operator=(const NeuronType& rhs){
00038         //Check for self assignment
00039         if(this == &rhs)
00040                 return *this;
00041 
00042         this->id = rhs.id;
00043         this->description = rhs.description;
00044         this->parameterTableName = rhs.parameterTableName;
00045         this->classLibraryName = rhs.classLibraryName;
00046         this->parameterInfoList = rhs.parameterInfoList;
00047 
00048         return *this;
00049 }
00050 
00051 
00053 NeuronType::~NeuronType(){
00054 }
00055 
00056 
00057 /*----------------------------------------------------------*/
00058 /*-----                PUBLIC METHODS                  -----*/
00059 /*----------------------------------------------------------*/
00060 
00062 unsigned int NeuronType::getID() const {
00063         return id;
00064 }
00065 
00066 
00068 QString NeuronType::getDescription() const {
00069         return description;
00070 }
00071 
00072 
00074 QString NeuronType::getParameterTableName() const {
00075         return parameterTableName;
00076 }
00077 
00078 
00080 QList<ParameterInfo> NeuronType::getParameterInfoList() const{
00081         return parameterInfoList;
00082 }
00083 
00084 
00086 QString NeuronType::getClassLibaryName() const{
00087         return classLibraryName;
00088 }
00089 
00090 
00092 void NeuronType::setParameterInfoList(QList<ParameterInfo>& parameterInfoList){
00093         this->parameterInfoList = parameterInfoList;
00094 }
00095 
00096 
 All Classes Files Functions Variables Typedefs Defines