Class VariableSnapshotTotal<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.domain.variable.listener.support.violation.VariableSnapshotTotal<Solution_>
Serves for detecting undo move corruption.
When a snapshot is created, it records the state of all variables (genuine and shadow) for all entities.
-
Method Summary
Modifier and TypeMethodDescriptiongetVariableSnapshot(VariableId<Solution_> variableId) voidrestore()static <Solution_>
VariableSnapshotTotal<Solution_>takeSnapshot(SolutionDescriptor<Solution_> solutionDescriptor, Solution_ workingSolution)
-
Method Details
-
takeSnapshot
public static <Solution_> VariableSnapshotTotal<Solution_> takeSnapshot(SolutionDescriptor<Solution_> solutionDescriptor, Solution_ workingSolution) -
changedVariablesFrom
-
getVariableSnapshot
-
restore
public void restore()
-