Interface RevertableScoreDirector<Solution_>

All Superinterfaces:
ScoreDirector<Solution_>, VariableDescriptorAwareScoreDirector<Solution_>
All Known Implementing Classes:
VariableChangeRecordingScoreDirector

public interface RevertableScoreDirector<Solution_> extends VariableDescriptorAwareScoreDirector<Solution_>
  • Method Details

    • copyChanges

      <Action_> List<Action_> copyChanges()
      Use this method to get a copy of all non-commited changes executed by the director so far.
      Type Parameters:
      Action_ - The action type for recorded changes
    • undoChanges

      void undoChanges()
      Use this method to revert all changes made by moves. The score director that implements this logic must be able to track every single change in the solution and restore it to its original state.