41 #ifndef _SPIKEGEN_FROM_FILE_H_ 42 #define _SPIKEGEN_FROM_FILE_H_ 139 void loadFile(std::string fileName,
int offsetTimeMs=0);
165 void rewind(
int offsetTimeMs);
182 unsigned int lastScheduledSpikeTime,
unsigned int endOfTimeSlice);
188 std::string fileName_;
196 std::vector< std::vector<int> > spikes_;
199 std::vector< std::vector<int>::iterator > spikesIt_;
a SpikeGeneratorFromFile schedules spikes from a spike file binary
CARLsim User Interface This class provides a user interface to the public sections of CARLsimCore sou...
void loadFile(std::string fileName, int offsetTimeMs=0)
Loads a new spike file.
SpikeGeneratorFromFile(std::string fileName, int offsetTimeMs=0)
SpikeGeneratorFromFile constructor.
unsigned int nextSpikeTime(CARLsim *sim, int grpId, int nid, unsigned int currentTime, unsigned int lastScheduledSpikeTime, unsigned int endOfTimeSlice)
schedules the next spike time
~SpikeGeneratorFromFile()
SpikeGeneratorFromFile destructor.
void rewind(int offsetTimeMs)
Rewinds the spike file to beginning of file.