|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.ifs.model.Model<V,T>
net.sf.cpsolver.ifs.constant.ConstantModel<Lecture,Placement>
net.sf.cpsolver.coursett.model.TimetableModel
public class TimetableModel
Timetable model.
Field Summary |
---|
Fields inherited from class net.sf.cpsolver.ifs.model.Model |
---|
iAssignedVariables, iPerturbVariables, iUnassignedVariables, sPercentageFormat, sTimeFormat |
Constructor Summary | |
---|---|
TimetableModel(DataProperties properties)
|
Method Summary | |
---|---|
void |
addConstraint(Constraint<Lecture,Placement> constraint)
Adds a constraint to the model |
void |
addStudent(Student student)
|
Set<Placement> |
conflictValuesSkipWeakeningConstraints(Placement value)
Returns the set of conflicting variables with this value, if it is assigned to its variable. |
Set<Student> |
getAllStudents()
|
Map<String,String> |
getBounds()
|
List<ClassLimitConstraint> |
getClassLimitConstraints()
|
List<DepartmentSpreadConstraint> |
getDepartmentSpreadConstraints()
The list of all departmental spread constraints |
DistanceMetric |
getDistanceMetric()
|
List<FlexibleConstraint> |
getFlexibleConstraints()
|
List<GroupConstraint> |
getGroupConstraints()
The list of all group constraints |
Map<String,String> |
getInfo()
Global info |
Map<String,String> |
getInfo(Collection<Lecture> variables)
Returns information about the current solution. |
List<InstructorConstraint> |
getInstructorConstraints()
The list of all instructor constraints |
List<JenrlConstraint> |
getJenrlConstraints()
The list of all jenrl constraints |
static String |
getMem()
Returns amount of allocated memory. |
DataProperties |
getProperties()
|
List<RoomConstraint> |
getRoomConstraints()
The list of all room constraints |
List<SpreadConstraint> |
getSpreadConstraints()
|
StudentSectioning |
getStudentSectioning()
Returns interface to the student sectioning functions needed during course timetabling. |
double |
getTotalValue()
Value of the current solution. |
double |
getTotalValue(Collection<Lecture> variables)
Value of the current solution. |
List<BitSet> |
getWeeks()
The method creates date patterns (bitsets) which represent the weeks of a semester. |
int |
getYear()
|
void |
removeConstraint(Constraint<Lecture,Placement> constraint)
Removes a constraint from the model |
void |
removeStudent(Student student)
|
void |
setYear(int year)
|
void |
switchStudents()
Student final sectioning (switching students between sections of the same class in order to minimize overall number of student conflicts) |
String |
toString()
|
Methods inherited from class net.sf.cpsolver.ifs.constant.ConstantModel |
---|
addVariable, afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, constantVariables, hasConstantVariables, isConstant, removeVariable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimetableModel(DataProperties properties)
Method Detail |
---|
public DistanceMetric getDistanceMetric()
public StudentSectioning getStudentSectioning()
DefaultStudentSectioning
, can be changed using the StudentSectioning.Class parameter.
public DataProperties getProperties()
public void switchStudents()
public String toString()
toString
in class Model<Lecture,Placement>
public Map<String,String> getBounds()
public Map<String,String> getInfo()
getInfo
in class Model<Lecture,Placement>
public Map<String,String> getInfo(Collection<Lecture> variables)
Model
getInfo
in class Model<Lecture,Placement>
public void addConstraint(Constraint<Lecture,Placement> constraint)
Model
addConstraint
in class Model<Lecture,Placement>
public void removeConstraint(Constraint<Lecture,Placement> constraint)
Model
removeConstraint
in class Model<Lecture,Placement>
public List<InstructorConstraint> getInstructorConstraints()
public List<GroupConstraint> getGroupConstraints()
public List<JenrlConstraint> getJenrlConstraints()
public List<RoomConstraint> getRoomConstraints()
public List<DepartmentSpreadConstraint> getDepartmentSpreadConstraints()
public List<SpreadConstraint> getSpreadConstraints()
public List<ClassLimitConstraint> getClassLimitConstraints()
public List<FlexibleConstraint> getFlexibleConstraints()
public double getTotalValue()
Model
Value.toDouble()
.
getTotalValue
in class Model<Lecture,Placement>
public double getTotalValue(Collection<Lecture> variables)
Model
Value.toDouble()
. Only variables from the given set are
considered.
getTotalValue
in class Model<Lecture,Placement>
public int getYear()
public void setYear(int year)
public Set<Student> getAllStudents()
public void addStudent(Student student)
public void removeStudent(Student student)
public static String getMem()
public Set<Placement> conflictValuesSkipWeakeningConstraints(Placement value)
WeakeningConstraint
are ignored.
public List<BitSet> getWeeks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |