ItEr39S16CUConfiguracionMaquinasItEr35S09: Some formatting and renaming method to show better intent

This commit is contained in:
Óscar González Fernández 2009-12-20 16:13:44 +01:00
parent 8bd2b5edbf
commit dbafb8a3ae

View file

@ -142,15 +142,14 @@ public class ResourceAllocationModel implements IResourceAllocationModel {
@Transactional(readOnly = true)
public void accept() {
stepsBeforeDoingAllocation();
doTheAllocation(allocationRowsHandler
.doAllocation());
applyAllocationResult(allocationRowsHandler.doAllocation());
}
@Override
@Transactional(readOnly = true)
public void accept(AllocationResult modifiedAllocationResult) {
stepsBeforeDoingAllocation();
doTheAllocation(modifiedAllocationResult);
applyAllocationResult(modifiedAllocationResult);
}
@Override
@ -193,7 +192,7 @@ public class ResourceAllocationModel implements IResourceAllocationModel {
}
}
private void doTheAllocation(AllocationResult allocationResult) {
private void applyAllocationResult(AllocationResult allocationResult) {
Date previousStartDate = ganttTask.getBeginDate();
long previousLength = ganttTask.getLengthMilliseconds();
allocationResult.applyTo(task);