1 /* 2 * This file is part of JGAP. 3 * 4 * JGAP offers a dual license model containing the LGPL as well as the MPL. 5 * 6 * For licencing information please see the file license.txt included with JGAP 7 * or have a look at the top of class org.jgap.Chromosome which representatively 8 * includes the JGAP license policy applicable for any file delivered with JGAP. 9 */ 10 package org.jgap.event; 11 12 /** 13 * Represents objects that process genetic events. Once subscribed to an 14 * event type with the EventManager, an object implementing this interface will 15 * be notified each time a genetic event of that type is fired (until it is 16 * unsubscribed). 17 * 18 * @author Neil Rotstan 19 * @author Klaus Meffert 20 * @since 1.0 21 */ 22 public interface GeneticEventListener { 23 24 /** String containing the CVS revision. Read out via reflection!*/ 25 final static String CVS_REVISION = "$Revision: 1.4 $"; 26 27 /** 28 * Notify this GeneticEventListener that an event has been fired of a type 29 * to which this listener is subscribed. 30 * 31 * @param a_firedEvent the event object that was fired. The type of event 32 * can be determined by the GeneticEvent's name 33 * 34 * @author Neil Rotstan 35 * @since 1.0 36 */ 37 void geneticEventFired(GeneticEvent a_firedEvent); 38 } 39