double u = newRemainingUnits;
double remaining = getRemainingUnits();
double factor= u/remaining;
Iterator i = getAssignments().iterator();
while (i.hasNext()) {
Assignment assignment = (Assignment) i.next();
double r = assignment.getLaborUnits();
// if (!assignment.isLabor())
// continue;
if (conserveTotalUnits)
getSchedulingRule().adjustRemainingUnits(assignment, assignment.getRemainingLaborUnits() * multiplier, assignment.getRemainingLaborUnits(), false, false);
else {
getSchedulingRule().adjustRemainingUnits(assignment,factor*r,r, false, false);
}
}