public abstract class Solution extends java.lang.Object implements SolutionDef
| Modifier and Type | Field and Description |
|---|---|
protected EvalBounds |
evaluation
The result of evaluating this solution.
|
protected java.lang.String |
name
The solution name
|
| Constructor and Description |
|---|
Solution()
Create a new instance of Solution.
|
Solution(java.lang.String thisName)
Create a new instance of Solution.
|
| Modifier and Type | Method and Description |
|---|---|
EvalBounds |
getEvaluation()
Get the result that this solution has produced.
|
java.lang.String |
getName()
Get the solution name.
|
void |
setEvaluation(EvalBounds theEvaluation)
Set the evaluation value for the result.
|
void |
setName(java.lang.String thisName)
Set the solution name.
|
protected java.lang.String name
protected EvalBounds evaluation
public Solution()
throws java.lang.Exception
java.lang.Exception - any error.public Solution(java.lang.String thisName)
thisName - this solution name or ID.public void setName(java.lang.String thisName)
setName in interface SolutionDefthisName - the solution name.public java.lang.String getName()
getName in interface SolutionDefpublic void setEvaluation(EvalBounds theEvaluation)
setEvaluation in interface SolutionDeftheEvaluation - the evaluation value.public EvalBounds getEvaluation()
getEvaluation in interface SolutionDef