Class CompositeMove<Solution_>

java.lang.Object
org.optaplanner.core.impl.heuristic.move.CompositeMove<Solution_>
Type Parameters:
Solution_ - the solution type, the class with the PlanningSolution annotation
All Implemented Interfaces:
Move<Solution_>

public class CompositeMove<Solution_> extends Object implements Move<Solution_>
A CompositeMove is composed out of multiple other moves.

Warning: each of moves in the moveList must not rely on the effect of a previous move in the moveList to create its undoMove correctly.

See Also:
  • Field Details

  • Constructor Details

    • CompositeMove

      @SafeVarargs public CompositeMove(Move<Solution_>... moves)
      Parameters:
      moves - never null, never empty. Do not modify this argument afterwards or this CompositeMove corrupts.
  • Method Details