/// <summary>
 /// Pass a line that contain target
 /// </summary>
 /// <param name="targetContainLine"></param>
 public target(string targetContainLine, List <compiledFiles> compiledFiles)
 {
     idOfTarget    = targetContainLine.Split(' ')[0];
     deadline      = Convert.ToInt32(targetContainLine.Split(' ')[1]);
     goalPoints    = Convert.ToInt32(targetContainLine.Split(' ')[2]);
     targettedFile = compiledFiles.Find(x => x.id == idOfTarget);
 }
 public void processFile(compiledFiles file)
 {
     processedFiles.Add(file);
     file.compiled     = true;
     serverProcessTime = serverProcessTime + file.compilationTime;
     outputs.Add(file.id + " " + serverId);
 }
 public static List <compiledFiles> listOfAllDependencies(compiledFiles target)
 {
     listAllDependencies.Add(target);
     foreach (compiledFiles dependencies in target.dependencies)
     {
         //listAllDependencies.Add(dependencies);
         listOfAllDependencies(dependencies);
     }
     //listAllDependencies.Reverse();
     return(listAllDependencies);
 }