#include <Neuron.h>
Inheritance diagram for Teem::Synapse:

Public Member Functions | |
| Synapse () | |
| Constructor. | |
| virtual | ~Synapse () |
| Destructor. | |
| virtual void | init (Neuron *pre, Neuron *post, const double weight=0) |
| Initialize the synapse. Must be called once and only once, just after construction. | |
| virtual void | finalize () |
| Called when the network is totally constructed but before it is run. | |
| virtual void | setParams (const std::map< std::string, double > params) |
| Set parameters. | |
| virtual void | setParams (const std::string ¶m, double value) |
| Set parameters. Should be overriden by subclasses to handle more parameters. | |
| virtual bool | getSpike () const |
| Return true if there is a spike on this synapse. | |
| virtual double | getCurrent () const |
| Return the value of the potential of this synapse. | |
| virtual void | update (double dt=1.0) |
| Update status of the synapse according to state of presynaptic neurons. | |
| const Neuron * | getPreNeuron () const |
| Get the pre-synaptic neuron. | |
| const Neuron * | getPostNeuron () const |
| Get the post-synaptic neuron. | |
Public Attributes | |
| double | weight |
| weight of this synapse | |
| TagSet | tags |
| tags for this synapse | |
Protected Attributes | |
| Neuron * | preNeuron |
| pre-synaptic neuron | |
| Neuron * | postNeuron |
| post-synaptic neuron | |
1.4.2