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, waitscoreprotected AbstractScoreFunction(java.lang.String name)
name - The name of this function.public java.lang.String getName()
ScoreFunctiongetName in interface ScoreFunctionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void initialise(WorldModel<? extends Entity> world, Config config)
ScoreFunctioninitialise in interface ScoreFunctionworld - 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.