Download MooN developer manual
Transcript
2 THE APPLICATION 11 <<Interface>> PluginTemplate +initialize() +cleanUp() +getParamTypes() +getParamDescriptions() +setParams(Map) +getParams() +getDefaultConfiguration() <<Interface>> <<Interface>> <<Interface>> Heuristic Problem ExitCondition <<Interface>> HeuristicWithPopulation Figure 3: Specialization Hierarchy of interface PluginTemplate. moon.interfaces.problem Problem’s only method is getFitness(Solution) which evaluates a given Solution. It can be seen that the problem has no knowledge of the heuristic or exit condition, since it only communicates via solutions that are generated by a heuristic. moon.interfaces.exitCondition The ExitCondition interface also has a single method only, mustTerminate(Heuristic), which examines whether or not a heuristic needs to terminate. It was necessary to find a rather general interface (a complete heuristic, not only a population) since MooN wants to cover a wide range of possible heuristics and several of them are not population based. moon.interfaces.heuristic Heuristic in contrast has a number of methods which can be grouped by function • Runtime related: – nextGeneration() – getGenerations() • Visualization related: – getGlobalBestIndividual() – getCurrentBestIndividual() MooN Developers Manual