aggregator-core/src/main/java/org/arrowhead/wp5/agg/impl/Aggregator.java
@Override
	public void createFlexOfferSchedule(int flexOfferId,
			FlexOfferSchedule flexOfferSchedule) throws FlexOfferException {
		AggregatedFlexOffer fo = this.aggFlexOffers.get(flexOfferId);
		if (fo != null && flexOfferSchedule != null) {
			flexOfferSchedule.fixNumericalErrors(fo);
			if (flexOfferSchedule.isCorrect(fo)) {
				fo.setFlexOfferSchedule(flexOfferSchedule);

				/* Perform the disaggregation of the schedule, followed by execution */
				this.executeFlexOffers(this.disaggregateFlexOffer(fo));				
			} else
				throw new FlexOfferException(
						"Incorrect aggregated flex-offer schedule!");
		}
	}
/**
	 * This method allows VM setting aggregated flexoffer schedule
	 */
This method allows VM setting aggregated flexoffer schedule
This method allows VM setting aggregated flexoffer schedule
@Override
	public void createFlexOfferSchedule(int flexOfferId,
			FlexOfferSchedule flexOfferSchedule) throws FlexOfferException {
		AggregatedFlexOffer fo = this.aggFlexOffers.get(flexOfferId);
		if (fo != null && flexOfferSchedule != null) {
			flexOfferSchedule.fixNumericalErrors(fo);
			if (flexOfferSchedule.isCorrect(fo)) {
				fo.setFlexOfferSchedule(flexOfferSchedule);
				/* Perform the disaggregation of the schedule, followed by execution */
				this.executeFlexOffers(this.disaggregateFlexOffer(fo));				
			} else
				throw new FlexOfferException(
						"Incorrect aggregated flex-offer schedule!");
		}
	}
@ Override public void createFlexOfferSchedule ( int flexOfferId , FlexOfferSchedule flexOfferSchedule ) throws FlexOfferException { AggregatedFlexOffer fo = this . aggFlexOffers . get ( flexOfferId ) ; if ( fo != null && flexOfferSchedule != null ) { flexOfferSchedule . fixNumericalErrors ( fo ) ; if ( flexOfferSchedule . isCorrect ( fo ) ) { fo . setFlexOfferSchedule ( flexOfferSchedule ) ; /* Perform the disaggregation of the schedule, followed by execution */ this . executeFlexOffers ( this . disaggregateFlexOffer ( fo ) ) ; } else throw new FlexOfferException ( "Incorrect aggregated flex-offer schedule!" ) ; } }
This method allows VM setting aggregated flexoffer schedule
This method allows VM setting aggregated flexoffer schedule