public static enum ExamDistributionConstraint.DistributionType extends Enum<ExamDistributionConstraint.DistributionType>
Enum Constant and Description |
---|
DifferentDay
Different day constraint type
|
DifferentPeriod
Different period constraint type
|
DifferentRoom
Different room constraint type
|
Precedence
Precedence constraint type
|
PrecedenceRev
Precedence constraint type (reverse order)
|
SameDay
Same day constraint type
|
SamePeriod
Same period constraint type
|
SameRoom
Same room constraint type
|
Modifier and Type | Method and Description |
---|---|
String |
getReference() |
String |
getUniTimeReference() |
boolean |
isPeriodRelated() |
boolean |
isRoomRelated() |
boolean |
isSatisfied(ExamPeriod first,
ExamPeriod second) |
boolean |
isSatisfied(ExamPlacement first,
ExamPlacement second) |
boolean |
isSatisfied(ExamPlacement first,
ExamRoomPlacement second) |
boolean |
isUniTimeNegative() |
static ExamDistributionConstraint.DistributionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExamDistributionConstraint.DistributionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExamDistributionConstraint.DistributionType SameRoom
public static final ExamDistributionConstraint.DistributionType DifferentRoom
public static final ExamDistributionConstraint.DistributionType SamePeriod
public static final ExamDistributionConstraint.DistributionType DifferentPeriod
public static final ExamDistributionConstraint.DistributionType Precedence
public static final ExamDistributionConstraint.DistributionType PrecedenceRev
public static final ExamDistributionConstraint.DistributionType SameDay
public static final ExamDistributionConstraint.DistributionType DifferentDay
public static ExamDistributionConstraint.DistributionType[] values()
for (ExamDistributionConstraint.DistributionType c : ExamDistributionConstraint.DistributionType.values()) System.out.println(c);
public static ExamDistributionConstraint.DistributionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getReference()
public boolean isSatisfied(ExamPlacement first, ExamPlacement second)
public boolean isRoomRelated()
public boolean isPeriodRelated()
public boolean isSatisfied(ExamPeriod first, ExamPeriod second)
public boolean isSatisfied(ExamPlacement first, ExamRoomPlacement second)
public String getUniTimeReference()
public boolean isUniTimeNegative()