MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <SimpleSynHandler.h>
Public Member Functions | |
void | addSpike (unsigned int index, double time, double weight) |
unsigned int | addSynapse () |
Adds a new synapse, returns its index. More... | |
void | dropSynapse (unsigned int droppedSynNumber) |
double | getTopSpike (unsigned int index) const |
SimpleSynHandler & | operator= (const SimpleSynHandler &other) |
SimpleSynHandler () | |
unsigned int | vGetNumSynapses () const |
Synapse * | vGetSynapse (unsigned int i) |
void | vProcess (const Eref &e, ProcPtr p) |
void | vReinit (const Eref &e, ProcPtr p) |
void | vSetNumSynapses (unsigned int num) |
~SimpleSynHandler () | |
![]() | |
unsigned int | getNumSynapses () const |
Synapse * | getSynapse (unsigned int i) |
void | process (const Eref &e, ProcPtr p) |
bool | rangeWarning (const string &field, double value) |
void | reinit (const Eref &e, ProcPtr p) |
void | setNumSynapses (unsigned int num) |
SynHandlerBase () | |
virtual | ~SynHandlerBase () |
Static Public Member Functions | |
static const Cinfo * | initCinfo () |
![]() | |
static SrcFinfo1< double > * | activationOut () |
static const Cinfo * | initCinfo () |
Private Attributes | |
priority_queue< SynEvent, vector< SynEvent > , CompareSynEvent > | events_ |
vector< Synapse > | synapses_ |
This handles simple synapses without plasticity. It uses a priority queue to manage them. This gets inefficient for large numbers of synapses but is pretty robust.
Definition at line 47 of file SimpleSynHandler.h.
SimpleSynHandler::SimpleSynHandler | ( | ) |
Definition at line 57 of file SimpleSynHandler.cpp.
SimpleSynHandler::~SimpleSynHandler | ( | ) |
Definition at line 60 of file SimpleSynHandler.cpp.
|
virtual |
Record arrival of a new spike event. The 'time' is time for eventual arrival of the spike, and is typically well in the future. The index specifies which synapse the spike came to.
Implements SynHandlerBase.
Definition at line 100 of file SimpleSynHandler.cpp.
References events_, and synapses_.
|
virtual |
Adds a new synapse, returns its index.
Implements SynHandlerBase.
Definition at line 138 of file SimpleSynHandler.cpp.
References synapses_.
|
virtual |
Drops an existing synapse, triggered by deleteMsg of an input to the child synapse. This is a little messy because we can't change the indices of the other synapses. The Handler has to figure out how to handle the 'holes' in its array of synapses.
Implements SynHandlerBase.
Definition at line 147 of file SimpleSynHandler.cpp.
References synapses_.
|
virtual |
Implements SynHandlerBase.
Definition at line 107 of file SimpleSynHandler.cpp.
References events_.
|
static |
Definition at line 17 of file SimpleSynHandler.cpp.
References SynHandlerBase::getNumSynapses(), SynHandlerBase::getSynapse(), Synapse::initCinfo(), SynHandlerBase::initCinfo(), SynHandlerBase::setNumSynapses(), and synHandlerCinfo.
Referenced by testCinfoFields(), testFinfoFields(), testSetGetSynapse(), testSetGetVec(), testSetRepeat(), and testSparseMsg().
SimpleSynHandler & SimpleSynHandler::operator= | ( | const SimpleSynHandler & | other | ) |
Definition at line 63 of file SimpleSynHandler.cpp.
References events_, and synapses_.
|
virtual |
Implements SynHandlerBase.
Definition at line 85 of file SimpleSynHandler.cpp.
References synapses_.
|
virtual |
Implements SynHandlerBase.
Definition at line 90 of file SimpleSynHandler.cpp.
References dummy, and synapses_.
Implements SynHandlerBase.
Definition at line 114 of file SimpleSynHandler.cpp.
References SynHandlerBase::activationOut(), ProcInfo::currTime, ProcInfo::dt, and events_.
Implements SynHandlerBase.
Definition at line 131 of file SimpleSynHandler.cpp.
References events_.
|
virtual |
Implements SynHandlerBase.
Definition at line 77 of file SimpleSynHandler.cpp.
References synapses_.
|
private |
Definition at line 71 of file SimpleSynHandler.h.
Referenced by addSpike(), getTopSpike(), operator=(), vProcess(), and vReinit().
|
private |
Definition at line 70 of file SimpleSynHandler.h.
Referenced by addSpike(), addSynapse(), dropSynapse(), operator=(), vGetNumSynapses(), vGetSynapse(), and vSetNumSynapses().