public static enum FlexibleConstraint.FlexibleConstraintType extends Enum<FlexibleConstraint.FlexibleConstraintType>
Enum Constant and Description |
---|
BREAK
There must be a break of a given length in a given time interval.
|
MAX_BREAKS
Limit number of breaks between adjacent classes on a day.
|
MAX_DAYS
Limit number of days of a week.
|
MAX_HALF_DAYS
Limit number of half-days of a week.
|
MAX_HOLES
Minimize free time of an instructor during a day (between the first and the last class).
|
MAX_WEEKS
Limit number of weeks on which an a class can take place.
|
MAXBLOCK_BACKTOBACK
Given classes must be taught in a way there is a break between two blocks of classes.
|
Modifier and Type | Method and Description |
---|---|
FlexibleConstraint |
create(Long id,
String owner,
String preference,
String reference) |
String |
getName() |
String |
getPattern() |
static FlexibleConstraint.FlexibleConstraintType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FlexibleConstraint.FlexibleConstraintType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlexibleConstraint.FlexibleConstraintType MAXBLOCK_BACKTOBACK
public static final FlexibleConstraint.FlexibleConstraintType BREAK
public static final FlexibleConstraint.FlexibleConstraintType MAX_BREAKS
public static final FlexibleConstraint.FlexibleConstraintType MAX_WEEKS
public static final FlexibleConstraint.FlexibleConstraintType MAX_DAYS
public static final FlexibleConstraint.FlexibleConstraintType MAX_HOLES
public static final FlexibleConstraint.FlexibleConstraintType MAX_HALF_DAYS
public static FlexibleConstraint.FlexibleConstraintType[] values()
for (FlexibleConstraint.FlexibleConstraintType c : FlexibleConstraint.FlexibleConstraintType.values()) System.out.println(c);
public static FlexibleConstraint.FlexibleConstraintType 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 getPattern()
public FlexibleConstraint create(Long id, String owner, String preference, String reference) throws IllegalArgumentException
IllegalArgumentException