org.jaga.hooks
Class DebugHook
java.lang.Object
org.jaga.hooks.SimpleGAHook
org.jaga.hooks.DebugHook
- Direct Known Subclasses:
- BetterResultHook
- public class DebugHook
- extends SimpleGAHook
TODO: Complete these comments.
Project: JAGA - Java API for Genetic Algorithms.
Company: University College London and JAGA.Org
(http://www.jaga.org).
Copyright: (c) 2004 by G. Paperin.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, ONLY if you include a note of the original
author(s) in any redistributed/modified copy.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
or see http://www.gnu.org/licenses/gpl.html
- Version:
- JAGA public release 1.0 beta
- Author:
- Greg Paperin (greg@jaga.org)
|
Method Summary |
void |
fitnessCalculated(SimpleGA caller,
Individual updatedIndividual,
Population pop,
int age,
GAParameterSet params)
|
void |
foundNewResult(SimpleGA caller,
Population pop,
int age,
GAResult result,
GAParameterSet params)
|
void |
generationChanged(SimpleGA caller,
Population pop,
int age,
GAResult result,
GAParameterSet paramss)
|
void |
initialisationDone(SimpleGA caller,
Population pop,
int age,
GAResult result,
GAParameterSet params)
|
protected void |
printIndividuals(Individual[] inds)
|
private void |
printPopulation(Population pop,
int age)
|
private void |
printResult(GAResult result,
int age)
|
void |
reproduced(SimpleGA caller,
Individual[] children,
Individual[] parents,
Population pop,
int age,
GAResult result,
GAParameterSet params)
|
void |
selectedForReproduction(SimpleGA caller,
Individual[] selectedParents,
Population pop,
int age,
GAResult result,
GAParameterSet params)
|
void |
terminationConditionApplies(SimpleGA caller,
Population pop,
int age,
GAResult result,
GAParameterSet params)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DebugHook
public DebugHook()
printPopulation
private void printPopulation(Population pop,
int age)
printResult
private void printResult(GAResult result,
int age)
printIndividuals
protected void printIndividuals(Individual[] inds)
initialisationDone
public void initialisationDone(SimpleGA caller,
Population pop,
int age,
GAResult result,
GAParameterSet params)
- Overrides:
initialisationDone in class SimpleGAHook
foundNewResult
public void foundNewResult(SimpleGA caller,
Population pop,
int age,
GAResult result,
GAParameterSet params)
- Overrides:
foundNewResult in class SimpleGAHook
generationChanged
public void generationChanged(SimpleGA caller,
Population pop,
int age,
GAResult result,
GAParameterSet paramss)
- Overrides:
generationChanged in class SimpleGAHook
terminationConditionApplies
public void terminationConditionApplies(SimpleGA caller,
Population pop,
int age,
GAResult result,
GAParameterSet params)
- Overrides:
terminationConditionApplies in class SimpleGAHook
selectedForReproduction
public void selectedForReproduction(SimpleGA caller,
Individual[] selectedParents,
Population pop,
int age,
GAResult result,
GAParameterSet params)
- Overrides:
selectedForReproduction in class SimpleGAHook
reproduced
public void reproduced(SimpleGA caller,
Individual[] children,
Individual[] parents,
Population pop,
int age,
GAResult result,
GAParameterSet params)
- Overrides:
reproduced in class SimpleGAHook
fitnessCalculated
public void fitnessCalculated(SimpleGA caller,
Individual updatedIndividual,
Population pop,
int age,
GAParameterSet params)
- Overrides:
fitnessCalculated in class SimpleGAHook
Go to JAGA Homepage