net.sf.cpsolver.studentsct.heuristics.selection

## Class RandomUnassignmentSelection.UnassignStudentNeighbour

- java.lang.Object
- - net.sf.cpsolver.ifs.model.Neighbour<Request,Enrollment>
  - - net.sf.cpsolver.studentsct.heuristics.selection.RandomUnassignmentSelection.UnassignStudentNeighbour

- Enclosing class:
    RandomUnassignmentSelection

      public static class RandomUnassignmentSelection.UnassignStudentNeighbour
      extends Neighbour<Request,Enrollment>

  Unassignment of all requests of a student

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UnassignStudentNeighbour(Student student)` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `assign(long iteration)` All requests of the given student are unassigned
    `String` | `toString()`
    `double` | `value()` Difference in the evaluation function, if this neighnour is assigned.

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

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

- - ### Constructor Detail

    - #### UnassignStudentNeighbour

          public UnassignStudentNeighbour(Student student)

      Constructor
      Parameters:
        `student` - a student to be unassigned

  - ### Method Detail

    - #### value

          public double value()

      Description copied from class: `Neighbour`
      Difference in the evaluation function, if this neighnour is assigned.
      Specified by:
        `value` in class `Neighbour<Request,Enrollment>`

    - #### assign

          public void assign(long iteration)

      All requests of the given student are unassigned
      Specified by:
        `assign` in class `Neighbour<Request,Enrollment>`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`