public abstract class DelegatingScoreFunction extends AbstractScoreFunction
| Modifier and Type | Field and Description |
|---|---|
protected ScoreFunction |
child
The child score function.
|
| Constructor and Description |
|---|
DelegatingScoreFunction(java.lang.String name,
ScoreFunction c)
Create a DelegatingScoreFunction with a child function.
|
| Modifier and Type | Method and Description |
|---|---|
ScoreFunction |
getChildFunction()
Get the child function.
|
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.
|
getName, setName, toStringprotected ScoreFunction child
public DelegatingScoreFunction(java.lang.String name,
ScoreFunction c)
name - The name of this function.c - The child score function.public void initialise(WorldModel<? extends Entity> world, Config config)
ScoreFunctioninitialise in interface ScoreFunctioninitialise in class AbstractScoreFunctionworld - The state of the world at the start of the simulation.config - The system configuration.public double score(WorldModel<? extends Entity> world, Timestep timestep)
ScoreFunctionworld - The state of the world at the end of the timestep.timestep - The record of perception, commands and changes for the timestep.public ScoreFunction getChildFunction()