org.cpsolver.coursett.heuristics

## Class NeighbourSelectionWithSuggestions.SuggestionNeighbour

- java.lang.Object
- - org.cpsolver.coursett.heuristics.NeighbourSelectionWithSuggestions.SuggestionNeighbour

- All Implemented Interfaces:
    Neighbour<Lecture,Placement>
  Enclosing class:
    NeighbourSelectionWithSuggestions

      public class NeighbourSelectionWithSuggestions.SuggestionNeighbour
      extends Object
      implements Neighbour<Lecture,Placement>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SuggestionNeighbour(Map<Lecture,Placement> resolvedLectures, double value)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `assign(Assignment<Lecture,Placement> assignment, long iteration)` Perform assignment
    `Map<Lecture,Placement>` | `assignments()` Return assignments to be done.
    `int` | `compareTo(Solution<Lecture,Placement> solution)`
    `String` | `toString()`
    `double` | `value(Assignment<Lecture,Placement> assignment)` 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

    - #### SuggestionNeighbour

          public SuggestionNeighbour(Map<Lecture,Placement> resolvedLectures,
                                     double value)

  - ### Method Detail

    - #### value

          public double value(Assignment<Lecture,Placement> assignment)

      Description copied from interface: `Neighbour`
      Difference in the evaluation function, if this neighnour is assigned.
      Specified by:
        `value` in interface `Neighbour<Lecture,Placement>`
      Parameters:
        `assignment` - current assignment
      Returns:
        difference in the solution value when assigned

    - #### assign

          public void assign(Assignment<Lecture,Placement> assignment,
                             long iteration)

      Description copied from interface: `Neighbour`
      Perform assignment
      Specified by:
        `assign` in interface `Neighbour<Lecture,Placement>`
      Parameters:
        `assignment` - current assignment
        `iteration` - current iteration

    - #### compareTo

          public int compareTo(Solution<Lecture,Placement> solution)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### assignments

          public Map<Lecture,Placement> assignments()

      Description copied from interface: `Neighbour`
      Return assignments to be done.
      Specified by:
        `assignments` in interface `Neighbour<Lecture,Placement>`
      Returns:
        list of assignments (including unassignments) of this neighbour