Exemple #1
0
 // sets the working start day of every activity to the earliest start day
 public void resetActivityStartDays() {
   Iterator<Activity> it = activities.iterator();
   while (it.hasNext()) {
     Activity a = it.next();
     a.setStartDay(a.getTimeMin());
   }
 }
Exemple #2
0
 public Calendar calculateEndDate() {
   Activity end = this.getActivityByName("END");
   if (end != null) {
     end.setStartDay(maxActivityDuration());
     this.length = end.getStartDay();
     this.endDate = projectCalendar.calculateEndDate(startDate, this.length);
     return this.endDate;
   }
   return null;
 }