@@ -20,8 +20,8 @@ class ReactionProgram : Program
20
20
private Boolean hasColorList ; // [23]
21
21
private int fontSize ; // [24]
22
22
private bool sstInterval ; // interval calculated according to stop signal test
23
-
24
- private static Int32 ELEMENTS = 26 ; //quantity of fields used in ReactionProgram
23
+ private int intervalBetweenAttempts ;
24
+ private static Int32 ELEMENTS = 27 ; //quantity of fields used in ReactionProgram
25
25
26
26
public ReactionProgram ( )
27
27
{
@@ -47,7 +47,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
47
47
bool isBeeping , int beepDuration , string stimulusColor ,
48
48
string fixPoint , string backgroundColor , string fixPointColor , bool intervalTimeRandom ,
49
49
string stimuluShape , bool beepRandom , int numberPositions ,
50
- string responseType , string colorList , bool hasColorList , bool sstInterval )
50
+ string responseType , string colorList , bool hasColorList , bool sstInterval , int intervalBetweenAttempts )
51
51
{
52
52
// ReactionProgram properties
53
53
this . expositionType = "shapes" ;
@@ -60,7 +60,8 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
60
60
this . NumberPositions = numberPositions ;
61
61
this . hasColorList = hasColorList ;
62
62
this . SstInterval = sstInterval ;
63
-
63
+ this . intervalBetweenAttempts = intervalBetweenAttempts ;
64
+
64
65
if ( ! hasColorList )
65
66
{
66
67
this . stimulusColor = stimulusColor ;
@@ -98,7 +99,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
98
99
bool isBeeping , int beepDuration , string stimulusColor ,
99
100
string fixPoint , string backgroundColor , string fixPointColor , bool intervalTimeRandom ,
100
101
bool beepRandom , int numberPositions , string responseType ,
101
- string wordList , bool expositionRandom , string colorList , bool hasColorList , int fontSize , bool sstInterval )
102
+ string wordList , bool expositionRandom , string colorList , bool hasColorList , int fontSize , bool sstInterval , int intervalBetweenAttempts )
102
103
{
103
104
// ReactionProgram properties
104
105
this . expositionType = "words" ;
@@ -113,6 +114,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
113
114
this . setWordListFile ( wordList ) ;
114
115
this . hasColorList = hasColorList ;
115
116
this . SstInterval = sstInterval ;
117
+ this . intervalBetweenAttempts = intervalBetweenAttempts ;
116
118
117
119
if ( ! hasColorList )
118
120
{
@@ -151,7 +153,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
151
153
bool isBeeping , int beepDuration ,
152
154
string fixPoint , string backgroundColor , string fixPointColor , bool intervalTimeRandom ,
153
155
string imageList , bool beepRandom , int numberPositions ,
154
- string responseType , bool isExpositionRandom , bool expandImage , bool sstInterval )
156
+ string responseType , bool isExpositionRandom , bool expandImage , bool sstInterval , int intervalBetweenAttempts )
155
157
{
156
158
// ReactionProgram properties
157
159
this . expositionType = "images" ;
@@ -166,6 +168,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
166
168
this . hasColorList = false ;
167
169
this . ExpandImage = expandImage ;
168
170
this . SstInterval = sstInterval ;
171
+ this . intervalBetweenAttempts = intervalBetweenAttempts ;
169
172
170
173
//default configurations for first version of ReactionProgram
171
174
this . setAudioListFile ( "false" ) ;
@@ -193,7 +196,8 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
193
196
bool isBeeping , int beepDuration ,
194
197
string fixPoint , string backgroundColor , string fixPointColor , bool intervalTimeRandom ,
195
198
string imageList , string wordList , string colorList , bool beepRandom , int numberPositions ,
196
- bool hasColorList , string responseType , bool isExpositionRandom , string stimulusColor , int fontSize , bool expandImage , bool sstInterval )
199
+ bool hasColorList , string responseType , bool isExpositionRandom , string stimulusColor , int fontSize , bool expandImage , bool sstInterval ,
200
+ int intervalBetweenAttempts )
197
201
{
198
202
199
203
// ReactionProgram properties
@@ -209,6 +213,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
209
213
this . FontSize = fontSize ;
210
214
this . ExpandImage = expandImage ;
211
215
this . SstInterval = sstInterval ;
216
+ this . intervalBetweenAttempts = intervalBetweenAttempts ;
212
217
213
218
if ( ! hasColorList )
214
219
{
@@ -246,7 +251,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
246
251
string stimulusColor ,
247
252
string fixPoint , string backgroundColor , string fixPointColor , bool intervalTimeRandom , int numberPositions ,
248
253
string responseType , string colorList , bool hasColorList , bool isExpositionRandom , int fontSize , string audioListFile , string wordListFile ,
249
- bool sstInterval )
254
+ bool sstInterval , int intervalBetweenAttempts )
250
255
{
251
256
252
257
// ReactionProgram properties
@@ -258,6 +263,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
258
263
259
264
this . ResponseType = responseType ;
260
265
this . NumberPositions = numberPositions ;
266
+ this . intervalBetweenAttempts = intervalBetweenAttempts ;
261
267
this . hasColorList = hasColorList ;
262
268
if ( ! hasColorList )
263
269
{
@@ -296,7 +302,8 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
296
302
/// </summary>
297
303
public ReactionProgram ( string programName , int expositionTime , int numExpositions , int intervalTime ,
298
304
string fixPoint , string backgroundColor , string fixPointColor , bool intervalTimeRandom , int numberPositions ,
299
- string responseType , double stimulusSize , bool isExpositionRandom , string audioListFile , string imageListFile , bool expandImage , bool sstInterval )
305
+ string responseType , double stimulusSize , bool isExpositionRandom , string audioListFile , string imageListFile , bool expandImage , bool sstInterval ,
306
+ int intervalBetweenAttempts )
300
307
{
301
308
302
309
// ReactionProgram properties
@@ -308,7 +315,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
308
315
this . ResponseType = responseType ;
309
316
this . NumberPositions = numberPositions ;
310
317
this . ExpandImage = expandImage ;
311
-
318
+ this . intervalBetweenAttempts = intervalBetweenAttempts ;
312
319
//default configurations for image with audio version of ReactionProgram
313
320
this . fontSize = 10 ;
314
321
this . setColorListFile ( "false" ) ;
@@ -577,9 +584,10 @@ public string data()
577
584
this . ResponseType + " " +
578
585
this . ExpositionRandom . ToString ( ) + " " +
579
586
this . hasColorList . ToString ( ) + " " +
580
- this . FontSize + " " +
587
+ this . FontSize + " " +
581
588
this . ExpandImage + " " +
582
- this . SstInterval ;
589
+ this . SstInterval + " " +
590
+ this . intervalBetweenAttempts . ToString ( ) ;
583
591
return data ;
584
592
}
585
593
@@ -635,6 +643,7 @@ public void readProgramFile(string filepath)
635
643
FontSize = int . Parse ( config [ 23 ] ) ;
636
644
expandImage = bool . Parse ( config [ 24 ] ) ;
637
645
SstInterval = bool . Parse ( config [ 25 ] ) ;
646
+ intervalBetweenAttempts = int . Parse ( config [ 26 ] ) ;
638
647
639
648
string [ ] linesInstruction = File . ReadAllLines ( filepath ) ;
640
649
if ( linesInstruction . Length > 1 ) // read instructions if any
0 commit comments