public class ScoreTable extends DelegatingScoreFunction implements GUIComponent
child| Constructor and Description |
|---|
ScoreTable(ScoreFunction child)
Construct a ScoreTable that wraps a child score function.
|
| Modifier and Type | Method and Description |
|---|---|
javax.swing.JComponent |
getGUIComponent()
Get a JComponent that should be added to the GUI.
|
java.lang.String |
getGUIComponentName()
Get the name of this part of the GUI.
|
void |
initialise(WorldModel<? extends Entity> world,
Config config)
Initialise this score function.
|
double |
score(WorldModel<? extends Entity> world,
Timestep timestep)
Calculate the score for a timestep.
|
getChildFunctiongetName, setName, toStringpublic ScoreTable(ScoreFunction child)
child - The child score function.public void initialise(WorldModel<? extends Entity> world, Config config)
ScoreFunctioninitialise in interface ScoreFunctioninitialise in class DelegatingScoreFunctionworld - The state of the world at the start of the simulation.config - The system configuration.public double score(WorldModel<? extends Entity> world, Timestep timestep)
ScoreFunctionscore in interface ScoreFunctionscore in class DelegatingScoreFunctionworld - The state of the world at the end of the timestep.timestep - The record of perception, commands and changes for the timestep.public javax.swing.JComponent getGUIComponent()
GUIComponentgetGUIComponent in interface GUIComponentpublic java.lang.String getGUIComponentName()
GUIComponentgetGUIComponentName in interface GUIComponent