001    package org.jaga.hooks;
002    
003    import org.jaga.masterAlgorithm.SimpleGA;
004    import org.jaga.definitions.*;
005    
006    /**
007     * TODO: Complete these comments.
008     *
009     * <p><u>Project:</u> JAGA - Java API for Genetic Algorithms.</p>
010     *
011     * <p><u>Company:</u> University College London and JAGA.Org
012     *    (<a href="http://www.jaga.org" target="_blank">http://www.jaga.org</a>).
013     * </p>
014     *
015     * <p><u>Copyright:</u> (c) 2004 by G. Paperin.<br/>
016     *    This program is free software; you can redistribute it and/or modify
017     *    it under the terms of the GNU General Public License as published by
018     *    the Free Software Foundation, ONLY if you include a note of the original
019     *    author(s) in any redistributed/modified copy.<br/>
020     *    This program is distributed in the hope that it will be useful,
021     *    but WITHOUT ANY WARRANTY; without even the implied warranty of
022     *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
023     *    GNU General Public License for more details.<br/>
024     *    You should have received a copy of the GNU General Public License
025     *    along with this program; if not, write to the Free Software
026     *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
027     *    or see http://www.gnu.org/licenses/gpl.html</p>
028     *
029     * @author Greg Paperin (greg@jaga.org)
030     *
031     * @version JAGA public release 1.0 beta
032     */
033    
034    public class SimpleGAHook {
035    
036            public SimpleGAHook() {
037            }
038    
039            public void initialisationDone(SimpleGA caller, Population pop, int age,
040                                                                       GAResult result, GAParameterSet params) {
041                    // override and implement this method to take a apecific action.
042            }
043    
044            public void foundNewResult(SimpleGA caller, Population pop, int age,
045                                                               GAResult result, GAParameterSet params) {
046                    // override and implement this method to take a apecific action.
047            }
048    
049            public void generationChanged(SimpleGA caller, Population pop, int age,
050                                                                      GAResult result, GAParameterSet params) {
051                    // override and implement this method to take a apecific action.
052            }
053    
054            public void terminationConditionApplies(SimpleGA caller, Population pop, int age,
055                                                                                            GAResult result, GAParameterSet params) {
056                    // override and implement this method to take a apecific action.
057            }
058    
059            public void selectedForReproduction(SimpleGA caller, Individual [] selectedParents,
060                                                                                    Population pop, int age, GAResult result,
061                                                                                    GAParameterSet params) {
062                    // override and implement this method to take a apecific action.
063            }
064    
065            public void reproduced(SimpleGA caller, Individual [] children, Individual [] parents,
066                                                       Population pop, int age, GAResult result, GAParameterSet params) {
067                    // override and implement this method to take a apecific action.
068            }
069    
070            public void fitnessCalculated(SimpleGA caller, Individual updatedIndividual,
071                                                                      Population pop, int age, GAParameterSet params) {
072                    // override and implement this method to take a apecific action.
073            }
074    
075    }