CARLsim  6.1.0
CARLsim: a GPU-accelerated SNN simulator
InteractiveSpikeGenerator Class Reference

A interactive spike generator that generate spikes upon users' request. More...

#include <interactive_spikegen.h>

Inheritance diagram for InteractiveSpikeGenerator:
[legend]
Collaboration diagram for InteractiveSpikeGenerator:
[legend]

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 ()
 

Detailed Description

Definition at line 60 of file interactive_spikegen.h.

Constructor & Destructor Documentation

◆ InteractiveSpikeGenerator()

InteractiveSpikeGenerator ( unsigned int  numNeurons_,
unsigned int  isi_ 
)

Definition at line 52 of file interactive_spikegen.cpp.

◆ ~InteractiveSpikeGenerator()

Definition at line 59 of file interactive_spikegen.cpp.

Member Function Documentation

◆ nextSpikeTime()

int nextSpikeTime ( CARLsim s,
int  grpId,
int  i,
int  currentTime,
int  lastScheduledSpikeTime,
int  endOfTimeSlice 
)
virtual
Attention
The virtual method should never be called directly
Parameters
spointer to the simulator object
grpIdthe group id
ithe neuron index in the group
currentTimethe current simluation time
lastScheduledSpikeTimethe last spike time which was scheduled
endOfTimeSlicethe end of the current scheduling time slice. Spike times after this will not be scheduled.

Implements SpikeGenerator.

Definition at line 63 of file interactive_spikegen.cpp.

◆ setQuota()

void setQuota ( int  nid_,
int  quota_ 
)

Definition at line 76 of file interactive_spikegen.cpp.

◆ setQuotaAll()

void setQuotaAll ( int  quota_)

Definition at line 81 of file interactive_spikegen.cpp.


The documentation for this class was generated from the following files: