Basic tagging interfaces

This commit is contained in:
Marcel Kronfeld 2011-05-03 12:27:06 +00:00
parent 3ecc1028cd
commit a6d6b7f5ac
3 changed files with 41 additions and 1 deletions

View File

@ -465,7 +465,7 @@ implements InterfaceOptimizationProblem /*, InterfaceParamControllable*/, Serial
* Refine a given individual using Nelder-Mead-Simplex local search. Return true, if the refined result is within a given
* distance from the original individual in phenotype space. The maxEvaluations parameter gives the maximum evaluations
* for the local search. Using the epsilonFitConv parameter one may define a convergence criterion as PhenotypeConvergenceTerminator
* which is combined (using OR) with the evaluation counter.
* based on the given threshold and 100*dim evaluations, which is combined (using OR) with the evaluation counter.
* If maxEvaluations is smaller than zero, a maximum of 500*dim evaluations is employed.
* Be aware that this may cost quite some runtime depending on the target
* function.

View File

@ -0,0 +1,11 @@
package eva2.server.go.problems;
/**
* An interface for problems which have a specific viewer.
*
* @author mkron
*
*/
public interface InterfaceHasSolutionViewer {
public InterfaceSolutionViewer getSolutionViewer();
}

View File

@ -0,0 +1,29 @@
package eva2.server.go.problems;
import eva2.server.go.populations.Population;
/**
* A standard interface for solution viewers which display a single (best) solution
* or a population of solutions.
*
* @author mkron
*
*/
public interface InterfaceSolutionViewer {
/**
* Initialize the view for a certain problem.
* @param prob
*/
public void initView(AbstractOptimizationProblem prob);
/**
* Reset the view.
*/
public void resetView();
/**
* Update the view by displaying a population of solutions (often only the best one is shown).
* @param pop
*/
public void updateView(Population pop, boolean showAllIfPossible);
}