SpikeStream Application Library  0.2
spikestream::NeuronParametersModel Class Reference

#include <NeuronParametersModel.h>

List of all members.

Public Member Functions

 NeuronParametersModel (unsigned int neuronTypeID)
 ~NeuronParametersModel ()
int columnCount (const QModelIndex &parent=QModelIndex()) const
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
NeuronGroupInfo getNeuronGroupInfo (int row)
QList< ParameterInfo > getParameterInfoList ()
QHash< QString, double > getParameterValues (int row)
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
void reload ()
int rowCount (const QModelIndex &parent=QModelIndex()) const
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)

Detailed Description

Model of the current neuron parameters for the current network. Synchronized with the database. NOTE: Not thread safe. NOTE: Can only handle parameters or a single type of neuron.

Definition at line 17 of file NeuronParametersModel.h.


Constructor & Destructor Documentation

NeuronParametersModel::NeuronParametersModel ( unsigned int  neuronTypeID)

Constructor

Definition at line 14 of file NeuronParametersModel.cpp.


Member Function Documentation

int NeuronParametersModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

Inherited from QAbstractTableModel. Returns the number of columns in the model

Definition at line 36 of file NeuronParametersModel.cpp.

QVariant NeuronParametersModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Inherited from QAbstractTableModel. Returns the data at the specified model index ready to be displayed in the way requested

Definition at line 43 of file NeuronParametersModel.cpp.

NeuronGroupInfo NeuronParametersModel::getNeuronGroupInfo ( int  row)

Returns the neuron group info associated with a particular row

Definition at line 89 of file NeuronParametersModel.cpp.

QList< ParameterInfo > NeuronParametersModel::getParameterInfoList ( )

Returns a list of information about the parameters

Definition at line 97 of file NeuronParametersModel.cpp.

QHash< QString, double > NeuronParametersModel::getParameterValues ( int  row)

Returns the parameter values associated with a neuron group in a specific row.

Definition at line 103 of file NeuronParametersModel.cpp.

QVariant NeuronParametersModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Inherited from QAbstractTableModel. Returns the header data

Definition at line 125 of file NeuronParametersModel.cpp.

Reloads the parameters from the database

Definition at line 142 of file NeuronParametersModel.cpp.

int NeuronParametersModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Inherited from QAbstractTableModel. Returns the number of rows in the model.

Definition at line 148 of file NeuronParametersModel.cpp.

bool NeuronParametersModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

Inherited from QAbstractTableModel

Definition at line 113 of file NeuronParametersModel.cpp.


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