|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.ifs.model.Value net.sf.cpsolver.studentsct.model.Enrollment
public class Enrollment
Representation of an enrollment of a student into a course. A student needs to
be enrolled in a section of each subpart of a selected configuration. When
parent-child relation is defined among sections, if a student is enrolled
in a section that has a parent section defined, he/she has be enrolled in
the parent section as well. Also, the selected sections cannot overlap in time.
Field Summary | |
---|---|
static double |
sAlterativeWeight
|
static double |
sDistConfWeight
|
static double |
sInitialWeight
|
static double |
sMinWeight
|
static double |
sNormPenalty
|
static double |
sPriorityWeight
|
static double |
sSelectedWeight
|
static double |
sWaitlistedWeight
|
Fields inherited from class net.sf.cpsolver.ifs.model.Value |
---|
iValue |
Constructor Summary | |
---|---|
Enrollment(Request request,
double value,
Config config,
Set assignments)
Constructor |
Method Summary | |
---|---|
boolean |
equals(Object o)
By default, comparison is made on unique ids |
Set |
getAssignments()
List of assignments (selected sections) |
Config |
getConfig()
Config of the course request |
String |
getName()
Enrollment name |
Offering |
getOffering()
Offering of the course request |
double |
getPenalty()
Enrollment penalty -- sum of section penalties (see Section.getPenalty() ) |
Request |
getRequest()
Request |
Student |
getStudent()
Student |
boolean |
isCourseRequest()
True if the request is course request |
boolean |
isOverlapping(Enrollment enrl)
True when this enrollment is overlapping with the given enrollment |
boolean |
isSelected()
True if all the sections are selected |
boolean |
isWaitlisted()
True if all the sections are wait-listed |
static double |
normalizePenalty(double penalty)
Normalized enrollment penalty -- to be used in toDouble() |
double |
nrDistanceConflicts()
Number of distance conflicts, in which this enrollment is involved. |
double |
percentInitial()
Percent of sections that are initial |
double |
percentSelected()
Percent of sections that are selected |
double |
percentWaitlisted()
Percent of sections that are wait-listed |
double |
toDouble()
Enrollment value |
double |
toDouble(double nrDistanceConflicts)
Enrollment value |
String |
toString()
|
Methods inherited from class net.sf.cpsolver.ifs.model.Value |
---|
assigned, compareTo, conflicts, countAssignments, getDescription, getExtra, getId, hashCode, isConsistent, lastAssignmentIteration, lastUnassignmentIteration, setExtra, setVariable, unassigned, valueEquals, variable |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static double sPriorityWeight
public static double sAlterativeWeight
public static double sInitialWeight
public static double sSelectedWeight
public static double sWaitlistedWeight
public static double sMinWeight
public static double sNormPenalty
public static double sDistConfWeight
Constructor Detail |
---|
public Enrollment(Request request, double value, Config config, Set assignments)
request
- course / free time requestvalue
- value (1.0 for primary course, 0.5 for the first alternative, etc.)config
- selected configurationassignments
- valid list of sectionsMethod Detail |
---|
public Student getStudent()
public Request getRequest()
public boolean isCourseRequest()
public Offering getOffering()
public Config getConfig()
public Set getAssignments()
public boolean isOverlapping(Enrollment enrl)
public double percentWaitlisted()
public double percentSelected()
public double percentInitial()
public boolean isWaitlisted()
public boolean isSelected()
public double getPenalty()
Section.getPenalty()
)
public static double normalizePenalty(double penalty)
toDouble()
public double toDouble()
toDouble
in class Value
public double toDouble(double nrDistanceConflicts)
public String getName()
getName
in class Value
public String toString()
toString
in class Value
public boolean equals(Object o)
Value
equals
in class Value
public double nrDistanceConflicts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |