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

punnets_common::tneuron_base Class Reference
[Neurons]

#include <dneuron.h>

Inheritance diagram for punnets_common::tneuron_base:

punnets_private::tneuron< debug > punnets_private::tneuron_ext< debug > punnets_private::tneuron_ext_const< debug > List of all members.

Public Methods

 tneuron_base (std::string iname="")
 Construct a neuron with the name iname.

const std::string & getName () const
 Returns the name of this neuron.

virtual void pulseArrive (tscheduler &scheduler, ntime_t current_time, real pulse_level)=0
virtual void addSynapse (tsynapse_base *)
 Add a synapse input (this neuron becomes postsynaptic). A derived class should redefine this method.

virtual real getCurrentSigLevel (ntime_t)
 This function probes the current signal level of the neuron. A derived class should redefine this method.

virtual real getCurrentThrLevel (ntime_t)
 This function probes the current threshold level of the neuron. A derived class should redefine this method.

virtual real getCurrentExtInput (ntime_t)
 This function probes the current external input level of the neuron. A derived class should redefine this method.

virtual ntime_t getLastFire () const
 This function returns the last time that the neuron fired. Used in STDP and such.

virtual ntime_t getLastSimulate () const
 This function returns the last time that the neuron has been simulated.

virtual int getLastSimulateType () const
 This function returns the type of the last simulation (0th/1st/2nd and so on).

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

virtual const char * getClassName () const
 Obtains the class name of this neuron.


Protected Attributes

std::string name
 The name of this neuron. Used in debugging and logging.

tqueue _queue
 The event queue of this neuron.


Detailed Description

The base class of a neuron.

This abstract base class provides several interfaces for neuron access.

Definition at line 147 of file dneuron.h.


Member Function Documentation

virtual void punnets_common::tneuron_base::pulseArrive tscheduler &    scheduler,
ntime_t    current_time,
real    pulse_level
[pure virtual]
 

These methods handle pulse arrivals of the neuron. The pulse may be a real number (immediate value), message, or a function to be added. The latter two has a default handler that does nothing. A derived class should redefine these methods.

Implemented in punnets_private::tneuron< debug >, and punnets_private::tneuron_ext< 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