public class ModifiableResources extends Resources
Constructor and Description |
---|
ModifiableResources()
Creates an instance of this class and initialises
all base parameters to default values.
|
arity, columns, currentGeneration, currentRun, fitnessOrientation, generations, getFunction, getFunctionIndex, getFunctionSet, getRandomDouble, getRandomDouble, getRandomFunction, getRandomInt, inputs, levelsBack, nodes, outputs, populationSize, print, println, report, reportInterval, reportln, rows, runs, seed
public ModifiableResources()
createBaseParameters
for the exact parameter
initialisation.public void setRows(int rows)
rows
- the number of rows to set.public void setColumns(int columns)
columns
- the number of columns to set.public void setInputs(int inputs)
inputs
- the number of inputs to set.public void setOutputs(int outputs)
outputs
- the number of outputs to set.public void setPopulationSize(int populationSize)
populationSize
- the population size to set.public void setLevelsBack(int levelsBack)
levelsBack
- the levels back to set.public void setCurrentGeneration(int currentGeneration)
currentGeneration
- the current generation to set.public void incrementGeneration()
public void setGenerations(int generations)
generations
- the total generations to set.public void setCurrentRun(int currentRun)
currentRun
- the current run to set.public void incrementRun()
public void setRuns(int runs)
runs
- the total runs to set.public void setArity(int arity)
arity
- the arity to set.public void setSeed(int seed)
seed
- the seed to set.public void setReportInterval(int report)
report
- the report interval to set.public void setFitnessOrientation(BestFitness newOrientation)
newOrientation
- the new orientation to set.public IntegerParameter getRowsParameter()
public IntegerParameter getColumnsParameter()
public IntegerParameter getInputsParameter()
public IntegerParameter getOutputsParameter()
public IntegerParameter getPopulationSizeParameter()
public IntegerParameter getLevelsBackParameter()
public IntegerParameter getCurrentGenerationParameter()
public IntegerParameter getGenerationsParameter()
public IntegerParameter getCurrentRunParameter()
public IntegerParameter getRunsParameter()
public IntegerParameter getArityParameter()
public IntegerParameter getSeedParameter()
public IntegerParameter getReportIntervalParameter()
public void setFunctionSet(FunctionSet functionSet)
functionSet
- the new function set.public void setConsole(Console console)
console
- the extra console for the experiment to use.