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; }
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; }
protected virtual void Visit(ParallelParentTask task) { VisitAll(task); }
protected override void Visit(ParallelParentTask task) { writer.WriteLine($"{tabs}Parallel Task - {task.Label} - {task.Description}"); base.Visit(task); }