|
|||||||||
| 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 InteractionModeljaga.control.InteractionModelpublic Genotype[] getNextIndividuals()
getNextIndividuals in interface InteractionModelpublic double[] evaluate(Genotype[] inds)
evaluate in interface InteractionModeljaga.control.InteractionModelpublic double[] evaluateNext()
evaluateNext in interface InteractionModeljaga.control.InteractionModelpublic void evolve()
evolve in interface InteractionModelpublic int getNumEvolvers()
getNumEvolvers in interface InteractionModeljaga.control.InteractionModelpublic java.lang.String toString()
toString in class java.lang.Objectpublic Genotype[] pickIndividuals()
pickIndividuals in interface InteractionModeljaga.control.InteractionModelpublic Population[] getPopulations()
getPopulations in interface InteractionModeljaga.control.InteractionModelpublic islandev.SnapshotPainter getSnapshotPainter()
getSnapshotPainter in interface InteractionModelpublic Genotype getMaxFitness()
getMaxFitness in interface InteractionModelpublic void setPopulations(Population[] pops)
setPopulations in interface InteractionModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||