|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.integration.PersistenceEventListener
Writes genetic algorithm data, including chromosomes and run, to persistent storage.
Field Summary | |
static java.lang.String |
PERSIST_ALL_CHROMOSOMES_KEY
properties key, whether or not to persist all chromosomes |
static java.lang.String |
PERSIST_CHAMPIONS_KEY
properties key, whether or not to persist generational champs |
static java.lang.String |
PERSIST_LAST_GEN_KEY
properties key, whether or not to persist all of final generation |
Constructor Summary | |
PersistenceEventListener(NeatConfiguration aConfig,
Run aRun)
ctor |
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 props)
See Parameter Details for specific property settings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PERSIST_ALL_CHROMOSOMES_KEY
public static final java.lang.String PERSIST_CHAMPIONS_KEY
public static final java.lang.String PERSIST_LAST_GEN_KEY
Constructor Detail |
public PersistenceEventListener(NeatConfiguration aConfig, Run aRun)
aConfig
- - need this to persist configaRun
- Method Detail |
public void init(Properties props)
props
- configuration datapublic void geneticEventFired(GeneticEvent event)
GeneticEventListener
geneticEventFired
in interface GeneticEventListener
event
- GeneticEvent.GENOTYPE_EVALUATED_EVENT
writes chromosomes and
updates run; GeneticEvent.GENOTYPE_START_GENETIC_OPERATORS_EVENT
loads config;
GeneticEvent.GENOTYPE_FINISH_GENETIC_OPERATORS_EVEN
stores config
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |