Esempio n. 1
0
 /// <summary>
 /// Get auto evals that are to be run during submission
 /// </summary>
 public Evaluation.EvaluationList GetSubmitAutoEvals(int asstID)
 {
     Evaluation.EvaluationList allevals = GetAutoEvals(asstID);
     Evaluation.EvaluationList sevals   = new Evaluation.EvaluationList();
     foreach (Evaluation eval in allevals)
     {
         if (eval.RunOnSubmit)
         {
             sevals.Add(eval);
         }
     }
     return(sevals);
 }
Esempio n. 2
0
 /// <summary>
 /// Get all evaluations for the assignment that are competitive
 /// </summary>
 public Evaluation.EvaluationList GetCompetitions(int asstID)
 {
     Evaluation.EvaluationList evals = GetEvals(asstID);
     Evaluation.EvaluationList comps = new Evaluation.EvaluationList();
     foreach (Evaluation eval in evals)
     {
         if (eval.Competitive)
         {
             comps.Add(eval);
         }
     }
     return(comps);
 }
Esempio n. 3
0
            public Evaluation.EvaluationList GetBuildOrder()
            {
                //Build graph
                Hashtable graph = new Hashtable();
                Node      root  = BuildGraph(new Evaluations(m_ident), m_eval, graph);

                //Order
                ArrayList sort = new ArrayList();

                SortGraph(root, graph, sort);

                //Convert
                int i;

                Evaluation.EvaluationList border = new Evaluation.EvaluationList();
                for (i = sort.Count - 1; i > 0; i--)
                {
                    border.Add(((Node)sort[i]).Eval);
                }

                return(border);
            }