Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

punnets_common::tsynapse_base Class Reference
[Synapses]

#include <dneuron.h>

Inheritance diagram for punnets_common::tsynapse_base:

punnets_common::taction punnets_private::tsynapse< debug > punnets_private::tsynapse_addfunc< debug > punnets_private::tsynapse_fatigue< debug > punnets_private::tsynapse_message< debug > punnets_private::tsynapse_messfunc< debug > List of all members.

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_basegetSrc () const
 Get the source neuron (pre-synaptic). A derived class should redefine this method.

virtual tneuron_basegetDest () 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.


Detailed Description

The base class of a synapse.

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.


Member Function Documentation

virtual void punnets_common::tsynapse_base::activate tscheduler &    scheduler,
ntime_t    current_time
[pure virtual]
 

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 >.


The documentation for this class was generated from the following file:
Generated on Mon Jun 16 15:42:29 2003 for Punnets by doxygen1.2.18