Fix wrong name

The method renamed was also used in non limiting allocations

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
This commit is contained in:
Óscar González Fernández 2010-09-20 00:18:36 +02:00
parent e24a04a80e
commit a5bfbac403
3 changed files with 3 additions and 3 deletions

View file

@ -133,7 +133,7 @@ public class GenericResourceAllocation extends
task));
}
public static GenericResourceAllocation createForLimiting(Task task,
public static GenericResourceAllocation create(Task task,
Collection<? extends Criterion> criterions) {
GenericResourceAllocation result = new GenericResourceAllocation(task);
result.criterions = new HashSet<Criterion>(criterions);

View file

@ -103,7 +103,7 @@ public class GenericAllocationRow extends AllocationRow {
}
private GenericResourceAllocation createGenericAllocation(Task task) {
GenericResourceAllocation result = GenericResourceAllocation.createForLimiting(task, criterions);
GenericResourceAllocation result = GenericResourceAllocation.create(task, criterions);
GenericResourceAllocation origin = (GenericResourceAllocation) getOrigin();
if (origin != null) {
result.overrideAssignedHoursForResource(origin);

View file

@ -103,7 +103,7 @@ public class LimitingAllocationRow {
public static LimitingAllocationRow create(Set<Criterion> criteria,
Collection<? extends Resource> resources, Task task, int priority) {
LimitingAllocationRow result = new LimitingAllocationRow(
GenericResourceAllocation.createForLimiting(task, criteria), task,
GenericResourceAllocation.create(task, criteria), task,
priority);
result.setResources(resources);
return result;