Vector consumption_rate_schedule = new Vector(); Enumeration schedule_elements = getMergedSchedule().getAllScheduleElements(); while (schedule_elements.hasMoreElements()) { ose = (ObjectScheduleElement)schedule_elements.nextElement(); rate = getRate(resource, (Vector)ose.getObject()); if (rate == null) continue;  rse = new ObjectScheduleElement(); rse.setObject(rate);  rse.setStartTime(ose.getStartTime()); rse.setEndTime(ose.getEndTime()); consumption_rate_schedule.addElement(rse); } return newObjectSchedule(consumption_rate_schedule.elements());
Vector consumption_rate_schedule = new Vector(); Enumeration schedule_elements = getMergedSchedule().getAllScheduleElements(); while (schedule_elements.hasMoreElements()) { ose = (ObjectScheduleElement) schedule_elements.nextElement(); rate = getRate(resource, (Vector) ose.getObject()); if (rate == null) continue;  rse = new ObjectScheduleElement(); rse.setObject(rate);  rse.setStartTime(ose.getStartTime()); rse.setEndTime(ose.getEndTime()); consumption_rate_schedule.addElement(rse);
    public Schedule buildConsumptionRateSchedule(Asset resource) {	ObjectScheduleElement ose;	Rate rate;	// This needs to be changed to a RateScheduleElement once I get the OK from	// the other plugin developers - AHF//	RateScheduleElement rse; 	ObjectScheduleElement rse;	Vector consumption_rate_schedule = new Vector();	Enumeration schedule_elements = getMergedSchedule().getAllScheduleElements();	while (schedule_elements.hasMoreElements()) {	    ose = (ObjectScheduleElement)schedule_elements.nextElement();	    rate = getRate(resource, (Vector)ose.getObject());	    if (rate == null)		continue;// 	    rse = GLMFactory.newRateScheduleElement();	    rse = new ObjectScheduleElement();	    rse.setObject(rate);// 	    rse.setRate(rate);	    rse.setStartTime(ose.getStartTime());	    rse.setEndTime(ose.getEndTime());	    consumption_rate_schedule.addElement(rse);	}	return newObjectSchedule(consumption_rate_schedule.elements());// 	return GLMFactory.newRateSchedule(consumption_rate_schedule.elements());    }