예제 #1
0
        protected override void Visit(ParallelParentTask task)
        {
            int maxDays = 0;
            foreach(Task t in task)
            {
                int estimatedDays = t.EstimatedDaysToComplete;

                if (estimatedDays > maxDays)
                    maxDays = estimatedDays;
            }
            days += maxDays;
        }
예제 #2
0
        protected override void Visit(ParallelParentTask task)
        {
            int startDay = currentDay;
            int lastDay = 0;

            foreach (Task t in task.Children)
            {
                Visit((dynamic)t);

                //act as if all tasks are starting on the same day
                if (currentDay > lastDay)
                    lastDay = currentDay;
                currentDay = startDay;
            }

            currentDay = lastDay;
        }
예제 #3
0
 protected virtual void Visit(ParallelParentTask task)
 {
     VisitAll(task);
 }
예제 #4
0
 protected override void Visit(ParallelParentTask task)
 {
     writer.WriteLine($"{tabs}Parallel Task - {task.Label} - {task.Description}");
     base.Visit(task);
 }