Menu

#1 Mispelled code into DiscreteResourceDomain

open
nobody
None
5
2007-03-09
2007-03-09
Anonymous
No

/**
* Constructs a resource domain
* @param startTime earliest time that this resource is available
* @param endTime latest time that this resource is available
* @param resourceQuantity the quantity in which this resource is available
*/
public DiscreteResourceDomain(int startTime, int endTime, int resourceQuantity[]){
super(startTime, endTime);
amountRemaining = new IntValIntervalSet();
for (int i=0; i<resourceQuantity.length; i++) {
amountRemaining.add(startTime+i,startTime+i, resourceQuantity[i]);
}
}

startTime+1,endTime+1 looks better.

jean-pierre.germinet@eurocopter.com

Discussion


Log in to post a comment.

MongoDB Logo MongoDB