|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectifs.model.Variable
ttsolver.model.Lecture
public class Lecture
Lecture (variable).
| Field Summary |
|---|
| Fields inherited from class ifs.model.Variable |
|---|
iValue |
| Constructor Summary | |
|---|---|
Lecture(long id,
String name,
Vector timeLocations,
double bestTimePref,
String instructorId,
Vector roomLocations,
int bestRoomPref,
Placement initialPlacement,
int expectedCapacity,
String inctructorName,
String pattern)
Constructor |
|
| Method Summary | |
|---|---|
Vector |
activeJenrls()
Active jenrl constraints (active mean that there is at least one student between its classes) |
void |
addActiveJenrl(JenrlConstraint constr)
Add active jenrl constraint (active mean that there is at least one student between its classes) |
void |
addContstraint(Constraint constraint)
Adds a constraint. |
void |
addSameLectureStudent(String student)
Add a student enrolled to a cross-listed class |
void |
addStudent(String student)
Add an enrolled student |
Vector |
allStudents()
List of enrolled students of this class and of all its cross-listed classes |
Vector |
computeValues()
Domain -- all combinations of room and time locations |
Vector |
conflictLectures()
Lectures different from this one, which are in a student conflict with the this lecture |
Vector |
conflictLectures(String student)
Lectures different from this one, where it is student conflict of the given student between this and the lecture |
Vector |
conflictLectures(Value value)
Lectures different from this one, which are in a student conflict with the given assignment (of this lecture) |
Vector |
conflictLecturesNames(String student)
Names of lectures different from this one, where it is student conflict of the given student between this and the lecture |
Vector |
conflictStudents()
List of students of this class which are in conflict with any other assignment |
Vector |
conflictStudents(Value value)
List of students of this class in conflict with the given assignment |
Vector |
conflictStudents(Value value,
Variable anotherVariable)
List of students which are in conflict with the given two classes |
int |
countInitialStudentConflicts()
Number of student conflicts caused by the initial assignment of this lecture |
int |
countStudentConflicts(Value value)
Number of student conflicts caused by the given assignment of this lecture |
long |
countStudents()
Expected capacity |
Vector |
crossListedLectures()
|
boolean |
equals(Object o)
|
int |
getBestRoomPreference()
Best room preference of this lecture |
double |
getBestTimePreference()
Best time preference of this lecture |
long |
getClassId()
Class id |
String |
getDepartment()
Department |
DepartmentSpreadConstraint |
getDeptSpreadConstraint()
Departmental spreading constraint |
String |
getDescription()
Description |
long |
getId()
Class id |
Hashtable |
getInitialStudentConflicts()
Table of student conflicts caused by the initial assignment of this lecture in format (another lecture, number) |
InstructorConstraint |
getInstructorConstraint()
Instructor constraint |
String |
getInstructorId()
Instructor id |
String |
getInstructorName()
Instructor name |
String |
getName()
Class name |
Vector |
getSameRoomValues(String roomId)
All values which uses the given room |
String |
getValuesString()
|
boolean |
hasStudent(String student)
Returns true if the given student is enrolled |
Set |
initialStudentConflicts()
List of student conflicts caused by the initial assignment of this lecture |
int |
isInConflict(String student)
True if this lecture is in a student conflict with the given student |
boolean |
isSwapTabu(String student,
String swapStudent)
Prohibited swaps |
Vector |
jenrlConstraints()
All JENRL constraints of this lecture |
void |
removeActiveJenrl(JenrlConstraint constr)
Remove active jenrl constraint (active mean that there is at least one student between its classes) |
void |
removeContstraint(Constraint constraint)
Removes a constraint. |
Vector |
roomLocations()
All room locations |
Vector |
sameLectures()
Set of lectures of the same class (only section is different) |
Vector |
sameStudentLectures(String student)
Lectures which share the given student, different from this one |
Vector |
sameStudents(Lecture lecture)
List of students enrolled in this class as well as in the given class |
void |
setCrossListedLectures(Vector crossListedLectures)
|
void |
setDepartment(String dept)
Department |
void |
setSameLectures(Vector sameLectures)
Set of lectures of the same class (only section is different) |
Vector |
students()
List of enrolled students |
Set |
swapStudents()
Swap students between this and the same lectures (lectures which differ only in the section) |
Vector |
timeLocations()
All time locations |
String |
toString()
|
Vector |
values()
All values |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Lecture(long id,
String name,
Vector timeLocations,
double bestTimePref,
String instructorId,
Vector roomLocations,
int bestRoomPref,
Placement initialPlacement,
int expectedCapacity,
String inctructorName,
String pattern)
id - unique identificationname - class nametimeLocations - set of time locationsbestTimePref - best time preference over all time locationsinstructorId - instuctor idroomLocations - set of room locationbestRoomPref - best room preference over all room locationsinitialPlacement - initial placementexpectedCapacity - expected number of studentsinctructorName - instructor namepattern - time pattern (e.g., 2x100)| Method Detail |
|---|
public void addActiveJenrl(JenrlConstraint constr)
public Vector activeJenrls()
public void removeActiveJenrl(JenrlConstraint constr)
public long getClassId()
public String getName()
getName in class Variablepublic long getId()
getId in class Variablepublic String getInstructorName()
public String getInstructorId()
public Vector students()
public Vector allStudents()
public void addStudent(String student)
public void addSameLectureStudent(String student)
public boolean hasStudent(String student)
public void setSameLectures(Vector sameLectures)
public Vector sameLectures()
public Vector crossListedLectures()
public void setCrossListedLectures(Vector crossListedLectures)
public Vector sameStudents(Lecture lecture)
public Vector conflictStudents(Value value,
Variable anotherVariable)
public Vector conflictStudents(Value value)
public Vector conflictStudents()
public Vector sameStudentLectures(String student)
public Vector conflictLecturesNames(String student)
public Vector conflictLectures(String student)
public Vector conflictLectures(Value value)
public Vector conflictLectures()
public int isInConflict(String student)
public Set swapStudents()
public boolean isSwapTabu(String student,
String swapStudent)
public Vector computeValues()
public Vector getSameRoomValues(String roomId)
public Vector values()
values in class Variablepublic boolean equals(Object o)
equals in class Variablepublic double getBestTimePreference()
public int getBestRoomPreference()
public int countStudentConflicts(Value value)
public int countInitialStudentConflicts()
public Hashtable getInitialStudentConflicts()
public Set initialStudentConflicts()
public void addContstraint(Constraint constraint)
VariableModel.addConstraint(Constraint) is called.
addContstraint in class Variableconstraint - added constraintpublic void removeContstraint(Constraint constraint)
VariableModel.removeConstraint(Constraint) is called.
removeContstraint in class Variableconstraint - added constraintpublic Vector jenrlConstraints()
public long countStudents()
public String toString()
toString in class Variablepublic String getDescription()
getDescription in class Variablepublic String getValuesString()
public String getDepartment()
public void setDepartment(String dept)
public DepartmentSpreadConstraint getDeptSpreadConstraint()
public InstructorConstraint getInstructorConstraint()
public Vector roomLocations()
public Vector timeLocations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||