public class InvertedPendulum extends AbstractSingleProblem
Constructor and Description |
---|
InvertedPendulum() |
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.
|
double |
getMaximumFitness()
Returns the achievable maximum fitness of this problem.
|
void |
replayWithVisualization(AbstractRepresentation candidate)
This function is called when the user request a visual replay from the problem.
|
evaluateFitness
getRandom, setRandom
getProperties, getPropertyValue, getTypeOfProperty, getXMLData, setProperties, setXMLData
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)
AbstractProblem
adjustRequirements
in class AbstractProblem
requirements
- The set of requirement keys and values read from the source XML file.properties
- The set of property keys and values.public void replayWithVisualization(AbstractRepresentation candidate)
AbstractSingleProblem
It is recommended to use advanced threading for display like SwingWorker
.
replayWithVisualization
in class AbstractSingleProblem
candidate
- The candidate whose replay has been requested.public double getMaximumFitness()
AbstractSingleProblem
getMaximumFitness
in class AbstractSingleProblem