## Uses of Class
org.cpsolver.instructor.model.TeachingRequest

- Packages that use TeachingRequest
  Package | Description
  --- | ---
  org.cpsolver.instructor.model | Instructor Scheduling: Model.
  org.cpsolver.instructor.test | Instructor Scheduling: Tests.

- - ### Uses of TeachingRequest in org.cpsolver.instructor.model

    Methods in org.cpsolver.instructor.model that return TeachingRequest
    Modifier and Type | Method and Description
    --- | ---
    `TeachingRequest` | TeachingRequest.Variable.`getRequest()` Teaching request for this variable

    Methods in org.cpsolver.instructor.model that return types with arguments of type TeachingRequest
    Modifier and Type | Method and Description
    --- | ---
    `List<TeachingRequest>` | InstructorSchedulingModel.`getRequests()` All teaching requests

    Methods in org.cpsolver.instructor.model with parameters of type TeachingRequest
    Modifier and Type | Method and Description
    --- | ---
    `void` | InstructorSchedulingModel.`addRequest(TeachingRequest request)` Add teaching request and the related variables
    `boolean` | Instructor.`canTeach(TeachingRequest request)` Check if this instructor can teach the given request.
    `double` | TeachingRequest.`countBackToBacks(TeachingRequest request, double diffRoomWeight, double diffTypeWeight)` Average value of the back-to-backs between this request and the given one
    `double` | TeachingRequest.`countSameDays(TeachingRequest request, double diffRoomWeight, double diffTypeWeight)` Average value of the same days between this request and the given one
    `double` | TeachingRequest.`countSameRooms(TeachingRequest request, double diffTypeWeight)` Average value of the same rooms between this request and the given one
    `double` | TeachingRequest.`getSameCommonPenalty(TeachingRequest request)` Return same common penalty of this request and the given request being assigned to the same instructor
    `double` | TeachingRequest.`getSameCoursePenalty(TeachingRequest request)` Return same course penalty of this request and the given request being assigned to the same instructor
    `PreferenceCombination` | Instructor.`getTimePreference(TeachingRequest request)` Compute time preference for a given teaching request.
    `boolean` | TeachingRequest.`isSameCommonViolated(TeachingRequest request)` Check if this request and the given one can be assigned to the same instructor without violating the same common constraint
    `boolean` | TeachingRequest.`isSameCourseViolated(TeachingRequest request)` Check if this request and the given one can be assigned to the same instructor without violating the same course constraint
    `double` | TeachingRequest.`nrSameLectures(TeachingRequest request)` Count the number of common sections that the given request share with this request
    `boolean` | TeachingRequest.`overlaps(TeachingRequest request)` Check if this request overlaps with the given one
    `boolean` | TeachingRequest.`sameCommon(TeachingRequest request)` Check if the given request fully share the common sections with this request
    `boolean` | TeachingRequest.`sameCourse(TeachingRequest request)` Check if this request and the given request are of the same course
    `int` | Instructor.`share(TeachingRequest request)` Compute time overlaps with instructor availability
    `int` | TeachingRequest.`share(TeachingRequest request)` Count the number of (allowed) overlapping time slots between this request and the given one
    `boolean` | TeachingRequest.`shareCommon(TeachingRequest request)` Check if the given request (partially) share the common sections with this request

  - ### Uses of TeachingRequest in org.cpsolver.instructor.test

    Methods in org.cpsolver.instructor.test with parameters of type TeachingRequest
    Modifier and Type | Method and Description
    --- | ---
    `String` | ChmTest.`getAttributes(TeachingRequest req, Instructor instructor, String type)`
    `String` | ChmTest.`getAttributes(TeachingRequest req, String type)`
    `String` | ChmTest.`getCoursePreference(TeachingRequest req, Instructor instructor)`