CARLsim  5.0.0
CARLsim: a GPU-accelerated SNN simulator
PrePostGroupSpikeGenerator Class Reference

spike generator for spike timing control More...

#include <pre_post_group_spikegen.h>

Inheritance diagram for PrePostGroupSpikeGenerator:
SpikeGenerator

Public Member Functions

 PrePostGroupSpikeGenerator (int interSpikeInterval, int offsetToFirstGroup, int firstGroup, int secondGroup)
 
int nextSpikeTime (CARLsim *s, int grpId, int nid, int currentTime, int lastScheduledSpikeTime, int endOfTimeSlice)
 controls spike generation using a callback mechanism More...
 
void updateOffset (int newOffset)
 
- Public Member Functions inherited from SpikeGenerator
virtual ~SpikeGenerator ()
 

Detailed Description

Definition at line 57 of file pre_post_group_spikegen.h.

Constructor & Destructor Documentation

◆ PrePostGroupSpikeGenerator()

PrePostGroupSpikeGenerator ( int  interSpikeInterval,
int  offsetToFirstGroup,
int  firstGroup,
int  secondGroup 
)

Definition at line 51 of file pre_post_group_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 59 of file pre_post_group_spikegen.cpp.

◆ updateOffset()

void updateOffset ( int  newOffset)

Definition at line 73 of file pre_post_group_spikegen.cpp.


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