Exemplo n.º 1
0
        public void PCATDataSaveReport()
        {
            List <QRecOPSpan> rec = new List <QRecOPSpan>();
            int thisCursor1       = 0;

            for (int i = 0; i < mPage.mGroupArrangement.Length; i++)
            {
                QRecOPSpan subGroupRec = new QRecOPSpan();
                for (int j = 0; j < mPage.mGroupArrangement[i]; j++)
                {
                    subGroupRec.AnimalStim.Add(animal[thisCursor1]);
                    subGroupRec.ExpressionStim.Add(mathExpression[thisCursor1]);
                    subGroupRec.AnswerStim.Add(displayedAnswer[thisCursor1].ToString());
                    subGroupRec.Confirm.Add(choice[thisCursor1].ToString());
                    subGroupRec.ConfirmRT.Add(choiceMadeTime[thisCursor1] - choiceShowTime[thisCursor1]);
                    subGroupRec.ConfirmCorrectness.Add(correctness[thisCursor1]);
                    subGroupRec.ExposureTime.Add(mathOff[thisCursor1] - mathOn[thisCursor1]);

                    thisCursor1++;
                }

                subGroupRec.UserOrder        = userInputOrder[i];
                subGroupRec.StimOrder        = rightOrder[i];
                subGroupRec.OrderRT          = orderOff[i] - orderOn[i];
                subGroupRec.OrderCorrectness = subGroupRec.UserOrder.Equals(subGroupRec.StimOrder);
                subGroupRec.GroupID          = mPage.mGroupArrangement[i];
                subGroupRec.SubGroupID       = PageOpSpan.getSubGroupID(i);

                rec.Add(subGroupRec);
            }

            //DB work
            mPage.mMainWindow.mDB.AddOpSpanExpressionRecord(rec, mPage.mMainWindow.mUserID);
            mPage.mMainWindow.mDB.AddOPSpanOrderRecord(rec, mPage.mMainWindow.mUserID);
        }
Exemplo n.º 2
0
 public SubPageDetermine(ref PageOpSpan _page, OrganizerTrailOS org)
 {
     mPage      = _page;
     mOrg       = org;
     mDualDeter = new CompDualDetermine();
     mDualDeter.mConfirmMethod = confirmReaction;
     mDualDeter.mDenyMethod    = denyReaction;
 }
Exemplo n.º 3
0
        public OrganizerTrailOS(List <TrailGroupOS> _groups, PageOpSpan _page, bool practise)
        {
            mGroups = _groups;
            mPage   = _page;

            mPractiseMode = practise;
            mAnswerGrp    = new List <AnswerOpSpan>();
            mAnswer       = new AnswerOpSpan();

            mCurTrailsCount = mGroups[mGrpAt].mTrails.Count;
            mCurTypeMax     = getCountOfType(mCurTrailsCount);

            mOSEM = new OpSpanEquationMaker();

            mPage.mTimer.Start();
        }
Exemplo n.º 4
0
        public OrganizerPractiseChar(PageOpSpan page) : base(page)
        {
            int[] scheme = { 2, 3 };

            mRealOrder   = new List <List <int> >();
            mAnswers     = new List <List <int> >();
            mCorrectness = new List <bool>();
            mSW          = new Stopwatch();
            mRTs         = new List <long>();

            if (!mPage.mbFixedItemMode)
            {
                for (int i = 0; i < scheme.Length; i++)
                {
                    mRealOrder.Add(getNonRepeatArray(scheme[i]));
                }
            }
            else//fixed mode
            {
                TabFetcher fetcher =
                    new TabFetcher(FEITStandard.GetExePath() + "OP\\opspanword.txt", "\\t");

                fetcher.Open();
                fetcher.GetLineBy();//skip header

                for (int i = 0; i < scheme.Length; i++)
                {
                    List <int> group = new List <int>();
                    for (int j = 0; j < scheme[i]; j++)
                    {
                        List <string> line = fetcher.GetLineBy();
                        group.Add(UIGroupNumChecksOS.GetIndexByChar(line[2]));
                    }
                    mRealOrder.Add(group);
                }

                fetcher.Close();
            }



            mfNext = showInstruction;
        }
Exemplo n.º 5
0
        public RecorderOpSpan(PageOpSpan page)
        {
            mPage = page;

            mathExpression  = new List <string>();
            mathOn          = new List <long>();
            mathOff         = new List <long>();
            displayedAnswer = new List <int>();
            choice          = new List <string>();
            correctness     = new List <bool>();
            choiceShowTime  = new List <long>();
            choiceMadeTime  = new List <long>();
            animal          = new List <string>();
            //groupID = new List<int>();
            //subgroupID = new List<int>();

            orderOn        = new List <long>();
            orderOff       = new List <long>();
            rightOrder     = new List <string>();
            userInputOrder = new List <string>();
        }
Exemplo n.º 6
0
        public OrganizerPractiseEquation(PageOpSpan page) : base(page)
        {
            mPage    = page;
            mOSEM    = new OpSpanEquationMaker();
            mRDM     = new Random();
            mfNext   = showInstruction;
            mRTs     = new List <long>();
            mWatch   = new Stopwatch();
            mAnswers = new List <bool>();

            if (mPage.mbFixedItemMode)
            {
                mEquations = new List <StEquation>();
                TabFetcher fetcher =
                    new TabFetcher(
                        FEITStandard.GetExePath() + "OP\\opspanbaseline.txt", "\\t");
                fetcher.Open();

                fetcher.GetLineBy();//skip header
                List <String> line;
                while ((line = fetcher.GetLineBy()).Count != 0)
                {
                    StEquation equ = new StEquation();
                    equ.Equation = line[1];
                    equ.Result   = Int32.Parse(line[2]);
                    if (Int32.Parse(line[3]) == 1)
                    {
                        equ.Answer = true;
                    }
                    else
                    {
                        equ.Answer = false;
                    }

                    mEquations.Add(equ);
                }

                fetcher.Close();
            }
        }
Exemplo n.º 7
0
 public SubPageOrderOSPrac(PageOpSpan page, OrganizerPractiseChar opc) : base(ref page, null)
 {
     mOPC  = opc;
     mPage = page;
 }
Exemplo n.º 8
0
 public SubPageOrderOS(ref PageOpSpan _page, OrganizerTrailOS org)
 {
     mPage           = _page;
     mOrg            = org;
     mCheckComponent = new UIGroupNumChecksOS();
 }
Exemplo n.º 9
0
 public OrganizerPractiseBase(PageOpSpan page)
 {
     mPage = page;
 }