// 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()); } }
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; }