aggregator-manager/src/test/java/org/arrowhead/wp5/agg/junit/UtilsFoDummies.java
public static void FlexOffer_SetWeight(FlexOffer f, double value)
	{
		if (f.getSlices() == null || f.getSlices().length == 0)
		{
			f.setSlices(new FlexOfferSlice[1]);
			f.getSlices()[0] = new FlexOfferSlice(); 
		}
		f.getSlices()[0].setEnergyConstraint(new FlexOfferConstraint(value, value));
	}
// Used in testing to set weight 
Used in testing to set weight
Used in testing to set weight
public static void FlexOffer_SetWeight(FlexOffer f, double value)
	{
		if (f.getSlices() == null || f.getSlices().length == 0)
		{
			f.setSlices(new FlexOfferSlice[1]);
			f.getSlices()[0] = new FlexOfferSlice(); 
		}
		f.getSlices()[0].setEnergyConstraint(new FlexOfferConstraint(value, value));
	}
public static void FlexOffer_SetWeight ( FlexOffer f , double value ) { if ( f . getSlices ( ) == null || f . getSlices ( ) . length == 0 ) { f . setSlices ( new FlexOfferSlice [ 1 ] ) ; f . getSlices ( ) [ 0 ] = new FlexOfferSlice ( ) ; } f . getSlices ( ) [ 0 ] . setEnergyConstraint ( new FlexOfferConstraint ( value , value ) ) ; }
Used in testing to set weight
Used in testing to set weight