public class CompoundSolution extends SolutionContainer
solutionNames, solutions
evaluation, name
Constructor and Description |
---|
CompoundSolution(java.lang.String thisName)
Create a new instance of CompoundSolution.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone this object to create a copy of the main features.
|
CompoundSolution |
randomiseNewSolutionOrder(CompoundSolution previousSolution)
Randomise the order of any new solutions since the previous solution set and
return in a new compound solution.
|
static CompoundSolution |
toCompoundSolution(SolutionContainer compSoln)
Convert the solution container into a compound solution.
|
addSolution, addSolutionName, clearSolutions, getSolution, getSolutionNames, getSolutions, removeSolution
getEvaluation, getName, setEvaluation, setName
public CompoundSolution(java.lang.String thisName)
thisName
- this compound solution name or ID.public CompoundSolution randomiseNewSolutionOrder(CompoundSolution previousSolution)
previousSolution
- the previous compound solution to compare with.public java.lang.Object clone()
clone
in class SolutionContainer
public static CompoundSolution toCompoundSolution(SolutionContainer compSoln)
compSoln
- the solution container to convert.