SpikeStream Application Library  0.2
spikestream::SynapseParametersModel Class Reference

#include <SynapseParametersModel.h>

List of all members.

Public Member Functions

 SynapseParametersModel (unsigned int synapseTypeID)
 ~SynapseParametersModel ()
int columnCount (const QModelIndex &parent=QModelIndex()) const
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
ConnectionGroupInfo getConnectionGroupInfo (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 synapse parameters for the current network. Synchronized with the database. NOTE: Not thread safe. NOTE: Can only handle parameters or a single type of synapse.

Definition at line 17 of file SynapseParametersModel.h.


Constructor & Destructor Documentation

SynapseParametersModel::SynapseParametersModel ( unsigned int  synapseTypeID)

Constructor

Definition at line 14 of file SynapseParametersModel.cpp.


Member Function Documentation

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

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

Definition at line 36 of file SynapseParametersModel.cpp.

QVariant SynapseParametersModel::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 SynapseParametersModel.cpp.

ConnectionGroupInfo SynapseParametersModel::getConnectionGroupInfo ( int  row)

Returns the connection group info associated with a particular row

Definition at line 108 of file SynapseParametersModel.cpp.

Returns a list of information about the parameters

Definition at line 116 of file SynapseParametersModel.cpp.

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

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

Definition at line 122 of file SynapseParametersModel.cpp.

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

Inherited from QAbstractTableModel. Returns the header data

Definition at line 144 of file SynapseParametersModel.cpp.

Reloads the parameters from the database

Definition at line 161 of file SynapseParametersModel.cpp.

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

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

Definition at line 167 of file SynapseParametersModel.cpp.

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

Inherited from QAbstractTableModel

Definition at line 132 of file SynapseParametersModel.cpp.


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