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

punnets_private::tsynapse< debug > Class Template Reference
[Synapses]

#include <dneuron.h>

Inheritance diagram for punnets_private::tsynapse< debug >:

punnets_common::tsynapse_base punnets_common::taction List of all members.

Public Methods

 tsynapse (tneuron_base &isrc, tneuron_base &idest, ntime_t idelay, real iweight)
 Construct a synapse with the specified source, destination, delay and weight.

 tsynapse (tneuron_base &idest, ntime_t idelay, real iweight)
virtual void setSrc (tneuron_base &isrc)
 Specify the source neuron.

virtual real getWeight () const
 Get the weight value of this synapse.

virtual tneuron_base & getSrc () const
 Get the source neuron (pre-synaptic).

virtual tneuron_base & getDest () const
 Get the destination neuron (post-synaptic).

void addWeight (real delta_w)
 Modify the weight value with the specified step size.

void addDelay (ntime_t delta_d)
 Modify the delay with the specified step size.

virtual void activate (tscheduler &scheduler, ntime_t current_time)
 The event handler delivers a pulse to the destination (post-synaptic) neuron.

virtual tqueue * queue () const
 Obtains the pointer to the queue object of this event.


Detailed Description

template<bool debug>
class punnets_private::tsynapse< debug >

The default synapse class. This class of synapses has an effect for the destination (post-synaptic) neuron to update its potential immediately with a constant amount of the weight.

Definition at line 265 of file dneuron.h.


Constructor & Destructor Documentation

template<bool debug>
punnets_private::tsynapse< debug >::tsynapse tneuron_base &    idest,
ntime_t    idelay,
real    iweight
[inline]
 

Construct a synapse with the specified destination, delay and weight. Source neuron will be specified after the construction via setSrc() method.

Definition at line 278 of file dneuron.h.

References punnets_common::ntime_t, and punnets_common::real.

00279         : tsynapse_base(idelay), src(NULL), dest(&idest), weight(iweight) { }


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