public abstract class AbstractScoreFunction extends java.lang.Object implements ScoreFunction
Modifier | Constructor and Description |
---|---|
protected |
AbstractScoreFunction(java.lang.String name)
Construct an AbstractScoreFunction.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the name of this score function.
|
void |
initialise(WorldModel<? extends Entity> world,
Config config)
Initialise this score function.
|
void |
setName(java.lang.String newName)
Change the name of this score function.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
score
protected AbstractScoreFunction(java.lang.String name)
name
- The name of this function.public java.lang.String getName()
ScoreFunction
getName
in interface ScoreFunction
public java.lang.String toString()
toString
in class java.lang.Object
public void initialise(WorldModel<? extends Entity> world, Config config)
ScoreFunction
initialise
in interface ScoreFunction
world
- The state of the world at the start of the simulation.config
- The system configuration.public void setName(java.lang.String newName)
newName
- The new name.