Last change
on this file since 207 was 118, checked in by wouter, 4 years ago |
#49 re-introduced Stimulus object, because we need substitute and type of stimulus.
|
File size:
3.9 KB
|
Rev | Line | |
---|
[26] | 1 | {
|
---|
| 2 | "specification": {
|
---|
[117] | 3 | "phases": {
|
---|
| 4 | "START": {
|
---|
| 5 | "preparation": [
|
---|
[26] | 6 | {
|
---|
[117] | 7 | "SetBestMatch": [
|
---|
| 8 | "question",
|
---|
| 9 | [
|
---|
| 10 | {
|
---|
| 11 | "value": {
|
---|
| 12 | "txt": "Please enter a random number between 0 and 9."
|
---|
| 13 | },
|
---|
| 14 | "condition": {
|
---|
| 15 | "values": {
|
---|
| 16 | }
|
---|
| 17 | }
|
---|
| 18 | },
|
---|
| 19 | {
|
---|
| 20 | "value": {
|
---|
| 21 | "txt": "Can you give a random number, at least 0 and at most 9."
|
---|
| 22 | },
|
---|
| 23 | "condition": {
|
---|
| 24 | "values": {
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
[30] | 27 | }
|
---|
[117] | 28 | ]
|
---|
| 29 | ]
|
---|
[26] | 30 | }
|
---|
| 31 | ],
|
---|
[118] | 32 | "stimulation": {
|
---|
| 33 | "Textual": {
|
---|
| 34 | "question": "[question]"
|
---|
| 35 | }
|
---|
| 36 | },
|
---|
[117] | 37 | "answer": {
|
---|
| 38 | "NumberAnswer": {
|
---|
| 39 | "parameter": "random",
|
---|
| 40 | "min": -1000,
|
---|
| 41 | "max": 1000,
|
---|
| 42 | "stepsize": 1
|
---|
| 43 | }
|
---|
| 44 | },
|
---|
| 45 | "evaluation": [
|
---|
| 46 | {
|
---|
| 47 | "SetBestMatch": [
|
---|
| 48 | "phase",
|
---|
| 49 | [
|
---|
| 50 | {
|
---|
| 51 | "value": {
|
---|
| 52 | "txt": "goodnum"
|
---|
| 53 | },
|
---|
| 54 | "condition": {
|
---|
| 55 | "values": {
|
---|
| 56 | "random": {
|
---|
| 57 | "num": 4.5
|
---|
| 58 | }
|
---|
| 59 | }
|
---|
[26] | 60 | }
|
---|
[117] | 61 | },
|
---|
| 62 | {
|
---|
| 63 | "value": {
|
---|
| 64 | "txt": "badnum"
|
---|
| 65 | },
|
---|
| 66 | "condition": {
|
---|
| 67 | "values": {
|
---|
| 68 | "random": {
|
---|
| 69 | "num": -4.5
|
---|
| 70 | }
|
---|
| 71 | }
|
---|
[26] | 72 | }
|
---|
[117] | 73 | },
|
---|
| 74 | {
|
---|
| 75 | "value": {
|
---|
| 76 | "txt": "badnum"
|
---|
| 77 | },
|
---|
| 78 | "condition": {
|
---|
| 79 | "values": {
|
---|
| 80 | "random": {
|
---|
| 81 | "num": 13.5
|
---|
| 82 | }
|
---|
| 83 | }
|
---|
[26] | 84 | }
|
---|
| 85 | }
|
---|
[117] | 86 | ]
|
---|
| 87 | ]
|
---|
| 88 | }
|
---|
| 89 | ]
|
---|
[26] | 90 | },
|
---|
[117] | 91 | "goodnum": {
|
---|
| 92 | "preparation": [
|
---|
[26] | 93 | {
|
---|
[117] | 94 | "SetBestMatch": [
|
---|
| 95 | "question",
|
---|
| 96 | [
|
---|
| 97 | {
|
---|
| 98 | "value": {
|
---|
| 99 | "txt": "Yes, [random] is between 0 and 9. Do you want to retry"
|
---|
| 100 | },
|
---|
| 101 | "condition": {
|
---|
| 102 | "values": {
|
---|
| 103 | }
|
---|
| 104 | }
|
---|
| 105 | },
|
---|
| 106 | {
|
---|
| 107 | "value": {
|
---|
| 108 | "txt": "[random] is correct. Try again"
|
---|
| 109 | },
|
---|
| 110 | "condition": {
|
---|
| 111 | "values": {
|
---|
| 112 | }
|
---|
| 113 | }
|
---|
[30] | 114 | }
|
---|
[117] | 115 | ]
|
---|
| 116 | ]
|
---|
[26] | 117 | }
|
---|
| 118 | ],
|
---|
[118] | 119 | "stimulation": {
|
---|
| 120 | "Textual": {
|
---|
| 121 | "question": "[question]?"
|
---|
| 122 | }
|
---|
| 123 | },
|
---|
[117] | 124 | "answer": {
|
---|
| 125 | "BoolAnswer": {
|
---|
| 126 | "parameter": "retry"
|
---|
| 127 | }
|
---|
| 128 | },
|
---|
| 129 | "evaluation": [
|
---|
| 130 | {
|
---|
| 131 | "SetBestMatch": [
|
---|
| 132 | "phase",
|
---|
| 133 | [
|
---|
| 134 | {
|
---|
| 135 | "value": {
|
---|
| 136 | "txt": "END"
|
---|
| 137 | },
|
---|
| 138 | "condition": {
|
---|
| 139 | "values": {
|
---|
| 140 | "retry": {
|
---|
| 141 | "bool": false
|
---|
| 142 | }
|
---|
| 143 | }
|
---|
[26] | 144 | }
|
---|
[117] | 145 | },
|
---|
| 146 | {
|
---|
| 147 | "value": {
|
---|
| 148 | "txt": "START"
|
---|
| 149 | },
|
---|
| 150 | "condition": {
|
---|
| 151 | "values": {
|
---|
| 152 | "retry": {
|
---|
| 153 | "bool": true
|
---|
| 154 | }
|
---|
| 155 | }
|
---|
[26] | 156 | }
|
---|
| 157 | }
|
---|
[117] | 158 | ]
|
---|
| 159 | ]
|
---|
| 160 | }
|
---|
| 161 | ]
|
---|
[26] | 162 | },
|
---|
[117] | 163 | "badnum": {
|
---|
| 164 | "preparation": [
|
---|
[26] | 165 | {
|
---|
[117] | 166 | "SetBestMatch": [
|
---|
| 167 | "question",
|
---|
| 168 | [
|
---|
| 169 | {
|
---|
| 170 | "value": {
|
---|
| 171 | "txt": "Nah, [random] is outside 0 to 9. Do you want to retry"
|
---|
| 172 | },
|
---|
| 173 | "condition": {
|
---|
| 174 | "values": {
|
---|
| 175 | }
|
---|
| 176 | }
|
---|
| 177 | },
|
---|
| 178 | {
|
---|
| 179 | "value": {
|
---|
| 180 | "txt": "That was not a correct answer. Try again"
|
---|
| 181 | },
|
---|
| 182 | "condition": {
|
---|
| 183 | "values": {
|
---|
| 184 | }
|
---|
| 185 | }
|
---|
[30] | 186 | }
|
---|
[117] | 187 | ]
|
---|
| 188 | ]
|
---|
[26] | 189 | }
|
---|
| 190 | ],
|
---|
[118] | 191 | "stimulation": {
|
---|
| 192 | "Textual": {
|
---|
| 193 | "question": "[question]?"
|
---|
| 194 | }
|
---|
| 195 | },
|
---|
[117] | 196 | "answer": {
|
---|
| 197 | "BoolAnswer": {
|
---|
| 198 | "parameter": "retry"
|
---|
| 199 | }
|
---|
| 200 | },
|
---|
| 201 | "evaluation": [
|
---|
| 202 | {
|
---|
| 203 | "SetBestMatch": [
|
---|
| 204 | "phase",
|
---|
| 205 | [
|
---|
| 206 | {
|
---|
| 207 | "value": {
|
---|
| 208 | "txt": "END"
|
---|
| 209 | },
|
---|
| 210 | "condition": {
|
---|
| 211 | "values": {
|
---|
| 212 | "retry": {
|
---|
| 213 | "bool": false
|
---|
| 214 | }
|
---|
| 215 | }
|
---|
[26] | 216 | }
|
---|
[117] | 217 | },
|
---|
| 218 | {
|
---|
| 219 | "value": {
|
---|
| 220 | "txt": "START"
|
---|
| 221 | },
|
---|
| 222 | "condition": {
|
---|
| 223 | "values": {
|
---|
| 224 | "retry": {
|
---|
| 225 | "bool": true
|
---|
| 226 | }
|
---|
| 227 | }
|
---|
[26] | 228 | }
|
---|
| 229 | }
|
---|
[117] | 230 | ]
|
---|
| 231 | ]
|
---|
| 232 | }
|
---|
| 233 | ]
|
---|
[26] | 234 | }
|
---|
[117] | 235 | }
|
---|
[26] | 236 | },
|
---|
| 237 | "parameters": {
|
---|
| 238 | "values": {
|
---|
[118] | 239 | "phase": {
|
---|
[26] | 240 | "txt": "START"
|
---|
| 241 | }
|
---|
| 242 | }
|
---|
| 243 | }
|
---|
[118] | 244 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.