20 "Sends out spike time if it falls in current timestep.");
30 "File to read lookup data from. The file should be contain two columns\n"
31 "separated by any space character.",
36 "Method to use for filling up the entries. Currently only method 4\n"
37 "(loading from file) is supported.",
42 "Current state of the time table.",
49 "Handle process call",
53 "Handles reinit call",
59 static Finfo* procShared[] = {
64 "Shared message for process and reinit",
65 procShared,
sizeof( procShared ) /
sizeof(
const Finfo* ));
67 static Finfo * timeTableFinfos[] = {
75 static string doc[] = {
77 "Author",
"Johannes Hjorth, 2008, KTH, Stockholm. Ported to buildQ branch using new API by Subhasis Ray, NCBS, Bangalore, 2013.",
78 "Description",
"TimeTable: Read in spike times from file and send out eventOut messages\n"
79 "at the specified times.",
87 sizeof( timeTableFinfos )/
sizeof(
Finfo *),
90 sizeof(doc)/
sizeof(
string));
130 cout <<
"Error: TimeTable::innerload: Unable to open file"
140 double dataPoint, dataPointOld = -1000;
141 while( fin >> dataPoint ) {
142 vec().push_back(dataPoint);
144 if(dataPoint < dataPointOld) {
145 cerr <<
"TimeTable: Warning: Spike times in file " <<
filename_
146 <<
" are not in increasing order."
150 dataPointOld = dataPoint;
159 "Error: TimeTable::setMethod: "
160 "Currently only method 4 (loading from file) supported.\n";
static const Cinfo * initCinfo()