ItEr39S16CUConfiguracionMaquinasItEr35S09: Some formatting and renaming method to show better intent
This commit is contained in:
parent
8bd2b5edbf
commit
dbafb8a3ae
1 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue