示例#1
0
        public DefaultAssessment(ProblemDataManager problemDataManager, SkillsDataManager skillDataManager,
                                 IList <string> skills, IList <string> problems, string challengeProblem)
        {
            if (skills.Count != problems.Count)
            {
                throw new Exception("Skills Count should Equal Problem Count:  Invalid Relationships");
            }

            aggregateGrader = new Grader(problems.Count);

            foreach (string skill in skills)
            {
                if (!dictionary.ContainsKey(skill))
                {
                    dictionary.Add(skill, new Grader(countOccurances(skill, skills)));
                }
            }

            this.problemDataManager = problemDataManager;
            this.skillDataManager   = skillDataManager;

            this.skills           = skills;
            this.problems         = problems;
            this.challengeProblem = challengeProblem;
        }
示例#2
0
 public DefaultAssessmentBuilder(ProblemDataManager problemDataManager, SkillsDataManager skillsDataManager)
 {
     this.problemDataManager = problemDataManager;
     this.skillsDataManager  = skillsDataManager;
 }
示例#3
0
        /*
         * Create the basic class.
         **/

        public GroupLinkageManager(AssetsDataManager adm, ProblemDataManager pdm)
        {
            groupLinks = new Dictionary <string, GroupLinkageRecord>();
            this.adm   = adm;
            this.pdm   = pdm;
        }