|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jaga.control.StandardInteractionModel
Implementation of the InteractionModel representing a single population, single experiment model in which evaluations of individuals are independent of each other and performed one by one.
It needs an Evolver, a Deployment and an Experiment to be instantiated.
Constructor Summary | |
StandardInteractionModel(Evolver evo,
Deployment dep,
Experiment exp)
Creates new StandardInteractionModel |
|
StandardInteractionModel(Evolver evo,
Deployment dep,
Experiment exp,
int iss)
Creates new StandardInteractionModel |
Method Summary | |
double[] |
evaluate(Genotype[] inds)
Evaluates these individuals using the deployment and experiments and procedure of this model. |
double[] |
evaluateNext()
Should be same as calling evaluate( pickIndividuals() ); |
int |
evaluationsPerGeneration()
Returns the number of evaluations per generation to be performed |
void |
evolve()
Evolves to the next generation of all/some of the populations involved. |
Genotype |
getMaxFitness()
|
Genotype[] |
getNextIndividuals()
Picks a number of individuals to be evaluated next. |
int |
getNumEvolvers()
|
Population[] |
getPopulations()
Returns the current populations of the evolvers |
islandev.SnapshotPainter |
getSnapshotPainter()
|
Genotype[] |
pickIndividuals()
Returns randomly picked individuals from the evolvers. |
void |
setPopulations(Population[] pops)
Sets the populations of the evolvers to be these |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StandardInteractionModel(Evolver evo, Deployment dep, Experiment exp)
public StandardInteractionModel(Evolver evo, Deployment dep, Experiment exp, int iss)
Method Detail |
public int evaluationsPerGeneration()
evaluationsPerGeneration
in interface InteractionModel
jaga.control.InteractionModel
public Genotype[] getNextIndividuals()
getNextIndividuals
in interface InteractionModel
public double[] evaluate(Genotype[] inds)
evaluate
in interface InteractionModel
jaga.control.InteractionModel
public double[] evaluateNext()
evaluateNext
in interface InteractionModel
jaga.control.InteractionModel
public void evolve()
evolve
in interface InteractionModel
public int getNumEvolvers()
getNumEvolvers
in interface InteractionModel
jaga.control.InteractionModel
public java.lang.String toString()
toString
in class java.lang.Object
public Genotype[] pickIndividuals()
pickIndividuals
in interface InteractionModel
jaga.control.InteractionModel
public Population[] getPopulations()
getPopulations
in interface InteractionModel
jaga.control.InteractionModel
public islandev.SnapshotPainter getSnapshotPainter()
getSnapshotPainter
in interface InteractionModel
public Genotype getMaxFitness()
getMaxFitness
in interface InteractionModel
public void setPopulations(Population[] pops)
setPopulations
in interface InteractionModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |