|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface to implement when creating your own solution definitions.
It is usually easier to extend the SolutionAdapter
class instead
which will handle these three required methods, including properly cloning
the array of objective values.
It is essential that you still implement your own clone()
method and clone whatever custom properties you have in your solution definition.
For an excellent discussion of cloning techniques, see the Java Developer Connection Tech Tip http://developer.java.sun.com/developer/JDCTechTips/2001/tt0306.html.
This code is licensed for public use under the Common Public License version 0.5.
The Common Public License, developed by IBM and modeled after their industry-friendly IBM Public License,
differs from other common open source licenses in several important ways:
Copyright © 2001 Robert Harder
Method Summary | |
java.lang.Object |
clone()
An essential Java method that returns of copy of the object. |
double[] |
getObjectiveValue()
If the value has been set for this solution, then the value will be returned. |
void |
setObjectiveValue(double[] objValue)
Generally used by the TabuSearch to set the value of the
objective function
and set objectiveValid to true. |
Method Detail |
public double[] getObjectiveValue()
TabuSearch
has not yet
set the solution's value.
public void setObjectiveValue(double[] objValue)
TabuSearch
to set the value of the
objective function
and set objectiveValid to true.
objValue
- The objective function valuepublic java.lang.Object clone()
Solution
is identical to this
For an excellent discussion of cloning techniques, see the
Java Developer Connection Tech Tip
http://developer.java.sun.com/developer/JDCTechTips/2001/tt0306.html.
Cloneable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |