#include <dneuron.h>
Inheritance diagram for punnets_common::tsynapse_base:

Public Methods | |
| tsynapse_base (ntime_t idelay) | |
| Construct a synapse with the specified delay. | |
| ntime_t | getDelay () const |
| Get the delay length. | |
| virtual real | getWeight () const |
| Get the weight of the synapse. A derived class should redefine this method. | |
| virtual void | setSrc (tneuron_base &) |
| Set the source neuron (presynaptic) of this synapse. A derived class should redefine this method. | |
| virtual tneuron_base & | getSrc () const |
| Get the source neuron (pre-synaptic). A derived class should redefine this method. | |
| virtual tneuron_base & | getDest () const |
| Get the destination neuron (post-synaptic). A derived class should redefine this method. | |
| virtual void | activate (tscheduler &scheduler, ntime_t current_time)=0 |
| virtual const char * | getClassName () const |
| Obtains the class name of this neuron. | |
Protected Attributes | |
| ntime_t | ndelay |
| synaptic delay. | |
This abstract base class provides several interfaces for a synapse. A synapse itself behaves as an action of an event; i.e. when activated at a certain simulation time, a synapse updates the destination (post-synaptic) neuron.
Definition at line 217 of file dneuron.h.
|
||||||||||||
|
The event handler. When the source (pre-synaptic) neuron fires, this function is called after the synaptic delay. A derived class should redefine this method to update the destination (post-synaptic) neuron. Implements punnets_common::taction. Implemented in punnets_private::tsynapse< debug >, punnets_private::tsynapse_message< debug >, punnets_private::tsynapse_fatigue< debug >, punnets_private::tsynapse_addfunc< debug >, and punnets_private::tsynapse_messfunc< debug >. |
1.2.18