org.cpsolver.studentsct.constraint

## Class LinkedSections.CurrentAssignment

- java.lang.Object
- - org.cpsolver.studentsct.constraint.LinkedSections.CurrentAssignment

- All Implemented Interfaces:
    LinkedSections.EnrollmentAssignment
  Enclosing class:
    LinkedSections

      public static class LinkedSections.CurrentAssignment
      extends Object
      implements LinkedSections.EnrollmentAssignment

  Current assignment -- default for `LinkedSections.computeConflicts(Enrollment, EnrollmentAssignment, ConflictHandler)`

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Assignment<Request,Enrollment>` | `iAssignment`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CurrentAssignment(Assignment<Request,Enrollment> assignment)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Enrollment` | `getEnrollment(Request request, int index)` Return `Variable.getAssignment(Assignment)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### iAssignment

          protected Assignment<Request,Enrollment> iAssignment

  - ### Constructor Detail

    - #### CurrentAssignment

          public CurrentAssignment(Assignment<Request,Enrollment> assignment)

  - ### Method Detail

    - #### getEnrollment

          public Enrollment getEnrollment(Request request,
                                          int index)

      Return `Variable.getAssignment(Assignment)`
      Specified by:
        `getEnrollment` in interface `LinkedSections.EnrollmentAssignment`
      Parameters:
        `request` - given request
        `index` - index of the request
      Returns:
        an enrollment