public class MultiplicativeScoreFunction extends CompositeScoreFunction
children| Constructor and Description |
|---|
MultiplicativeScoreFunction(java.lang.String name)
Create a MultiplicativeScoreFunction with no children.
|
MultiplicativeScoreFunction(java.lang.String name,
java.util.Collection<ScoreFunction> children)
Create a MultiplicativeScoreFunction with a collection of children.
|
MultiplicativeScoreFunction(java.lang.String name,
ScoreFunction... children)
Create a MultiplicativeScoreFunction with a collection of children.
|
| Modifier and Type | Method and Description |
|---|---|
double |
score(WorldModel<? extends Entity> world,
Timestep timestep)
Calculate the score for a timestep.
|
java.lang.String |
toString() |
addChildFunction, addChildFunctions, addChildFunctions, getChildFunctions, initialise, removeChildFunction, removeChildFunctions, removeChildFunctionsgetName, setNamepublic MultiplicativeScoreFunction(java.lang.String name)
name - The name of this function.public MultiplicativeScoreFunction(java.lang.String name,
java.util.Collection<ScoreFunction> children)
name - The name of this function.children - The child score functions.public MultiplicativeScoreFunction(java.lang.String name,
ScoreFunction... children)
name - The name of this function.children - The child score functions.public java.lang.String toString()
toString in class AbstractScoreFunctionpublic 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.