org.cpsolver.coursett.constraint

## Class MaxHolesFlexibleConstraint.MaxHolesFlexibleConstraintContext

- java.lang.Object
- - org.cpsolver.coursett.constraint.FlexibleConstraint.FlexibleConstraintContext
  - - org.cpsolver.coursett.constraint.MaxHolesFlexibleConstraint.MaxHolesFlexibleConstraintContext

- All Implemented Interfaces:
    AssignmentConstraintContext<Lecture,Placement>, AssignmentContext
  Enclosing class:
    MaxHolesFlexibleConstraint

      public class MaxHolesFlexibleConstraint.MaxHolesFlexibleConstraintContext
      extends FlexibleConstraint.FlexibleConstraintContext

- - ### Field Summary

    - ### Fields inherited from class org.cpsolver.coursett.constraint.FlexibleConstraint.FlexibleConstraintContext

      `iLastPreference`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MaxHolesFlexibleConstraintContext(Assignment<Lecture,Placement> assignment)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getMaxHoles(int dayCode, BitSet week)`
    `void` | `weaken(Assignment<Lecture,Placement> assignment, Placement value)`

    - ### Methods inherited from class org.cpsolver.coursett.constraint.FlexibleConstraint.FlexibleConstraintContext

      `assigned, getPreference, unassigned, updateCriterion`

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

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

- - ### Constructor Detail

    - #### MaxHolesFlexibleConstraintContext

          public MaxHolesFlexibleConstraintContext(Assignment<Lecture,Placement> assignment)

  - ### Method Detail

    - #### weaken

          public void weaken(Assignment<Lecture,Placement> assignment,
                             Placement value)

    - #### getMaxHoles

          public int getMaxHoles(int dayCode,
                                 BitSet week)