Solution_
- the solution type, the class with the PlanningSolution
annotationpublic interface SolutionCloner<Solution_>
PlanningSolution
during planning.
Used to remember the state of a good PlanningSolution
so it can be recalled at a later time
when the original PlanningSolution
is already modified.
Also used in population based heuristics to increase or repopulate the population.
Planning cloning is hard: avoid doing it yourself.
An implementing class must be thread-safe after initialization.
Modifier and Type | Method and Description |
---|---|
Solution_ |
cloneSolution(Solution_ original)
Does a planning clone.
|
Solution_ cloneSolution(Solution_ original)
PlanningSolution
clone must fulfill these requirements:
original
.
original
.
PlanningSolution
,
the original PlanningSolution
must remain unchanged.This method is thread-safe.
original
- never null, the original PlanningSolution
PlanningSolution
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.