git-svn-id: svn://svn.dsv.su.se/scipro/scipro/trunk@509 73ecded7-942e-4092-bab0-0e58ef0ee984
This commit is contained in:
parent
8075bf2f0f
commit
d447d84f23
@ -64,11 +64,8 @@ public class ScheduleGenerator {
|
||||
for(ProjectEventTemplate e : eventTemplates){
|
||||
templateEstimatedDays += e.getEstimatedTimeConsumption();
|
||||
}
|
||||
System.out.println("Template days: " + templateEstimatedDays);
|
||||
userTimespan = Days.daysBetween(startDate, endDate).getDays();
|
||||
System.out.println("User timespan: " + userTimespan);
|
||||
ratio = (double)userTimespan / (double)templateEstimatedDays;
|
||||
System.out.println("Ratio: " + ratio);
|
||||
}
|
||||
|
||||
public ScheduleGeneratorResult generate(){
|
||||
@ -98,12 +95,6 @@ public class ScheduleGenerator {
|
||||
event.setDueDate(datePointer.toDate());
|
||||
events.add(event);
|
||||
}
|
||||
|
||||
//For debug...
|
||||
for(int i = 0; i < events.size(); i++){
|
||||
System.out.println("Event: " + events.get(i).getDueDate() + "\t" + "Template: " + eventTemplates.get(i).getEstimatedTimeConsumption());
|
||||
}
|
||||
|
||||
return new ScheduleGeneratorResult(template, events, totalDuration, templateEstimatedDays, startDate.toDate(), endDate.toDate());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user