// Job precedence is build-in
// Resource capacity
ExecutionMode executionMode = allocation.getExecutionMode();
if (executionMode != null && allocation.getJob().getJobType() == JobType.STANDARD) {
for (ResourceRequirement resourceRequirement : executionMode.getResourceRequirementList()) {
ResourceCapacityTracker tracker = resourceCapacityTrackerMap.get(
resourceRequirement.getResource());
hardScore -= tracker.getHardScore();
tracker.retract(resourceRequirement, allocation);
hardScore += tracker.getHardScore();
}
}
// Total project delay and total make span
if (allocation.getJob().getJobType() == JobType.SINK) {
Integer endDate = allocation.getEndDate();