#include <Synapse.h>
Public Member Functions | |
| Synapse () | |
| virtual | ~Synapse () |
| virtual const string * | getDescription ()=0 |
| virtual short | getShortWeight ()=0 |
| virtual double | getWeight ()=0 |
| virtual bool | parametersChanged ()=0 |
| virtual void | processSpike ()=0 |
| virtual void | calculateFinalState ()=0 |
| virtual string | getMonitoringInfo () |
| virtual MonitorData * | getMonitoringData () |
| unsigned int | getPresynapticNeuronID () |
| void | print () |
| void | setWeight (double weight) |
Protected Attributes | |
| Neuron * | postSynapticNeuron |
| unsigned int | preSynapticNeuronID |
| double | weight |
| SimulationClock * | simulationClock |
| map< string, double > * | parameterMap |
| MonitorData | monitorData |
Private Member Functions | |
| void | setParameterMapReference (map< string, double > *paramMap) |
| void | setPostSynapticNeuron (Neuron *neuron) |
| void | setPreSynapticNeuronID (unsigned int preSynNeurID) |
| void | setSimulationClock (SimulationClock *simClock) |
Friends | |
| class | SpikeStreamSimulation |
NOTE getWeight() and getShortWeight() are virtual because there may need to be some retrospective calculations done on the weight to get its current value.
Definition at line 60 of file Synapse.h.
|
|
Construtor. Definition at line 33 of file Synapse.cpp. References monitorData. |
|
|
Destructor. Definition at line 41 of file Synapse.cpp. |
|
|
Called to update synapse class when all synapses are being updated at each time step. This method is never called during event based simulation, when the synapse class should be updated whenever it processes a spike. |
|
|
Should return a descriptive name for the synapse. This is sometimes useful for debugging class loading. Referenced by ClassLoader::getNewSynapse(), and ClassLoader::loadSynapseClasses(). |
|
|
Returns a monitor data struct (defined in GlobalVariables.h) containing the data that is being monitored. This returned data must match that defined in the string returned by getMonitoringInfo(). Definition at line 55 of file Synapse.cpp. References monitorData. |
|
|
This method returns an string containing an XML description of the variables that are available for monitoring within this class. Overload this method and getMonitoringData() if you want to send monitoring information back to the main application. This will enable you to view a graph of the weight, for example. Definition at line 62 of file Synapse.cpp. |
|
|
Returns the id of the neuron that connects to this synapse from another task. This can be used to access the synapse from the synapse map. Definition at line 73 of file Synapse.cpp. References preSynapticNeuronID. |
|
|
|
|
|
Should return the weight as a double between MIN_DOUBLE_WEIGHT and MAX_DOUBLE_WEIGHT. This is a virtual method because some implementations may need the state of the weight to be calculated retrospectively. |
|
|
Called when the parameters of the synapse have changed. The parameters of the synapses are held as references to parameter maps and when these are reloaded this method is called. |
|
|
Prints out information about this synapse for debugging. Definition at line 95 of file Synapse.cpp. References Neuron::getNeuronID(), postSynapticNeuron, preSynapticNeuronID, and weight. |
|
|
Called when a spike is routed to this synapse. In event based simulation the synapse should be updated by this method. |
|
|
Stores a reference to a map containing parameters for this synapse. Definition at line 101 of file Synapse.cpp. References parameterMap. |
|
|
Sets the neuron that this synapse connects to. Definition at line 107 of file Synapse.cpp. References postSynapticNeuron. |
|
|
Sets the id of the neuron that connects to this synapse from another task. This can be used to access the synapse from the synapse map. Definition at line 115 of file Synapse.cpp. References preSynapticNeuronID. |
|
|
Passes a reference to the simulation clock. Definition at line 123 of file Synapse.cpp. References simulationClock. Referenced by SpikeStreamSimulation::loadSynapses(). |
|
|
Sets the weight of this synapse. Public to allow it to be dynamically modified. Definition at line 80 of file Synapse.cpp. References MAX_DOUBLE_WEIGHT, MIN_DOUBLE_WEIGHT, and weight. |
|
|
|
|
|
Holds the monitoring data for the neuron. Definition at line 146 of file Synapse.h. Referenced by getMonitoringData(), and Synapse(). |
|
|
Reference to the map containing the parameters for each connection group. Definition at line 143 of file Synapse.h. Referenced by setParameterMapReference(). |
|
|
Holds a reference to the neuron that this synapse is connected to. This will be a class that inherits from the abstract Neuron class. Definition at line 127 of file Synapse.h. Referenced by print(), and setPostSynapticNeuron(). |
|
|
Holds the preSynapticNeuronID to enable the neuron to change its weight by accessing the synapse map. Definition at line 131 of file Synapse.h. Referenced by getPresynapticNeuronID(), print(), and setPreSynapticNeuronID(). |
|
|
Reference to the simulation clock. Definition at line 139 of file Synapse.h. Referenced by setSimulationClock(). |
|
|
The weight of the synapse. Stored as a double so that it can be used without casting in calculations. Definition at line 135 of file Synapse.h. Referenced by print(), and setWeight(). |
1.4.4