#include <SimpleScalingSpikingSynapse.h>
Public Member Functions | |
SimpleScalingSpikingSynapse (int targetID=1, float W=1e-9f, float delay=2e-4f) | |
virtual | ~SimpleScalingSpikingSynapse () |
virtual double | getManagedDelay () const |
virtual int | spikeHit (spikeport_t port, SpikeEvent const &spike) |
virtual int | advance (AdvanceInfo const &ai) |
Calculate the next state and output/propagate the result to succesors/outgoing objects. | |
virtual SimObject * | getChainedObject () |
Returns a pointer to the SimObject that this Simobject is attached/mounted to. | |
virtual void | outgoing (SimObject *receiver) |
Connects the synapse to the postsynaptic object which must be a synaptic target. | |
virtual int | nSpikeInputPorts () const |
virtual int | nSpikeOutputPorts () const |
virtual int | nAnalogInputPorts () const |
virtual int | nAnalogOutputPorts () const |
virtual PortType | inputPortType (port_t i) const |
Public Attributes | |
float | W |
The weight (scaling factor, strenght, maximal amplitude) of the synapse. | |
float | delay |
The synaptic transmission delay. | |
Static Public Attributes | |
static const int | exc = 1 |
static const int | inh = 2 |
static const int | currExc = 1 |
static const int | currInh = 2 |
static const int | condExc = 3 |
static const int | condInh = 4 |
Protected Attributes | |
SimObject * | target |
int | target_id |
Definition at line 7 of file SimpleScalingSpikingSynapse.h.
SimpleScalingSpikingSynapse::SimpleScalingSpikingSynapse | ( | int | targetID = 1 , |
|
float | W = 1e-9f , |
|||
float | delay = 2e-4f | |||
) |
Definition at line 10 of file SimpleScalingSpikingSynapse.cpp.
SimpleScalingSpikingSynapse::~SimpleScalingSpikingSynapse | ( | ) | [virtual] |
Definition at line 14 of file SimpleScalingSpikingSynapse.cpp.
double SimpleScalingSpikingSynapse::getManagedDelay | ( | ) | const [virtual] |
Reimplemented from SimObject.
Definition at line 17 of file SimpleScalingSpikingSynapse.cpp.
References delay.
int SimpleScalingSpikingSynapse::spikeHit | ( | spikeport_t | port, | |
SpikeEvent const & | spike | |||
) | [virtual] |
Function to be called if the object is hit by a spike Called by spike exchange mechanims if a spike hits (arrives at) the object A return value of greater 0 indicates that the object is currently not active and the sim engine has to put this object into its list of active spike receivers. A return value of 0 indicates the the object is currently active (i.e. is already in the list of active receviers) and need not to be put into the list of active synapses.
Reimplemented from SimObject.
Definition at line 22 of file SimpleScalingSpikingSynapse.cpp.
References SimObject::spikeHit(), target, and W.
int SimpleScalingSpikingSynapse::advance | ( | AdvanceInfo const & | ) | [virtual] |
Calculate the next state and output/propagate the result to succesors/outgoing objects.
The return value of advance contains several bits of information which can be decoded with the bit masks ADVANCEFLAG_* like ADVANCEFLAG_HASSPIKED and ADVANCEFLAG_DEACTIVATE.
Reimplemented from SimObject.
Definition at line 27 of file SimpleScalingSpikingSynapse.cpp.
References ADVANCEFLAG_DEACTIVATE.
SimObject * SimpleScalingSpikingSynapse::getChainedObject | ( | ) | [virtual] |
Returns a pointer to the SimObject that this Simobject is attached/mounted to.
If the SpikeDriven SimObject actually is mounted on another spikedriven object, Then this method is used to get the chain of all the objects that are to be activated because of the spike.
Reimplemented from SimObject.
Definition at line 32 of file SimpleScalingSpikingSynapse.cpp.
References target.
void SimpleScalingSpikingSynapse::outgoing | ( | SimObject * | receiver | ) | [virtual] |
Connects the synapse to the postsynaptic object which must be a synaptic target.
Reimplemented from SimObject.
Definition at line 38 of file SimpleScalingSpikingSynapse.cpp.
References SimObject::getInputTarget(), target, and target_id.
int SimpleScalingSpikingSynapse::nSpikeInputPorts | ( | ) | const [virtual] |
int SimpleScalingSpikingSynapse::nSpikeOutputPorts | ( | ) | const [virtual] |
int SimpleScalingSpikingSynapse::nAnalogInputPorts | ( | ) | const [virtual] |
int SimpleScalingSpikingSynapse::nAnalogOutputPorts | ( | ) | const [virtual] |
SimObject::PortType SimpleScalingSpikingSynapse::inputPortType | ( | port_t | i | ) | const [virtual] |
Reimplemented from SimObject.
Definition at line 63 of file SimpleScalingSpikingSynapse.cpp.
References SimObject::spiking, and SimObject::undefined.
const int SimpleScalingSpikingSynapse::exc = 1 [static] |
Definition at line 11 of file SimpleScalingSpikingSynapse.h.
const int SimpleScalingSpikingSynapse::inh = 2 [static] |
Definition at line 12 of file SimpleScalingSpikingSynapse.h.
const int SimpleScalingSpikingSynapse::currExc = 1 [static] |
Definition at line 13 of file SimpleScalingSpikingSynapse.h.
const int SimpleScalingSpikingSynapse::currInh = 2 [static] |
Definition at line 14 of file SimpleScalingSpikingSynapse.h.
const int SimpleScalingSpikingSynapse::condExc = 3 [static] |
Definition at line 15 of file SimpleScalingSpikingSynapse.h.
const int SimpleScalingSpikingSynapse::condInh = 4 [static] |
Definition at line 16 of file SimpleScalingSpikingSynapse.h.
The weight (scaling factor, strenght, maximal amplitude) of the synapse.
Definition at line 24 of file SimpleScalingSpikingSynapse.h.
Referenced by spikeHit().
The synaptic transmission delay.
As the synaptic transmission delay we understand the time between a signal (spike or analog signal) is generated in the presynaptic object and the time of the onset of the postsynaptic response.
Definition at line 31 of file SimpleScalingSpikingSynapse.h.
Referenced by getManagedDelay().
SimObject* SimpleScalingSpikingSynapse::target [protected] |
Definition at line 55 of file SimpleScalingSpikingSynapse.h.
Referenced by getChainedObject(), outgoing(), and spikeHit().
int SimpleScalingSpikingSynapse::target_id [protected] |