public class ttt2 extends AbstractMultiProblem
AbstractMultiProblem.RepresentationWithScore| Modifier and Type | Field and Description |
|---|---|
int |
chres |
| Constructor and Description |
|---|
ttt2() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Hashtable<java.lang.String,XMLFieldEntry> |
adjustRequirements(java.util.Hashtable<java.lang.String,XMLFieldEntry> requirements,
java.util.Hashtable<java.lang.String,XMLFieldEntry> properties)
Adjusts and returns the requirements of this problem that is modified according to the properties.
|
java.util.List<AbstractMultiProblem.RepresentationWithScore> |
evaluateFitness(AbstractRepresentation[] candidates)
Returns the fitness of the given representations.
|
void |
replayWithVisualization(AbstractRepresentation[] candidates)
This function is called when the user request a visual replay from the problem.
|
getRandom, setRandomgetProperties, getPropertyValue, getTypeOfProperty, getXMLData, setProperties, setXMLDatapublic void replayWithVisualization(AbstractRepresentation[] candidates)
AbstractMultiProblem
It is recommended to use advanced threading for display like SwingWorker.
replayWithVisualization in class AbstractMultiProblemcandidates - Array of candidates whose replay has been requested.public java.util.List<AbstractMultiProblem.RepresentationWithScore> evaluateFitness(AbstractRepresentation[] candidates)
AbstractMultiProblemevaluateFitness in class AbstractMultiProblemcandidates - Array of candidates to be evaluated.public java.util.Hashtable<java.lang.String,XMLFieldEntry> adjustRequirements(java.util.Hashtable<java.lang.String,XMLFieldEntry> requirements, java.util.Hashtable<java.lang.String,XMLFieldEntry> properties)
AbstractProblemadjustRequirements in class AbstractProblemrequirements - The set of requirement keys and values read from the source XML file.properties - The set of property keys and values.