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

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. | |
This abstract base class provides several interfaces for neuron access.
Definition at line 147 of file dneuron.h.
|
||||||||||||||||
|
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 >. |
1.2.18