@@ -9,7 +9,7 @@ namespace TestPlatform.Models
9
9
{
10
10
class ReactionProgram : Program
11
11
{
12
- private Int32 stimuluSize ; // [3]
12
+ private double stimuluSize ; // [3]
13
13
private Boolean isBeeping ; // [9]
14
14
private Boolean beepingRandom ; // [19]
15
15
private Int32 beepDuration ; // [10]
@@ -43,7 +43,7 @@ public override string ToString()
43
43
/// <summary>
44
44
/// This constructor is used to create a reaction program with shapes
45
45
/// </summary>
46
- public ReactionProgram ( string programName , int expositionTime , int numExpositions , int stimuluSize , int intervalTime ,
46
+ public ReactionProgram ( string programName , int expositionTime , int numExpositions , double stimuluSize , int intervalTime ,
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 ,
@@ -102,7 +102,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
102
102
{
103
103
// ReactionProgram properties
104
104
this . expositionType = "words" ;
105
- this . stimuluSize = stimuluSize ;
105
+ this . fontSize = stimuluSize ;
106
106
this . isBeeping = isBeeping ;
107
107
this . beepDuration = beepDuration ;
108
108
this . FontSize = fontSize ;
@@ -125,10 +125,11 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
125
125
this . setColorListFile ( colorList ) ;
126
126
}
127
127
128
- //default configurations for shapes version of ReactionProgram
128
+ //default configurations for words version of ReactionProgram
129
129
this . setAudioListFile ( "false" ) ;
130
130
this . setImageListFile ( "false" ) ;
131
131
this . ExpandImage = false ;
132
+ this . stimuluSize = 10 ;
132
133
133
134
// Program properties
134
135
this . programName = programName ;
@@ -146,7 +147,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
146
147
/// <summary>
147
148
/// This constructor is used to create a reaction program with image type
148
149
/// </summary>
149
- public ReactionProgram ( string programName , int expositionTime , int numExpositions , int stimuluSize , int intervalTime ,
150
+ public ReactionProgram ( string programName , int expositionTime , int numExpositions , double stimuluSize , int intervalTime ,
150
151
bool isBeeping , int beepDuration ,
151
152
string fixPoint , string backgroundColor , string fixPointColor , bool intervalTimeRandom ,
152
153
string imageList , bool beepRandom , int numberPositions ,
@@ -188,7 +189,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
188
189
/// <summary>
189
190
/// This constructor is used to create a reaction program with image and words
190
191
/// </summary>
191
- public ReactionProgram ( string programName , int expositionTime , int numExpositions , int stimuluSize , int intervalTime ,
192
+ public ReactionProgram ( string programName , int expositionTime , int numExpositions , double stimuluSize , int intervalTime ,
192
193
bool isBeeping , int beepDuration ,
193
194
string fixPoint , string backgroundColor , string fixPointColor , bool intervalTimeRandom ,
194
195
string imageList , string wordList , string colorList , bool beepRandom , int numberPositions ,
@@ -295,7 +296,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
295
296
/// </summary>
296
297
public ReactionProgram ( string programName , int expositionTime , int numExpositions , int intervalTime ,
297
298
string fixPoint , string backgroundColor , string fixPointColor , bool intervalTimeRandom , int numberPositions ,
298
- string responseType , int stimulusSize , bool isExpositionRandom , string audioListFile , string imageListFile , bool expandImage , bool sstInterval )
299
+ string responseType , double stimulusSize , bool isExpositionRandom , string audioListFile , string imageListFile , bool expandImage , bool sstInterval )
299
300
{
300
301
301
302
// ReactionProgram properties
@@ -331,7 +332,7 @@ public ReactionProgram(string programName, int expositionTime, int numExposition
331
332
this . intervalTimeRandom = intervalTimeRandom ;
332
333
}
333
334
334
- public int StimuluSize
335
+ public double StimuluSize
335
336
{
336
337
get
337
338
{
@@ -587,7 +588,7 @@ public void readProgramFile(string filepath)
587
588
{
588
589
NumExpositions = int . Parse ( config [ 1 ] ) ;
589
590
ExpositionTime = int . Parse ( config [ 2 ] ) ;
590
- StimuluSize = int . Parse ( config [ 3 ] ) ;
591
+ StimuluSize = double . Parse ( config [ 3 ] ) ;
591
592
IntervalTime = int . Parse ( config [ 4 ] ) ;
592
593
setWordListFile ( config [ 5 ] ) ;
593
594
setColorListFile ( config [ 6 ] ) ;
0 commit comments