## Uses of Interface
net.sf.cpsolver.studentsct.model.Assignment

- Packages that use Assignment
  Package | Description
  --- | ---
  net.sf.cpsolver.studentsct | Student Sectioning Solver.
  net.sf.cpsolver.studentsct.extension | Student Sectioning: Various Extensions.
  net.sf.cpsolver.studentsct.model | Student Sectioning: Model.

- - ### Uses of Assignment in net.sf.cpsolver.studentsct

    Methods in net.sf.cpsolver.studentsct with parameters of type Assignment
    Modifier and Type | Method and Description
    --- | ---
    `double` | StudentPreferencePenalties.`getPenalty(Assignment assignment)` Return penalty of an assignment.

  - ### Uses of Assignment in net.sf.cpsolver.studentsct.extension

    Methods in net.sf.cpsolver.studentsct.extension that return Assignment
    Modifier and Type | Method and Description
    --- | ---
    `Assignment` | TimeOverlapsCounter.Conflict.`getS1()` First section
    `Assignment` | TimeOverlapsCounter.Conflict.`getS2()` Second section

    Methods in net.sf.cpsolver.studentsct.extension with parameters of type Assignment
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | TimeOverlapsCounter.`inConflict(Assignment a1, Assignment a2)` Return true if the given two assignments are overlapping.
    `int` | TimeOverlapsCounter.`share(Assignment a1, Assignment a2)` If the two sections are overlapping, return the number of slots of the overlap.

    Constructors in net.sf.cpsolver.studentsct.extension with parameters of type Assignment
    Constructor and Description
    `Conflict(Student student, int share, Enrollment e1, Assignment a1, Enrollment e2, Assignment a2)` Constructor

  - ### Uses of Assignment in net.sf.cpsolver.studentsct.model

    Classes in net.sf.cpsolver.studentsct.model that implement Assignment
    Modifier and Type | Class and Description
    --- | ---
    `class` | `FreeTimeRequest` Representation of a request of a student for free time.
    `class` | `Section` Representation of a class.

    Methods in net.sf.cpsolver.studentsct.model that return types with arguments of type Assignment
    Modifier and Type | Method and Description
    --- | ---
    `Set<Assignment>` | Enrollment.`getAssignments()` List of assignments (selected sections)

    Methods in net.sf.cpsolver.studentsct.model with parameters of type Assignment
    Modifier and Type | Method and Description
    --- | ---
    `int` | Assignment.`compareById(Assignment a)` Compare assignments by unique ids.
    `int` | FreeTimeRequest.`compareById(Assignment a)` Sections first, then by `Request.getId()`
    `int` | Section.`compareById(Assignment a)` Sections first, then by `Request.getId()`
    `boolean` | Assignment.`isOverlapping(Assignment assignment)` True, if this assignment is overlapping in time and space with the given assignment.
    `boolean` | FreeTimeRequest.`isOverlapping(Assignment assignment)` True, if this assignment is overlapping in time and space with the given assignment.
    `boolean` | Section.`isOverlapping(Assignment assignment)` True, if this section overlaps with the given assignment in time and space

    Method parameters in net.sf.cpsolver.studentsct.model with type arguments of type Assignment
    Modifier and Type | Method and Description
    --- | ---
    `Enrollment` | CourseRequest.`createEnrollment(Set<? extends Assignment> sections)` Create enrollment for the given list of sections.
    `Enrollment` | CourseRequest.`createEnrollment(Set<? extends Assignment> sections, Reservation reservation)` Create enrollment for the given list of sections.
    `boolean` | Assignment.`isOverlapping(Set<? extends Assignment> assignments)` True, if this assignment is overlapping in time and space with the given set of assignments.
    `boolean` | FreeTimeRequest.`isOverlapping(Set<? extends Assignment> assignments)` True, if this assignment is overlapping in time and space with the given set of assignments.
    `boolean` | Section.`isOverlapping(Set<? extends Assignment> assignments)` True, if this section overlaps with one of the given set of assignments in time and space

    Constructor parameters in net.sf.cpsolver.studentsct.model with type arguments of type Assignment
    Constructor and Description
    `Enrollment(Request request, int priority, Config config, Set<? extends Assignment> assignments)` Constructor
    `Enrollment(Request request, int priority, Course course, Config config, Set<? extends Assignment> assignments, Reservation reservation)` Constructor