예제 #1
0
파일: AXCPT.cs 프로젝트: yesjessn/VRAM
 public TrialOutput(int num, TrialType type, TrialState state, string stimulusName, List <RecordResponses.Response> response)
 {
     this.num          = num;
     this.type         = type;
     this.state        = state;
     this.stimulusName = stimulusName;
     this.response     = response;
 }
예제 #2
0
파일: AXCPT.cs 프로젝트: yesjessn/VRAM
        public static Texture GetTexture(this TrialState state, TrialType type, Textures textures)
        {
            switch (state)
            {
            case TrialState.Cue:         return(textures.Get(type.cue));

            case TrialState.ISI:         return(textures.isi);

            case TrialState.Probe:       return(textures.Get(type.probe));

            case TrialState.PreCueITI:   return(textures.iti);

            case TrialState.PreProbeITI: return(textures.iti);

            default:                     return(null);
            }
        }
예제 #3
0
 public Option <TrialState> HandleResponse(TrialState state, List <RecordResponses.Response> responses, TrialType trialType)
 {
     _previousState = state;
     if (state == TrialState.ISI || state == TrialState.PreCueITI)
     {
         if (responses.Count == 0)
         {
             return(Option <TrialState> .Create(TrialState.Slow));
         }
         else if (trialType.CheckResponse(state, responses.Last().buttonPressed))
         {
             return(Option <TrialState> .Create(TrialState.Correct));
         }
         else
         {
             return(Option <TrialState> .Create(TrialState.Incorrect));
         }
     }
     return(Option <TrialState> .CreateEmpty());
 }