Added two new types of constraints
FEA: ItEr62OTS04PlanificacionHaciaAtras
This commit is contained in:
parent
f7e3adbfd2
commit
e9a392b455
3 changed files with 38 additions and 0 deletions
|
|
@ -41,6 +41,18 @@ public enum StartConstraintType {
|
|||
public StartConstraintType newTypeAfterMoved() {
|
||||
return START_NOT_EARLIER_THAN;
|
||||
}
|
||||
},
|
||||
AS_LATE_AS_POSSIBLE(false) {
|
||||
@Override
|
||||
public StartConstraintType newTypeAfterMoved() {
|
||||
return FINISH_NOT_LATER_THAN;
|
||||
}
|
||||
},
|
||||
FINISH_NOT_LATER_THAN(true) {
|
||||
@Override
|
||||
public StartConstraintType newTypeAfterMoved() {
|
||||
return FINISH_NOT_LATER_THAN;
|
||||
}
|
||||
};
|
||||
|
||||
private boolean dateRequired;
|
||||
|
|
|
|||
|
|
@ -134,6 +134,10 @@ public class TaskElementAdapter implements ITaskElementAdapter {
|
|||
return Collections
|
||||
.singletonList(biggerOrEqualThan(toGantt(startConstraint
|
||||
.getConstraintDate())));
|
||||
case AS_LATE_AS_POSSIBLE:
|
||||
return Collections.emptyList();
|
||||
case FINISH_NOT_LATER_THAN:
|
||||
return Collections.emptyList();
|
||||
default:
|
||||
throw new RuntimeException("can't handle " + constraintType);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,6 +103,28 @@ public class TaskPropertiesController extends GenericForwardComposer {
|
|||
public String getName() {
|
||||
return _("START_IN_FIXED_DATE");
|
||||
}
|
||||
},
|
||||
FINISH_NOT_LATER_THAN(StartConstraintType.FINISH_NOT_LATER_THAN) {
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return _("finish not later than");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return _("FINISH_NOT_LATER_THAN");
|
||||
}
|
||||
},
|
||||
AS_LATE_AS_POSSIBLE(StartConstraintType.AS_LATE_AS_POSSIBLE) {
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return _("as late as possible");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return _("AS_LATE_AS_POSSIBLE");
|
||||
}
|
||||
};
|
||||
|
||||
public static void appendItems(Combobox combo) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue