[Bug #871] Fixed problem calculating initial date.
* Not all tasks were taking into account calculating initial date. Till now only initial tasks were taken into account but depending on constraints it could happen that some tasks start before than initial tasks. FEA: ItEr71S04BugFixing
This commit is contained in:
parent
3d2571d362
commit
a0e9118720
1 changed files with 2 additions and 3 deletions
|
|
@ -81,8 +81,7 @@ public class CriticalPathCalculator<T, D extends IDependency<T>> {
|
|||
}
|
||||
|
||||
private LocalDate calculateInitDate() {
|
||||
List<T> initialTasks = graph.getInitialTasks();
|
||||
if (initialTasks.isEmpty()) {
|
||||
if (graph.getTasks().isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
GanttDate ganttDate = Collections.min(getStartDates());
|
||||
|
|
@ -91,7 +90,7 @@ public class CriticalPathCalculator<T, D extends IDependency<T>> {
|
|||
|
||||
private List<GanttDate> getStartDates() {
|
||||
List<GanttDate> result = new ArrayList<GanttDate>();
|
||||
for (T task : graph.getInitialTasks()) {
|
||||
for (T task : graph.getTasks()) {
|
||||
result.add(graph.getStartDate(task));
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue