예제 #1
0
        public static TeacherCheckManager CreaTeacherCheckManager(JudgeModes judgeMode, List <Answer> answers)
        {
            TeacherCheckManager teacherCheckManager = null;

            switch (judgeMode)
            {
            case JudgeModes.SingleReview:

                teacherCheckManager = new TeacherCheckManagerFirst(answers);

                break;

            case JudgeModes.MultiReview:

                teacherCheckManager = new TeacherCheckManagerSecond(answers);

                break;

            case JudgeModes.ThirdReview:
                teacherCheckManager = new TeacherCheckManagerThird(answers);

                break;

            case JudgeModes.FourReview:

                teacherCheckManager = new TeacherCheckManagerFourth(answers);

                break;
            }

            return(teacherCheckManager);
        }
예제 #2
0
        public QuestionGroup(String questionGroupId, JudgeModes judgeMode, IEnumerable <Teacher> teachers)
        {
            QuestionGroupId = questionGroupId;

            JudgeMode = judgeMode;

            Questions = new List <Question>();

            PressReviewManager = new PressReviewManager(teachers);
        }
예제 #3
0
        public AnswerCheck(String questionGroupId, List <Answer> answers, JudgeModes judgeMode)
        {
            AnswerCheckId = Guid.NewGuid().ToString();

            Answers = answers;

            QuestionGroupId = questionGroupId;

            TeacherCheckManagerx = TeacherCheckManagerFactory.CreaTeacherCheckManager(judgeMode, answers);

            CombinationedPicUrl = "http://pic39.nipic.com/20140226/18071023_162553457000_2.jpg";
        }
예제 #4
0
        protected TeacherCheckManager(JudgeModes judgeMode, List <Answer> answers)
        {
            TeacherChecks = new List <TeacherCheck>((Int32)judgeMode);

            IsAllFinish = false;

            IsArbitration = false;

            ThirdCounter = 0;

            IsAllow = true;

            ReadyCheckAnswers = answers;
        }