Ejemplo n.º 1
0
    public void resetDependentMeasures()
    {
        this.PalmTrajectory  = new List <Vector4>();
        this.IndexTrajectory = new List <Vector4>();
        this.ThumbTrajectory = new List <Vector4>();

        this.TrialStartTime               = -1L;
        this.FixationOnset                = -1L;
        this.FixationOffset               = -1L;
        this.StimulationOnset             = -1L;
        this.StimulusResponseIntervalTime = -1L;
        this.TargetOnset        = -1L;
        this.MovementOnset      = -1L;
        this.ObjectContact      = -1L;
        this.ReleaseTime        = -1L;
        this.VerbalResponseTime = -1L;

        this.ErrorCode       = "none";
        this.CorrectResponse = false;
        this.graspDirection  = GraspableObject.GraspDirection.NONE;
    }
Ejemplo n.º 2
0
    //Default constructor
    public TrialData(string TargetOrientation, string StimulationCondition, string Congruency, string BlockType)
    {
        this.PalmTrajectory        = new List <Vector4>();
        this.IndexTrajectory       = new List <Vector4>();
        this.ThumbTrajectory       = new List <Vector4>();
        this.InitialTargetLocation = new Vector3();

        this.BlockType    = BlockType;
        this.VisualOffset = 0.0f;

        this.TrialStartTime               = -1L;
        this.FixationOnset                = -1L;
        this.FixationOffset               = -1L;
        this.StimulationOnset             = -1L;
        this.StimulusResponseIntervalTime = -1L;
        this.TargetOnset        = -1L;
        this.MovementOnset      = -1L;
        this.ObjectContact      = -1L;
        this.ReleaseTime        = -1L;
        this.VerbalResponseTime = -1L;

        this.TargetOrientation    = TargetOrientation;
        this.StimulationCondition = StimulationCondition;
        this.Congruency           = Congruency;

        this.ErrorCode       = "none";
        this.CorrectResponse = false;
        this.graspDirection  = GraspableObject.GraspDirection.NONE;
        this.info            = "";
        if (this.Congruency == "both left")
        {
            info = "tact_thumb:locallight_left:globallight_" + (this.TargetOrientation == "upright" ? "left" : "right");
        }
        else if (this.Congruency == "both right")
        {
            info = "tact_index:locallight_right:globallight_" + (this.TargetOrientation == "upright" ? "right" : "left");
        }
        else if (this.Congruency == "light left - tactile index")
        {
            info = "tact_index:locallight_left:globallight_" + (this.TargetOrientation == "upright" ? "left" : "right");
        }
        else if (this.Congruency == "light right - tactile thumb")
        {
            info = "tact_thumb:locallight_right:globallight_" + (this.TargetOrientation == "upright" ? "right" : "left");
        }
        else if (this.Congruency == "light index - tactile index")
        {
            info = "tact_index:locallight_index:globallight_none";
        }
        else if (this.Congruency == "light thumb - tactile thumb")
        {
            info = "tact_thumb:locallight_thumb:globallight_none";
        }
        else if (this.Congruency == "light index - tactile thumb")
        {
            info = "tact_thumb:locallight_index:globallight_none";
        }
        else if (this.Congruency == "light thumb - tactile index")
        {
            info = "tact_index:locallight_thumb:globallight_none";
        }
        else
        {
            info = "unknown";
        }
    }