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.
|
getChildFunction
getName, setName, toString
public ScoreTable(ScoreFunction child)
child
- The child score function.public void initialise(WorldModel<? extends Entity> world, Config config)
ScoreFunction
initialise
in interface ScoreFunction
initialise
in class DelegatingScoreFunction
world
- The state of the world at the start of the simulation.config
- The system configuration.public double score(WorldModel<? extends Entity> world, Timestep timestep)
ScoreFunction
score
in interface ScoreFunction
score
in class DelegatingScoreFunction
world
- 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()
GUIComponent
getGUIComponent
in interface GUIComponent
public java.lang.String getGUIComponentName()
GUIComponent
getGUIComponentName
in interface GUIComponent