com.anji.integration
Class ConsoleLogEventListener

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

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

Writes log events to stdout.

Author:
Philip Tucker

Constructor Summary
ConsoleLogEventListener(Configuration newConfig)
           
ConsoleLogEventListener(Configuration newConfig, java.io.PrintStream newOut)
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleLogEventListener

public ConsoleLogEventListener(Configuration newConfig)
Parameters:
newConfig -
See Also:
ConsoleLogEventListener(Configuration, PrintStream)

ConsoleLogEventListener

public ConsoleLogEventListener(Configuration newConfig,
                               java.io.PrintStream newOut)
Parameters:
newConfig -
newOut -
Method Detail

init

public void init(Properties p)
Specified by:
init in interface Configurable
Parameters:
p - configuration parameters

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 fittest chromosome.