long end_time; long start_time; OrgActivity activity; Enumeration activities = orgActivities_.elements();
long end_time; long newET = Long.MIN_VALUE; long start_time; long newST = Long.MAX_VALUE; OrgActivity activity; Enumeration activities = orgActivities_.elements();
    private void updateOPlanTimes() {	long end_time;	long start_time;	OrgActivity activity;	Enumeration activities = orgActivities_.elements();	// initialize endTime/startTime values	if (activities.hasMoreElements()) {	    activity = (OrgActivity)activities.nextElement();	    endTime_ = getEndTime(activity);	    startTime_ = getStartTime(activity);	}	// search for first/last times	while (activities.hasMoreElements()) {	    activity = (OrgActivity)activities.nextElement();	    end_time = getEndTime(activity);	    if ((end_time > endTime_)) {		endTime_ = end_time;	    }	    start_time = getStartTime(activity);	    if (start_time < startTime_) {		startTime_ = start_time;	    }	}    }