ItEr60S04ValidacionEProbasFuncionaisItEr59S04: [Bug #554] Fix bug.
Replaces the usual calculation of ResourcesPerDay (based on DayAssignments) for a plain assignation to 1.
This commit is contained in:
parent
0686dcc824
commit
4f14ed9292
3 changed files with 6 additions and 2 deletions
|
|
@ -132,7 +132,7 @@ public class GenericResourceAllocation extends
|
|||
Collection<? extends Criterion> criterions) {
|
||||
GenericResourceAllocation result = new GenericResourceAllocation(task);
|
||||
result.criterions = new HashSet<Criterion>(criterions);
|
||||
result.updateResourcesPerDay();
|
||||
result.setResourcesPerDayToAmount(1);
|
||||
return create(result);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -384,6 +384,10 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
|
|||
}
|
||||
}
|
||||
|
||||
protected void setResourcesPerDayToAmount(int amount) {
|
||||
this.resourcesPerDay = ResourcesPerDay.amount(amount);
|
||||
}
|
||||
|
||||
public ResourceAllocation(Task task) {
|
||||
this(task, null);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public class SpecificResourceAllocation extends
|
|||
SpecificResourceAllocation result = create(new SpecificResourceAllocation(
|
||||
task));
|
||||
result.setResource(resource);
|
||||
result.updateResourcesPerDay();
|
||||
result.setResourcesPerDayToAmount(1);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue