SpikeStream Library
0.2
|
#include <Connection.h>
Public Member Functions | |
Connection () | |
Connection (unsigned fromNeuronID, unsigned toNeuronID, float delay, float weight) | |
Connection (unsigned id, unsigned fromNeuronID, unsigned toNeuronID, float delay, float weight) | |
Connection (const Connection &conn) | |
Connection & | operator= (const Connection &rhs) |
void | print () |
unsigned | getID () |
float | getDelay () |
unsigned | getFromNeuronID () |
unsigned | getToNeuronID () |
float | getTempWeight () |
float | getWeight () |
void | setID (unsigned id) |
void | setFromNeuronID (unsigned fromNeurID) |
void | setToNeuronID (unsigned toNeurID) |
void | setTempWeight (float newTempWeight) |
void | setWeight (float newWeight) |
Holds information about each connection. Should match the information stored in the Connections table of the SpikeStreamNetwork database.
Definition at line 23 of file Connection.h.
Empty constructor
Definition at line 14 of file Connection.cpp.
spikestream::Connection::Connection | ( | unsigned | fromNeuronID, |
unsigned | toNeuronID, | ||
float | delay, | ||
float | weight | ||
) |
Connection::Connection | ( | unsigned | id, |
unsigned | fromNeuronID, | ||
unsigned | toNeuronID, | ||
float | delay, | ||
float | weight | ||
) |
Constructor
Definition at line 51 of file Connection.cpp.
Connection::Connection | ( | const Connection & | conn | ) |
Copy constructor
Definition at line 73 of file Connection.cpp.
float spikestream::Connection::getDelay | ( | ) | [inline] |
Returns the delay
Definition at line 77 of file Connection.h.
unsigned spikestream::Connection::getFromNeuronID | ( | ) | [inline] |
Definition at line 34 of file Connection.h.
unsigned spikestream::Connection::getID | ( | ) | [inline] |
Definition at line 32 of file Connection.h.
float spikestream::Connection::getTempWeight | ( | ) | [inline] |
Returns the temporary weight
Definition at line 89 of file Connection.h.
unsigned spikestream::Connection::getToNeuronID | ( | ) | [inline] |
Definition at line 35 of file Connection.h.
float spikestream::Connection::getWeight | ( | ) | [inline] |
Returns the weight
Definition at line 83 of file Connection.h.
Connection & Connection::operator= | ( | const Connection & | rhs | ) |
Assignment operator
Definition at line 92 of file Connection.cpp.
void Connection::print | ( | ) |
Prints out information about the connection.
Definition at line 109 of file Connection.cpp.
void spikestream::Connection::setFromNeuronID | ( | unsigned | fromNeurID | ) | [inline] |
Definition at line 39 of file Connection.h.
void spikestream::Connection::setID | ( | unsigned | id | ) | [inline] |
Definition at line 38 of file Connection.h.
void spikestream::Connection::setTempWeight | ( | float | newTempWeight | ) | [inline] |
Sets the temporary weight
Definition at line 95 of file Connection.h.
void spikestream::Connection::setToNeuronID | ( | unsigned | toNeurID | ) | [inline] |
Definition at line 40 of file Connection.h.
void spikestream::Connection::setWeight | ( | float | newWeight | ) | [inline] |
Sets the weight
Definition at line 103 of file Connection.h.