|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.ifs.Constants net.sf.cpsolver.coursett.Constants
public class Constants
Course Timetabling common constants.
Field Summary | |
---|---|
static int |
DAY_CODE_ALL
All days |
static int |
DAY_CODE_WEEK
All week days |
static int[] |
DAY_CODES
Day codes to combine several days into one int |
static String[] |
DAY_NAMES_SHORT
Day names in short format M, T, W, Th, F, Sa, Su |
static int |
DAY_SLOTS_FIRST
Number of slots per day |
static int |
DAY_SLOTS_LAST
Number of slots per day |
static int |
FIRST_SLOT_TIME_MIN
Start time of the first slot in minutes (from midnight) |
static int |
NR_DAYS
Number of days |
static int |
NR_DAYS_WEEK
Number of days of week (excludes weekend) |
static int |
SLOT_LENGTH_MIN
Length of a single slot in minutes |
static int |
SLOTS_PER_DAY
Number of slots per day |
static int |
SLOTS_PER_DAY_NO_EVENINGS
Number of slots per day w/o evening hours |
static String |
sPreferenceDiscouraged
Preference: discouraged |
static int |
sPreferenceLevelDiscouraged
Preference level: discouraged |
static int |
sPreferenceLevelNeutral
Preference level: neutral |
static int |
sPreferenceLevelPreferred
Preference level: preferred |
static int |
sPreferenceLevelProhibited
Preference level: prohibited |
static int |
sPreferenceLevelRequired
Preference level: required |
static int |
sPreferenceLevelStronglyDiscouraged
Preference level: strongly discouraged |
static int |
sPreferenceLevelStronglyPreferred
Preference level: strongly preferred |
static String |
sPreferenceNeutral
Preference: neutral |
static String |
sPreferencePreferred
Preference: preferred |
static String |
sPreferenceProhibited
Preference: prohibited |
static String |
sPreferenceRequired
Preference: required |
static String |
sPreferenceStronglyDiscouraged
Preference: strongly discouraged |
static String |
sPreferenceStronglyPreferred
Preference: strongly preferred |
Fields inherited from class net.sf.cpsolver.ifs.Constants |
---|
BLD_NUMBER, REL_DATE, VERSION |
Constructor Summary | |
---|---|
Constants()
|
Method Summary | |
---|---|
static int |
preference2preferenceLevel(String prologPref)
Convert preference to preference level |
static String |
preferenceLevel2preference(int intPref)
Convert preference level to preference |
static int |
time2slot(int hour,
int min)
Convert time (hour:minute) to time slot |
Methods inherited from class net.sf.cpsolver.ifs.Constants |
---|
getBuildNumber, getReleaseDate, getVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SLOTS_PER_DAY
public static int[] DAY_CODES
public static int DAY_CODE_ALL
public static int DAY_CODE_WEEK
public static int SLOT_LENGTH_MIN
public static int FIRST_SLOT_TIME_MIN
public static int DAY_SLOTS_FIRST
public static int DAY_SLOTS_LAST
public static int SLOTS_PER_DAY_NO_EVENINGS
public static String[] DAY_NAMES_SHORT
public static int NR_DAYS
public static int NR_DAYS_WEEK
public static final String sPreferenceProhibited
public static final String sPreferenceRequired
public static final String sPreferenceStronglyDiscouraged
public static final String sPreferenceDiscouraged
public static final String sPreferencePreferred
public static final String sPreferenceStronglyPreferred
public static final String sPreferenceNeutral
public static final int sPreferenceLevelProhibited
public static final int sPreferenceLevelRequired
public static final int sPreferenceLevelStronglyDiscouraged
public static final int sPreferenceLevelDiscouraged
public static final int sPreferenceLevelPreferred
public static final int sPreferenceLevelStronglyPreferred
public static final int sPreferenceLevelNeutral
Constructor Detail |
---|
public Constants()
Method Detail |
---|
public static int preference2preferenceLevel(String prologPref)
public static String preferenceLevel2preference(int intPref)
public static int time2slot(int hour, int min)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |