org.cpsolver.instructor.constraints

## Class GroupConstraint.Distribution

- java.lang.Object
- - org.cpsolver.instructor.constraints.GroupConstraint.Distribution

- Enclosing class:
    GroupConstraint

      public static class GroupConstraint.Distribution
      extends Object

  Wrapper class representing one distribution preference set on an instructor.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Distribution(GroupConstraint.ConstraintTypeInterface type, String preference)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `<P> P` | `getParameter()`
    `int` | `getPenalty()`
    `String` | `getPreference()`
    `GroupConstraint.ConstraintTypeInterface` | `getType()`
    `boolean` | `isHard()`
    `boolean` | `isPositive()`
    `boolean` | `isProhibited()`
    `boolean` | `isRequired()`

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

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

- - ### Constructor Detail

    - #### Distribution

          public Distribution(GroupConstraint.ConstraintTypeInterface type,
                              String preference)

  - ### Method Detail

    - #### getType

          public GroupConstraint.ConstraintTypeInterface getType()

    - #### getPenalty

          public int getPenalty()

    - #### isRequired

          public boolean isRequired()

    - #### isProhibited

          public boolean isProhibited()

    - #### isHard

          public boolean isHard()

    - #### getPreference

          public String getPreference()

    - #### isPositive

          public boolean isPositive()

    - #### getParameter

          public <P> P getParameter()