CARLsim
4.1.0
CARLsim: a GPU-accelerated SNN simulator
|
A interactive spike generator that generate spikes upon users' request. More...
#include <interactive_spikegen.h>
Public Member Functions | |
InteractiveSpikeGenerator (unsigned int numNeurons_, unsigned int isi_) | |
~InteractiveSpikeGenerator () | |
int | nextSpikeTime (CARLsim *s, int grpId, int nid, int currentTime, int lastScheduledSpikeTime, int endOfTimeSlice) |
controls spike generation using a callback mechanism More... | |
void | setQuota (int nid_, int quota_) |
void | setQuotaAll (int quota_) |
Public Member Functions inherited from SpikeGenerator | |
virtual | ~SpikeGenerator () |
Definition at line 56 of file interactive_spikegen.h.
InteractiveSpikeGenerator | ( | unsigned int | numNeurons_, |
unsigned int | isi_ | ||
) |
Definition at line 50 of file interactive_spikegen.cpp.
Definition at line 57 of file interactive_spikegen.cpp.
|
virtual |
s | pointer to the simulator object |
grpId | the group id |
i | the neuron index in the group |
currentTime | the current simluation time |
lastScheduledSpikeTime | the last spike time which was scheduled |
endOfTimeSlice | the end of the current scheduling time slice. Spike times after this will not be scheduled. |
Implements SpikeGenerator.
Definition at line 61 of file interactive_spikegen.cpp.
void setQuota | ( | int | nid_, |
int | quota_ | ||
) |
Definition at line 74 of file interactive_spikegen.cpp.
void setQuotaAll | ( | int | quota_ | ) |
Definition at line 79 of file interactive_spikegen.cpp.