Package | Description |
---|---|
org.cpsolver.instructor |
Instructor Scheduling.
|
org.cpsolver.instructor.constraints |
Instructor Scheduling: Constraints.
|
org.cpsolver.instructor.criteria |
Instructor Scheduling: Criteria.
|
org.cpsolver.instructor.model |
Instructor Scheduling: Model.
|
org.cpsolver.instructor.test |
Instructor Scheduling: Tests.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Test.generateReports(File outputDir,
Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
Generate a few reports
|
protected boolean |
Test.load(File inputFile,
Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
Load input problem
|
protected void |
Test.save(File outputDir,
Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
Save the problem and the resulting assignment
|
Constructor and Description |
---|
Context(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment) |
Context(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment) |
Modifier and Type | Method and Description |
---|---|
TeachingRequest.Variable |
TeachingRequest.getVariable(int index)
Get single instructor assignment variable
|
TeachingRequest.Variable[] |
TeachingRequest.getVariables()
Get single instructor assignment variables
|
Modifier and Type | Method and Description |
---|---|
void |
Instructor.Context.assigned(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
TeachingAssignment value) |
double |
Instructor.countBackToBacks(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
TeachingAssignment value,
double diffRoomWeight,
double diffTypeWeight)
Compute number of back-to-back assignments (weighted by the preference) of the given teaching assignment and the other assignments of the instructor
|
double |
Instructor.countSameDays(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
TeachingAssignment value,
double diffRoomWeight,
double diffTypeWeight)
Compute number of same days assignments (weighted by the preference) of the given teaching assignment and the other assignments of the instructor
|
double |
Instructor.countSameRooms(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
TeachingAssignment value,
double diffTypeWeight)
Compute number of same room assignments (weighted by the preference) of the given teaching assignment and the other assignments of the instructor
|
Instructor.Context |
Instructor.createAssignmentContext(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment) |
double |
Instructor.differentLectures(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
TeachingAssignment value)
Compute different common sections of the given teaching assignment and the other assignments of the instructor
|
Map<String,String> |
InstructorSchedulingModel.getInfo(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment) |
double |
InstructorSchedulingModel.getTotalValue(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment) |
double |
InstructorSchedulingModel.getTotalValue(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
Collection<TeachingRequest.Variable> variables) |
double |
InstructorSchedulingModel.getTotalValue(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
Collection<TeachingRequest.Variable> variables) |
Instructor.Context |
Instructor.inheritAssignmentContext(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
Instructor.Context parentContext) |
boolean |
InstructorSchedulingModel.load(Document document,
Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
Load the problem (and its solution) from an XML format
|
Document |
InstructorSchedulingModel.save(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
Store the problem (together with its solution) in an XML format
|
int |
Instructor.share(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
TeachingAssignment value)
Compute time overlaps with instructor availability and other teaching assignments of the instructor
|
double |
TeachingAssignment.toDouble(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment) |
void |
Instructor.Context.unassigned(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
TeachingAssignment value) |
List<TeachingAssignment> |
TeachingRequest.Variable.values(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment) |
void |
TeachingRequest.Variable.variableAssigned(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
long iteration,
TeachingAssignment ta) |
void |
TeachingRequest.Variable.variableUnassigned(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
long iteration,
TeachingAssignment ta) |
Constructor and Description |
---|
TeachingAssignment(TeachingRequest.Variable variable,
Instructor instructor)
Constructor
|
TeachingAssignment(TeachingRequest.Variable variable,
Instructor instructor,
int attributePreference)
Constructor
|
Constructor and Description |
---|
Context(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
Constructor
|
Context(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
Instructor.Context parentContext)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Long |
MathTest.getAssignmentId(TeachingRequest.Variable request) |
String |
MathTest.getLink(TeachingRequest.Variable request) |
String |
MathTest.toString(TeachingRequest.Variable request) |
Modifier and Type | Method and Description |
---|---|
protected void |
ChmTest.generateReports(File dir,
Assignment<TeachingRequest.Variable,TeachingAssignment> assignment) |
protected void |
MathTest.generateReports(File dir,
Assignment<TeachingRequest.Variable,TeachingAssignment> assignment) |
protected boolean |
MathTest.load(File dir,
Assignment<TeachingRequest.Variable,TeachingAssignment> assignment) |