Beispiel #1
0
        public String GetRecLine(StGraphItem item, StResult result)
        {
            String retval = "";

            String countingCorrectness = "";
            String correctness         = "";

            if (result.CountingCorrectness)
            {
                countingCorrectness = "1";
            }
            else
            {
                countingCorrectness = "0";
            }

            if (result.Correctness)
            {
                correctness = "1";
            }
            else
            {
                correctness = "0";
            }

            retval += result.SpanWidth + "\t" + result.PractiseMode + "\t" + result.GroupNum + "\t" + result.GroupSeq + "\t" +
                      item.TarCount + "\t" + item.InterCircleCount + "\t" + item.InterTriCount + "\t" +
                      (((item.InterTriCount + item.InterCircleCount)) / item.TarCount).ToString() + "\t" +
                      item.DistanceTar + "\t" + item.DistanceComm + "\t" + result.ClickOnType + "\t" + result.ClickOnPosition + "\t" +
                      countingCorrectness + "\t" + result.GraphRT + "\t" +
                      correctness + "\t" + result.RT + "\t" + result.UserSerialCorrectCount + "\t" +
                      result.StdSerial + "\t" + result.UserSerial + "\t" + result.UserSerialCorrectMask;

            return(retval);
        }
Beispiel #2
0
        public void OnGraphConfirm()
        {
            mGraphTicker.Stop();
            //save result
            StResult result = new StResult();

            result.SpanWidth           = mPage.SpanArrangement[mPage.mTotalSpanIndexAt];
            result.GroupNum            = mPage.mGrpAt + 1;
            result.GroupSeq            = mPage.mSubGrpAt + 1;
            result.ClickOnType         = mPage.mOrganizer.mGC.GetTapeTypecall();
            result.ClickOnPosition     = mPage.mOrganizer.mGC.GetTapePositioncall();
            result.CountingCorrectness = mPage.mOrganizer.mGC.GetCountingCorrectness();
            if (!result.CountingCorrectness)
            {
                mCountingIncorrectNum++;
            }
            result.PractiseMode = !mbFormal;
            result.GraphRT      = mGraphTicker.ElapsedMilliseconds;

            mPage.mResults.Add(result);

            //iter
            mPage.mTotalItemIndexAt++;
            mPage.mSubGrpAt++;
            //judge next step to
            if (mPage.mSubGrpAt == mPage.SpanArrangement[mPage.mTotalSpanIndexAt])
            {
                mPage.mSubGrpAt = 0;
                mStage          = InTestStage.Count;
            }

            StageIteration();
        }