Take into account if the allocation has consolidations

If the task has consolidations is must be allocated in a forwards way.

FEA: ItEr66OTS07PlanificacionHaciaAtrasItEr65OTS03
This commit is contained in:
Óscar González Fernández 2010-12-29 22:17:35 +01:00
parent a2e8c3ea2e
commit 45fb180da0

View file

@ -627,7 +627,7 @@ public class Task extends TaskElement implements ITaskPositionConstrained {
* The allocation direction in which the allocation must be done
*/
public Direction getAllocationDirection() {
if (lastAllocationDirection == null) {
if (lastAllocationDirection == null || hasConsolidations()) {
return Direction.FORWARD;
}
return lastAllocationDirection;