com.anji.integration
Class LogEventListener

java.lang.Object
  extended bycom.anji.integration.LogEventListener
All Implemented Interfaces:
Configurable, GeneticEventListener

public class LogEventListener
extends java.lang.Object
implements GeneticEventListener, Configurable

Writes log events to log4j framework.

Author:
Philip Tucker

Constructor Summary
LogEventListener(Configuration newConfig)
           
 
Method Summary
 void geneticEventFired(GeneticEvent event)
          Notify this GeneticEventListener that an event has been fired of a type to which this listener is subscribed.
 void init(Properties p)
          no initialization parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEventListener

public LogEventListener(Configuration newConfig)
Parameters:
newConfig - JGAP configuration.
Method Detail

init

public void init(Properties p)
no initialization parameters

Specified by:
init in interface Configurable
Parameters:
p -

geneticEventFired

public void geneticEventFired(GeneticEvent event)
Description copied from interface: GeneticEventListener
Notify this GeneticEventListener that an event has been fired of a type to which this listener is subscribed.

Specified by:
geneticEventFired in interface GeneticEventListener
Parameters:
event - GeneticEvent.GENOTYPE_EVOLVED_EVENT is the only event handled; writes species count and stats of all fittest chromosomes.